⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usrproxyservercfg.c

📁 IXP425的BSP代码
💻 C
字号:
/* usrProxyServerCfg.c - Initialization routine for the proxy ARP server *//* Copyright 1992 - 2002 Wind River Systems, Inc. *//*modification history--------------------01b,26mar02,vvv  check for errors (SPR #73503)01a,01sep99,spm  created this configlette from usrNetwork.c*//*DESCRIPTIONThis configlette contains the init routine for the INCLUDE_PROXY_SERVERcomponent. It initializes the proxy ARP server. The PROXYD_MAIN_ADDRESSand PROXYD_PROXY_ADDRESS parameters provide the IP addresses of activeinterfaces connected to each network. The default values will extractthose addresses from the boot line.NOMANUAL*/STATUS usrProxyServerInit ()    {    int proxymask;    /* Remove netmask from address if present - not needed by proxy service. */    bootNetmaskExtract (PROXYD_PROXY_ADDRESS, &proxymask);    hashLibInit ();         /* make sure hash functions are installed */    if (proxyArpLibInit (8, 8) == ERROR)	printf ("Unable to initialize proxy server.\n");    else	{        printf ("Creating proxy network: %s\n", PROXYD_PROXY_ADDRESS);        if (proxyNetCreate (PROXYD_PROXY_ADDRESS, PROXYD_MAIN_ADDRESS) == ERROR)            {            printf ("proxyNetCreate failed:%x\n", errno);            return (ERROR);            }        }    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -