/* ****************************************************************************** * INTERPEAK CONFIGURATION SOURCE FILE * * Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ip8021x_config.c,v $ $Revision: 1.21 $ * $Source: /home/interpeak/CVSRoot/ip8021x/config/ip8021x_config.c,v $ * $Author: myakan $ * $State: Exp $ $Locker: $ * * Copyright 2000-2006 Interpeak AB (http://www.interpeak.se). All rights reserved. * Design and implementation by Roger Boden ****************************************************************************** */ /* **************************************************************************** * 1 DESCRIPTION **************************************************************************** */ /* **************************************************************************** * 2 INCLUDE FILES **************************************************************************** */ #include #include #include #include #include #include /* **************************************************************************** * 3 DEFINES **************************************************************************** */ /* **************************************************************************** * 4 TYPES **************************************************************************** */ /* **************************************************************************** * 5 EXTERN PROTOTYPES **************************************************************************** */ IP_GLOBAL int ip8021x_cmd_8021x(int argc, char** argv); #ifdef INCLUDE_IP8021X_SUPPLICANT_MIB IP_EXTERN IP_GLOBAL void ip8021x_vxmib_handler_install(void); #endif /* **************************************************************************** * 6 LOCAL PROTOTYPES **************************************************************************** */ IP_PUBLIC Ip_err ip8021x_configure(void); /* **************************************************************************** * 7 DATA **************************************************************************** */ IP_CONST Ipcom_sysvar ip8021x_conf_sysvar[] = { IP_SYSVAR("ip8021x.if_name", "wls0", IPSUPP_IFNAM ), IP_SYSVAR("ip8021x.ssid", "wind", IPSUPP_SSID ), IP_SYSVAR("ip8021x.psk", "Wind_River_Wireless_Security_6.9", IPSUPP_PSK ), IP_SYSVAR("ip8021x.auth_type", "wpa-psk", IPSUPP_AUTHTYPE ), /* wps | wired | wpa-psk | wpa2-psk | wpa | wpa2 */ IP_SYSVAR("ip8021x.encr_type", "tkip", IPSUPP_ENCRTYPE ), /* tkip | ccmp */ IP_SYSVAR("ip8021x.enforce_rfc4017","1", IPSUPP_ENFORCE_RFC4017 ), IP_SYSVAR("ip8021x.auth_period", "30", IPSUPP_AUTHPERIOD ), IP_SYSVAR("ip8021x.start_period", "30", IPSUPP_STARTPERIOD ), IP_SYSVAR("ip8021x.held_period", "60", IPSUPP_HELDPERIOD ), IP_SYSVAR("ip8021x.max_start", "3", IPSUPP_MAXSTART ), { IP_NULL, IP_NULL } }; /* **************************************************************************** * 8 STATIC FUNCTIONS **************************************************************************** */ /* **************************************************************************** * 9 GLOBAL FUNCTIONS **************************************************************************** */ /* **************************************************************************** * 10 PUBLIC FUNCTIONS **************************************************************************** */ /* *=========================================================================== * ip8021x_configure *=========================================================================== * Description: * Parameters: * Returns: * */ IP_PUBLIC Ip_err ip8021x_configure(void) { (void)ipcom_sysvar_setv(ip8021x_conf_sysvar, 0); ipcom_openlog(IP_NULL, 0, IPCOM_LOG_IP8021X); (void)ipcom_setlogmask_on(IP8021X_LOG_LEVEL, IPCOM_LOG_IP8021X); #if 1 ipcom_shell_add_cmd("8021x", "8021x ", "8021x", ip8021x_cmd_8021x, IPCOM_PROC_PRIO_4, IPCOM_PROC_STACK_DEFAULT); #endif #ifdef INCLUDE_IP8021X_SUPPLICANT_MIB ip8021x_vxmib_handler_install(); #endif return IPCOM_SUCCESS; } /* **************************************************************************** * END OF FILE **************************************************************************** */