/* * Copyright 2006 Wind River Systems, Inc. * * The right to copy, distribute, modify or otherwise make use * of this software may be licensed only pursuant to the terms * of an applicable Wind River license agreement. */ /* modification history -------------------- 01b,10sep10,xhs defect WIND00231231 01a,12jun06,tlu Initial creation */ /* **************************************************************************** * 1 DESCRIPTION **************************************************************************** */ /* **************************************************************************** * 2 INCLUDE FILES **************************************************************************** */ #include "ipcom_cstyle.h" #include "ipcom_err.h" #include "ipcom_sysvar.h" #include /* **************************************************************************** * 3 DEFINES **************************************************************************** */ /* **************************************************************************** * 4 TYPES **************************************************************************** */ /* **************************************************************************** * 5 EXTERN PROTOTYPES **************************************************************************** */ #ifdef INCLUDE_RIPNG_CTRL_CMD IP_PUBLIC int ipripng_cmd_ripngctrl(int argc, char **argv); #endif /* INCLUDE_RIPNG_CTRL_CMD */ /* **************************************************************************** * 6 LOCAL PROTOTYPES **************************************************************************** */ IP_PUBLIC Ip_err ipripng_configure(void); /* **************************************************************************** * 7 DATA **************************************************************************** */ /* *=========================================================================== * SYSVAR CONFIGURATION *=========================================================================== */ IP_STATIC IP_CONST Ipcom_sysvar ipripng_conf_sysvar[] = { /* RIPNG command option */ IP_SYSVAR("ipripng.cmdoption", "-d", IPRIPNG_OPTIONS_STRING), /* RIPNG task priority */ IP_SYSVAR("ipripng.priority", "0", IPRIPNG_PRIORITY), { IP_NULL, IP_NULL } }; /* *=========================================================================== * AUTHENTICATION *=========================================================================== */ /* *=========================================================================== * ipripng_configure *=========================================================================== * Description: * Parameters: * Returns: * */ IP_PUBLIC Ip_err ipripng_configure(void) { /* Initialize IPRIPng system variables. */ (void)ipcom_sysvar_setv(ipripng_conf_sysvar, 0); #ifdef INCLUDE_RIPNG_CTRL_CMD (void)ipcom_shell_add_cmd("ripngctrl", "ripngctrl ", "RIPng daemon control", ipripng_cmd_ripngctrl, IPCOM_SHELL_PRIO_SAME, IPCOM_PROC_STACK_DEFAULT); #endif /* INCLUDE_RIPNG_CTRL_CMD */ return IPCOM_SUCCESS; } /* **************************************************************************** * END OF FILE **************************************************************************** */