/* *=========================================================================== * iptcp_configure *=========================================================================== * Description: Configure IPNET * Parameters: * Returns: * */ IP_PUBLIC Ip_err iptcp_configure(void) { /* Set IPNET system variables. */ (void)ipcom_sysvar_setv(iptcp_conf_sysvar, 0); return IPCOM_SUCCESS; }
/* *=========================================================================== * ipnet_vrrpd_configure *=========================================================================== * Description: Configure the IPNET VRRP deamon. * Parameters: * Returns: * */ IP_PUBLIC Ip_err ipnet_vrrpd_configure(void) { if (ipcom_sysvar_setv(ipnet_vrrpd_conf_sysvar, 0) == IPCOM_SUCCESS) { /* now configure the interface-specific sysvars */ return ipcom_sysvar_ext_setv (ipnet_vrrpd_conf_sysvar_ext, 0); } return IPCOM_ERR_INVALID_CONFIG; }
/* *=========================================================================== * ipl2tp_configure *=========================================================================== * Description: Configure FTP server. * Parameters: * Returns: * */ IP_PUBLIC Ip_err ipl2tp_configure(void) { /* Add the sysvars */ ipcom_sysvar_setv(ipl2tp_conf_sysvar, 0); /* Init shell commands */ (void)ipcom_shell_add_cmd("l2tp", "l2tp <command> <parameters>", "L2TP client control", ipl2tp_cmd_main, IPCOM_SHELL_PRIO_SAME, IPCOM_PROC_STACK_DEFAULT); return IPCOM_SUCCESS; }
/* *=========================================================================== * ipnet_send_configure *=========================================================================== * Description: * Parameters: * Returns: * */ IP_PUBLIC Ip_err ipnet_send_configure(void) { /* Set Secure NDP system variables. */ (void)ipcom_sysvar_setv(ipnet_send_conf_sysvar, 0); #if !defined(IP_PORT_VXWORKS) || defined(INCLUDE_CGA_CMD) Ip_err err; err = ipcom_shell_add_cmd("cga", "cga [ options ]", "Cryptografically generated addresses utility", ipnet_cmd_cga, IPCOM_SHELL_PRIO_SAME, IPCOM_PROC_STACK_MAX); if (err < 0) return err; #endif return IPCOM_SUCCESS; }
/* *=========================================================================== * iptftpc_configure *=========================================================================== * Description: Configure TFTP client. * Parameters: none. * Returns: nothing. */ IP_PUBLIC Ip_err iptftpc_configure(void) { Ip_err ret = IPCOM_SUCCESS; (void)ipcom_sysvar_setv(iptftp_conf_sysvar, IPCOM_SYSVAR_FLAG_OVERWRITE); #ifdef INCLUDE_IPTFTP_CLIENT_CMD ret = ipcom_shell_add_cmd("tftp", "tftp [-a] <get|put> <host> ...", "Trivial FTP client", iptftp_cmd_tftp, IPCOM_SHELL_PRIO_SAME, IPCOM_PROC_STACK_DEFAULT); #endif /* INCLUDE_IPTFTP_CLIENT_CMD */ return ret; }
/* *=========================================================================== * ipfreescale_configure *=========================================================================== * Description: Product configure hook. Called by IPCOM at startup. * Parameters: none. * Returns: IPCOM_SUCCESS = ok * IPCOM_ERR_FAILED = error * */ IP_PUBLIC Ip_err ipfreescale_configure(void) { Ip_err ret; ret = ipcom_sysvar_setv(ipfreescale_conf_sysvar, 0); if(ret != IPCOM_SUCCESS) return ret; #ifdef INCLUDE_IPFREESCALE_CMD ret = ipcom_shell_add_cmd("freescale", "freescale [cmd] <modifier...>", "Test Freescale hardware crypto", (Ipcom_shell_cmd_type)ipfreescale_cmd_freescale, IPCOM_PRIORITY_DEFAULT, IPCOM_PROC_STACK_DEFAULT); #endif return ret; }
/* *=========================================================================== * 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); ipcom_setlogmask_on(IP8021X_LOG_LEVEL, IPCOM_LOG_IP8021X); #if 1 ipcom_shell_add_cmd("8021x", "8021x <connect|disconnect|logoff|getstatus|add|delete|list|eapcr>", "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; }
/* *=========================================================================== * ipssh_configure *=========================================================================== * Description: * Parameters: * Returns: * */ IP_GLOBAL Ip_err ipssh_configure(void) { ipcom_sysvar_setv(ipssh_conf_sysvar, 0); #ifdef IPSSH_USE_STOP_SPAWN (void)ipcom_shell_add_cmd("ipssh_stop", "ipssh_stop [-c <id>] [-a] [-h]", "Stop SSH spawns", (Ipcom_shell_cmd_type) ipssh_stop_cmd, IPSSH_SHELLCMD_PROC_PRIO, IPCOM_PROC_STACK_DEFAULT); #endif (void)ipcom_shell_add_cmd("ipssh_list", "ipssh_list [-l] [-h]", "List connected ssh clients", (Ipcom_shell_cmd_type) ipssh_list_cmd, IPSSH_SHELLCMD_PROC_PRIO, IPCOM_PROC_STACK_DEFAULT); #ifdef IPSSH_USE_SFTP_CLT_CMD (void)ipcom_shell_add_cmd("sftp", "sftp", "sftp file transfer", (Ipcom_shell_cmd_type) ipssh_cmd_sftp, IPSSH_SHELLCMD_PROC_PRIO, IPCOM_PROC_STACK_MAX); #endif #ifdef IPSSH_USE_KEY_FINGERPRINT (void)ipcom_shell_add_cmd("keyfp", "keyfp -f <file> <-b|-h>", "Generate key finger print", (Ipcom_shell_cmd_type) ipssh_keyfp_cmd, IPSSH_SHELLCMD_PROC_PRIO, IPCOM_PROC_STACK_DEFAULT); #endif #ifdef IPSSH_USE_DH_GROUP_EX_EXAMPLE_MODULI_FILE ipssh_create_dh_gex_moduli_example_file(); #endif return IPCOM_SUCCESS; }
/* *=========================================================================== * ipmipha_configure *=========================================================================== * Description: * Parameters: * Returns: * */ IP_PUBLIC Ip_err ipmipha_configure(void) { Ip_err err; /* Initialize IPMIPHA system variables. */ /* Initialize IPMIPHA system variables. */ err = ipcom_sysvar_setv(ipmipha_conf_sysvar, 0); if (err != IPCOM_SUCCESS) return err; #if defined(WRS_IPNET) || defined(PRJ_BUILD) /* now configure the interface-specific sysvars */ err = ipcom_sysvar_ext_setv(ipmipha_conf_sysvar_ext, 0); if (err != IPCOM_SUCCESS) return err; #endif return IPCOM_SUCCESS; }
/* *=========================================================================== * ipdnsc_configure *=========================================================================== * Description: Configure DNS client. * Parameters: None. * Returns: IPCOM_SUCCESS or IPCOM_ERR_XXX if failed. */ IP_PUBLIC Ip_err ipdnsc_configure(void) { Ip_err ret; ret = ipcom_sysvar_setv(ipdnsc_conf_sysvar, 0); if(ret != IPCOM_SUCCESS) return ret; /* Initialize _gethostby* func pointers */ _ipcom_gethostbyname_r = (FUNCPTR)ipcom_gethostbyname_r; _ipcom_gethostbyaddr_r = (FUNCPTR)ipcom_gethostbyaddr_r; #ifdef INCLUDE_IPNSLOOKUP_CMD ret = ipcom_shell_add_cmd("nslookup", "nslookup [ options ] <modifier...>", "Query Internet name servers interactively", ipdnsc_cmd_nslookup, IPCOM_SHELL_PRIO_SAME, IPCOM_PROC_STACK_DEFAULT); #endif /* INCLUDE_IPNSLOOKUP_CMD */ return ret; }