usrIpLib.c
资源名称:ixp425BSP.rar [点击查看]
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:1k
源码类别:
VxWorks
开发平台:
C/C++
- IP_CFG_PARAMS ipCfgParams = /* ip configuration parameters */
- {
- IP_FLAGS_DFLT, /* default ip flags */
- IP_TTL_DFLT, /* ip default time to live */
- IP_QLEN_DFLT, /* default ip intr queue len */
- IP_FRAG_TTL_DFLT /* default ip fragment time to live */
- };
- STATUS usrIpLibInit ()
- {
- if (ipLibInit (&ipCfgParams) == ERROR) /* has to included by default */
- {
- printf ("ipLibInit failed.n");
- return (ERROR);
- }
- if (rawIpLibInit () == ERROR) /* has to included by default */
- {
- printf ("rawIpLibInit failed.n");
- return (ERROR);
- }
- if (rawLibInit () == ERROR)
- {
- printf ("rawLibInit failed.n");
- return (ERROR);
- }
- return (OK);
- }