usrproxyservercfg.c

来自「IXP425的BSP代码」· C语言 代码 · 共 46 行

C
46
字号
/* 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 + =
减小字号Ctrl + -
显示快捷键?