?? radiuscfg.c
字號:
/* radiusCfg.c - WindNet RADIUS client configuration file *//* Copyright 2006 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history____________________01j,12jan06,snd Changed fwd declaration for radius_populate_ip_version, as part of Workbench re-configuration REQ0000573501i,22oct05,snd Added interface/scope identifier to all IPv6 addresses01h,20aug05,dps Added IPv6 server entries for enhancing radiusCfg.c to support IPv601g,01apr05,snd Fix for SPR 107172, changed RADIUS project names in documentation01f,25mar05,ijm removed IFSET KERNEL directive01e,17mar05,snd Fix for 106769, changed KERNEL_ONLY to IFSET KERNEL01d,09mar05,snd APIGEN related changes for SPR 10676901c,03feb05,snd Changed copyright to 200501b,30dec04,snd Fix for SPR 100161, radiusCfg() sets the flags for RADIUS demo configuration to FALSE.01a,14dec04,snd Fix for SPR 101608, RADIUS client IP address is no longer specified in radiusCfg.c. The interface address is automatically taken from the network interface IP address.*//* @format.tab-size 4, @format.use-tabs true, @format.new-line lf *//*DESCRIPTIONThis file contains user-settings for WindNet RADIUS client which canbe set during compile-time.INCLUDE FILES: usrBasicRadiusBSPBuildCfg.h*//* ANSI Headers */#include "stdio.h"#include "string.h"#include "usrBasicRadiusBSPBuildCfg.h"extern void radius_populate_ip_version(int version);char my_config_string [] = "[[RADIUS_CLIENT Application = Start Section]]\n" "RADIUS = enabled\n" "RADIUS Authentication Client Port = 1812\n" "RADIUS Accounting Client Port = 1813\n" "RADIUS Server Configuration = 204.10.23.54,1813,RADIUS_ACCOUNTING_SERVER,3,10,challenge,\n" "RADIUS Server Configuration = 204.10.23.54,1812,RADIUS_AUTHENTICATION_SERVER,3,10,challenge,\n" "RADIUS Server Configuration = fe80::20f:eaff:fe9a:225%lnPci0,1813,RADIUS_ACCOUNTING_SERVER,3,10,challenge,\n" "RADIUS Server Configuration = fe80::20f:eaff:fe9a:225%lnPci0,1812,RADIUS_AUTHENTICATION_SERVER,3,10,challenge,\n" "RADIUS maximum receive packet size = 4096\n" "RADIUS Printf = disabled\n" "RADIUS Printf Alarm = disabled\n" "RADIUS Printf Initialization = disabled\n" "RADIUS Printf Socket = disabled\n" "RADIUS Printf Data = disabled\n" "RADIUS Printf Trace = disabled\n" "RADIUS Disable Response Authentication = disabled\n" "RADIUS set default values = disabled\n";extern char radius_configuration_text[];extern RADIUS_STACK_VERSION radius_ip_version; /***************************************************************************** radiusCfg - initialization function for Wind River RADIUS client* * This function initializes the radius configuration parameters and also* copies user-specified parameters into RADIUS global data structures* for use during initialization of RADIUS tasks.** RETURNS: N/A* * ERRNO:** SEE ALSO: radiusLibInit()******************************************************************************/void radiusCfg ( ) { printf ("writing to 0x%lx\n",(ULONG)radius_configuration_text); strcpy (radius_configuration_text, my_config_string); /* Set the flags for RADIUS demo configuration to FALSE */ radius_config_secondary_server_enabled = FALSE; radius_config_primary_server_enabled = FALSE; radius_config_data.proj_configuration_enabled = FALSE; radius_ipv4_enabled = FALSE; radius_ipv6_enabled = FALSE; }
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -