original files of m241
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/* 01older_ipnet_radius.cdf - IPNet Radius configuration file */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006 Wind River Systems, Inc.
|
||||
*
|
||||
* The right to copy, distribute or otherwise make use of this software
|
||||
* may be licensed only pursuant to the terms of an applicable Wind River
|
||||
* license agreement. No license to Wind River intellectual property rights
|
||||
* is granted herein. All rights not licensed by Wind River are reserved
|
||||
* by Wind River.
|
||||
*/
|
||||
|
||||
/*
|
||||
modification history
|
||||
--------------------
|
||||
01b,07dec06,kch Renamed folder description name.
|
||||
01a,23sep06,kch Created.
|
||||
*/
|
||||
|
||||
Folder FOLDER_IPRADIUS {
|
||||
NAME RADIUS Client Components
|
||||
SYNOPSIS Radius Client Components
|
||||
CHILDREN INCLUDE_IPRADIUS \
|
||||
INCLUDE_IPRADIUS_CMD
|
||||
}
|
||||
|
||||
@@ -0,0 +1,110 @@
|
||||
/* 02comp_ipnet_radius.cdf - IPNet Radius Components configuration file */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006-2007 Wind River Systems, Inc.
|
||||
*
|
||||
* The right to copy, distribute or otherwise make use of this software
|
||||
* may be licensed only pursuant to the terms of an applicable Wind River
|
||||
* license agreement. No license to Wind River intellectual property rights
|
||||
* is granted herein. All rights not licensed by Wind River are reserved
|
||||
* by Wind River.
|
||||
*/
|
||||
|
||||
/*
|
||||
modification history
|
||||
--------------------
|
||||
01e,22sep09,tlu Correct synopsis and remove INCLUDE_IPCOM_USE_AUTH
|
||||
for INCLUDE_IPCOM_USE_AUTH_RADIUS
|
||||
01d,22jan07,kch Renamed radius client configuration macros for ipcom
|
||||
authentication (WIND00083711).
|
||||
01c,08jan07,kch Removed duplicate ipcom_config.c configlette from
|
||||
INCLUDE_IPCOM_USE_AUTH_RADIUS.
|
||||
01b,26sep06,kch Corrected radius dependencies.
|
||||
01a,23sep06,kch Created.
|
||||
*/
|
||||
|
||||
Component INCLUDE_IPCOM_USE_AUTH_RADIUS {
|
||||
NAME Radius Authentication Support
|
||||
SYNOPSIS RADIUS server configuration
|
||||
REQUIRES INCLUDE_IPRADIUS
|
||||
CFG_PARAMS IPCOM_AUTH_RADIUS_SERVER_DOMAIN \
|
||||
IPCOM_AUTH_RADIUS_SERVER_IPV4_ADDRESS\
|
||||
IPCOM_AUTH_RADIUS_SERVER_IPV6_ADDRESS \
|
||||
IPCOM_AUTH_RADIUS_SERVER_PORT \
|
||||
IPCOM_AUTH_RADIUS_SERVER_SHARE_SECRET \
|
||||
IPCOM_AUTH_RADIUS_SERVER_PASSWD_TYPE
|
||||
_CHILDREN FOLDER_NET_AUTH
|
||||
}
|
||||
|
||||
Component INCLUDE_IPRADIUS {
|
||||
NAME Radius client
|
||||
SYNOPSIS Radius client
|
||||
REQUIRES INCLUDE_IPRADIUS_CMD INCLUDE_IPCOM_USE_AUTH_RADIUS
|
||||
MODULES ipradius.o
|
||||
CONFIGLETTES ipradius_config.c
|
||||
INCLUDE_WHEN INCLUDE_IPRADIUS_CMD
|
||||
CFG_PARAMS RADIUS_NAS_IDENTIFIER
|
||||
}
|
||||
|
||||
Component INCLUDE_IPRADIUS_CMD {
|
||||
NAME IPCOM radius client commands
|
||||
SYNOPSIS IPCOM radius client commands
|
||||
MODULES ipradius_cmd_radiusc.o
|
||||
REQUIRES INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
/******************** Configuration Parameters *****************************/
|
||||
/* INCLUDE_IPCOM_USE_AUTH_RADIUS configuration parameters */
|
||||
|
||||
Parameter IPCOM_AUTH_RADIUS_SERVER_DOMAIN {
|
||||
NAME RADIUS server domain
|
||||
SYNOPSIS RADIUS server domain for IPCOM authentication, IP_AF_INET=2 \
|
||||
or IP_AF_INET6=24.
|
||||
TYPE uint
|
||||
DEFAULT 2
|
||||
}
|
||||
|
||||
Parameter IPCOM_AUTH_RADIUS_SERVER_IPV4_ADDRESS {
|
||||
NAME RADIUS server IPv4 address
|
||||
SYNOPSIS RADIUS server IPv4 address for IPCOM authentication.
|
||||
TYPE char *
|
||||
DEFAULT "10.1.2.1"
|
||||
}
|
||||
|
||||
Parameter IPCOM_AUTH_RADIUS_SERVER_IPV6_ADDRESS {
|
||||
NAME RADIUS server IPv6 address
|
||||
SYNOPSIS RADIUS server IPv6 address for IPCOM authentication.
|
||||
TYPE char *
|
||||
DEFAULT "3ffe:300::5"
|
||||
}
|
||||
|
||||
Parameter IPCOM_AUTH_RADIUS_SERVER_PORT {
|
||||
NAME RADIUS server port
|
||||
SYNOPSIS RADIUS server port in host endian for IPCOM authentication.
|
||||
TYPE uint
|
||||
DEFAULT 1812
|
||||
}
|
||||
|
||||
Parameter IPCOM_AUTH_RADIUS_SERVER_SHARE_SECRET {
|
||||
NAME RADIUS server shared secret
|
||||
SYNOPSIS RADIUS server shared secret for IPCOM authentication.
|
||||
TYPE char *
|
||||
DEFAULT "kallekula123"
|
||||
}
|
||||
|
||||
Parameter IPCOM_AUTH_RADIUS_SERVER_PASSWD_TYPE {
|
||||
NAME RADIUS server password type
|
||||
SYNOPSIS RADIUS server password type (PAP=1, CHAP=2) for IPCOM \
|
||||
authentication.
|
||||
TYPE uint
|
||||
DEFAULT 1
|
||||
}
|
||||
|
||||
/******************** Configuration Parameters *****************************/
|
||||
|
||||
Parameter RADIUS_NAS_IDENTIFIER {
|
||||
NAME RADIUS client identifier
|
||||
SYNOPSIS Identifier for RADIUS client
|
||||
TYPE char *
|
||||
DEFAULT "Wind River example NAS"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
# Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: common.vxconfig,v $ $Revision: 1.6 $
|
||||
# $Source: /home/interpeak/CVSRoot/ipradius/config/common.vxconfig,v $
|
||||
# $Author: myakan $
|
||||
# $State: Exp $ $Locker: $
|
||||
#
|
||||
# INTERPEAK_COPYRIGHT_STRING
|
||||
|
||||
#hidden option that enables IPRADIUS
|
||||
config SUPPORTS_RADIUS
|
||||
bool
|
||||
default y
|
||||
|
||||
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* INTERPEAK CONFIGURATION SOURCE FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipradius_config.c,v $ $Revision: 1.8 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipradius/config/ipradius_config.c,v $
|
||||
* $Author: tluo $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
modification history
|
||||
--------------------
|
||||
01e,17sep10,tlu Consolidate RADIUS configllete
|
||||
01d,03jan07,kch Updated CVS revision log entry for Jan 03 code drop.
|
||||
01c,23nov06,kkz Removed ipradius_cmd_radiusc_init
|
||||
01b,22nov06,kch Refresh with Nov. 15 code drop - added RADIUS_NAS_IDENTIFIER
|
||||
sysvar and updated ipradius_configure().
|
||||
01a,24sep06,kch Integrated to VxWorks build mechanism.
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
#include "ipradius_config.h"
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipcom_cstyle.h"
|
||||
#include "ipcom_err.h"
|
||||
#include "ipcom_sysvar.h"
|
||||
#include "ipcom_shell.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#if !defined(WRS_IPNET) && !defined(PRJ_BUILD)
|
||||
#define INCLUDE_IPRADIUS_CMD
|
||||
#endif
|
||||
|
||||
#ifndef RADIUS_NAS_IDENTIFIER
|
||||
#define RADIUS_NAS_IDENTIFIER "Interpeak example NAS"
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 EXTERN PROTOTYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef INCLUDE_IPRADIUS_CMD
|
||||
IP_PUBLIC int ipradius_cmd_radiusc(int argc, char **argv);
|
||||
#endif /* INCLUDE_IPRADIUS_CMD */
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 7 LOCAL PROTOTYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
IP_PUBLIC Ip_err ipradius_configure(void);
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 8 DATA
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* SYSVAR CONFIGURATION
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
IP_STATIC IP_CONST Ipcom_sysvar ipradius_conf_sysvar[] =
|
||||
{
|
||||
{ "ipradius.nas.identifier", RADIUS_NAS_IDENTIFIER},
|
||||
{ IP_NULL, IP_NULL }
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 9 PUBLIC FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* ipradius_configure
|
||||
*===========================================================================
|
||||
* Description:
|
||||
* Parameters:
|
||||
* Returns:
|
||||
*
|
||||
*/
|
||||
IP_PUBLIC Ip_err
|
||||
ipradius_configure(void)
|
||||
{
|
||||
/* Initialize IPRADIUS system variables. */
|
||||
(void)ipcom_sysvar_setv(ipradius_conf_sysvar, 0);
|
||||
|
||||
#ifdef INCLUDE_IPRADIUS_CMD
|
||||
/* Add the radiusc command */
|
||||
(void)ipcom_shell_add_cmd("radiusc", "radiusc [command] <modifier...>", "Radius client",
|
||||
ipradius_cmd_radiusc,
|
||||
IPCOM_SHELL_PRIO_SAME, 2048);
|
||||
#endif /* INCLUDE_IPRADIUS_CMD */
|
||||
|
||||
return IPCOM_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* INTERPEAK CONFIGURATION HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipradius_config.h,v $ $Revision: 1.14.10.1 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipradius/config/ipradius_config.h,v $
|
||||
* $Author: tluo $ $Date: 2012-02-21 23:25:10 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IPRADIUS_CONFIG_H
|
||||
#define IPRADIUS_CONFIG_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/* Maximum size of access request attribute field. 2048 required for EAP (EAPoL over ethernet) + additional attributes. */
|
||||
#define IPRADIUS_access_request_attribute_size 2048
|
||||
|
||||
|
||||
/* Maximum size of accounting request attribute field. */
|
||||
#define IPRADIUS_accounting_request_attribute_size 500
|
||||
|
||||
/* Initial system priority. */
|
||||
#if defined(_WRS_CONFIG_IPRADIUS_SYSLOG_PRIORITY)
|
||||
#define IPRADIUS_SYSTEM_PRIORITY _WRS_CONFIG_IPRADIUS_SYSLOG_PRIORITY
|
||||
#else
|
||||
#define IPRADIUS_SYSTEM_PRIORITY IPCOM_LOG_WARNING
|
||||
#endif
|
||||
|
||||
|
||||
/* Max poll delay in seconds. */
|
||||
#define IPRADIUS_MAX_POLL_DELAY 600
|
||||
|
||||
/* Minium accounting interval in seconds */
|
||||
#if defined(IP_DEBUG) || defined(IPTESTENGINE)
|
||||
#define IPRADIUS_MIN_ACCT_INTERVAL 3
|
||||
#else
|
||||
#define IPRADIUS_MIN_ACCT_INTERVAL 60
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
Reference in New Issue
Block a user