亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? usrfwstartup.c

?? firewall PNE 3.3 source code, running at more than vxworks6.x version.
?? C
字號:
/* usrFwStartup.c - Initialize and startup Firewall *//* Copyright 2004-2005 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01d,29mar05,svk  Replace usage of Tornado with Workbench01c,13sep04,svk  Fix compilation warnings01b,06apr04,zhu  fixed a comment error01a,05apr04,zhu  written*//*DESCRIPTIONThis file supplies sample code to configure and initialize the Firewall.NOMANUAL*/#include "vxWorks.h"#include "wrn/firewall/fwLib.h"#include "wrn/firewall/syslogcLib.h"#include <stdio.h>#include "ifLib.h"#include "ipProto.h"#include "routeLib.h"extern int fwNvIfRamParamsGet(char *, char *, int, int);extern int fwNvIfRamParamsSet(char *, char *, int, int);extern int fwNvIfRamParamsClose(char *);extern int fwNvIfRamParamsInit(char *);extern STATUS fwClockBaseInit(UINT32,UINT32,UINT32,UINT32,UINT32,UINT32);/********************************************************************************* usrFwStartup - Initialize the firewall ** RETURNS: N/A** NOMANUAL*/void usrFwStartup()    {    FW_MAC_IF_ID macIf[2];    /*      * This assumes:     * (a) There are two interfaces lnPci0, lnPci1 on the target.     * (b) lnPci0 is the public interface, it is already attached and     *     its address is already set.     * (c) lnPci1 is the local interface, and is not yet attached.     *     * Attach the private interface and set its private address to     * 10.11.7.5. Also, add a route to a public gateway 192.0.2.1     * to reach other public networks.     */         ipAttach(1, "lnPci");    ifMaskSet("lnPci1", 0xffffff00);    ifAddrSet("lnPci1", "10.11.7.5");    mRouteAdd("0.0.0.0", "192.0.2.1", 0xffffff00, 0, 0);    /*      * If not already done, set the target clock. You can also use      * fwClockTimeSet() in fwUtilLib.c to set the clock with time retrieved      * from NTP time server.     *     * This assumes: Year 2004, April 5th, 11:40:30 AM     */         if(fwClockBaseInit(2004, 4, 5, 11, 40, 30) != OK)        {        printf("Firewall Clock init ERROR: fwClockBaseInit failed\n ");        return;        }    /*      * Initialize the firewall. The initialization order is:     *     * 1. MAC Filter     * 2. Logging Facility     * 3. NV Storage Interface     * 4. IP Filter     * 5. (Optional) Sample Web Screens     */    /*      * 1. MAC Filter     *     * Initialize the Firewall MAC Filter     *     * This assumes:     * (a) There are two interfaces lnPci0, lnPci1 on the target     * (b) lnPci0 is the public interface     * (c) lnPci1 is the private interface     * (d) Install RX MAC Filter on the private interface     * (e) Default Action is ACCEPT     * (f) Logging is enabled     *     * NOTE: If you are initializing the MAC Filter manually, the     * initialization order is your responsibility. For example, if     * the Learning Bridge is included in the image along with the      * Firewall MAC Filter, the MAC Filter _must_ be initialized before      * the Learning Bridge.     */    strcpy (macIf[0].name, "lnPci");  /* private interface name */    macIf[0].unit = 1;                /* private interface unit number */    macIf[1].name[0] = 0;             /* null terminate */    macIf[1].unit = 0;                /* null terminate */    if(fwMacFilterInstall(FW_MAC_FILTER_RX, macIf, FW_ACCEPT,                           NULL, NULL) != OK)        {        printf("Firewall Mac RX Filter init ERROR: fwMacFilterInstall"               " failed!\n");        return;        }    fwMacLogInstall(fwLog);    /*      * 2. Logging Facility     *     * Initialize the logging Facility     *     * This assumes: Logs are sent to the console.     *     * NOTE: To send logs to Syslog Server at address 10.11.7.50,      * first install the Syslog client:     * fwLogSyslogcInstall((FUNCPTR)syslogcLibInit,(FUNCPTR)syslogcBinDataSend,     *                     (FUNCPTR)syslogcShutdown);     * Then initialize the Logging Facility, for example:     * if (fwLogLibInit(FW_LOG_TO_SYSLOG, "10.11.7.50", NULL, 0) != OK)     *      {     *      printf("Firewall Log init ERROR: fwLogLibInit failed!\n");     *      return;     *      }     */    if (fwLogLibInit(FW_LOG_TO_CONSOLE, NULL, NULL, 0) != OK)        {        printf("Firewall Log init ERROR: fwLogLibInit failed!\n");        return;        }    /*      * 3. NV Storage Interface     *     * This assumes: RAM-based Non-Volatile (NV) Storage is used     *     * To enable the Non-Volatile storage Firewall interface, you must first     * write a set of platform specific routines according to the      * specification in fwNvIfLib.c and then call fwNvFuncsInstall() to      * install to NV Storage interface.     *     * Initialize the user-specified Non-Volatile Storage interface     */    if (fwNvIfRamParamsInit(NULL) != OK)        {        printf("Firewall NV Storage init ERROR: Init function failed!\n");        return;        }    /* Install the user-specified Non-Volatile Storage interface */        fwNvFuncsInstall(fwNvIfRamParamsGet, fwNvIfRamParamsSet,                     fwNvIfRamParamsClose);    /*      * 4. IP Filter     *     * This assumes:     * (a) NV Storage is used for IP Filter     * (b) Logging is enabled     * (c) IP Filter is installed at pre-input and output locations with     *     default action reject     */    /* Initialize Non-Volatile Storage for IP Filter */    if (fwNvRuleLibInit() != OK)        {        printf("Firewall IP Filter init ERROR: fwNvRuleLibInit failed!\n");        return;        }    /* Install logging for IP Filter */    fwRuleLogInstall(fwLog);            /* Initialize the Stateful inspection module */        fwStateInit();         /*     * Install the IP filter at one or more user-specified packet intercept     * locations. The IP packet filtering starts working only after this     * is done.      *     * NOTE: Since the default action is set to reject below, all traffic      * will be dropped unless you add filter rules later to allow      * specific traffic.     */         if(fwRuleFilterInstall(FW_PREIN_LOC,FW_REJECT,NULL,NULL,NULL,0) != OK)        {        printf("Firewall IP Filter init ERROR: fwRuleFilterInstall "               "at PREIN failed!\n");        return;        }    if(fwRuleFilterInstall(FW_OUT_LOC,FW_REJECT,NULL,NULL,NULL,0) != OK)        {        printf("Firewall IP Filter init ERROR: fwRuleFilterInstall "               "at OUT failed!\n");        return;        }    /*      * 5. (Optional) Web Interface     *     * This assumes: Web Interface is used for firewall configuration.     *      * Initialize Firewall Web Interface.     *     * NOTE: You must use Workbench Kernel Editor to build the      * Web interface. Please refer to Firewall User's Guide for      * more details.     *     * if (fwWebInit() != OK)     *     {     *     printf("Firewall Web init ERROR: fwWebInit failed!\n");     *     return;     *     }     *     * if (WMB_COMPONENT_Start() != OK)     *     printf("Firewall Web init ERROR: WMB_COMPONENT_START failed!\n");     */    printf("Firewall initialization and startup complete!\n");    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美不卡视频一区| 青青草伊人久久| 亚洲成a天堂v人片| 国产999精品久久| 欧美精品久久一区二区三区| 久久蜜桃香蕉精品一区二区三区| 久久机这里只有精品| 国产成人鲁色资源国产91色综| 亚洲成人你懂的| 国产91精品一区二区| 日韩欧美在线网站| 亚洲另类中文字| 成人深夜在线观看| 久久色中文字幕| 日本成人在线看| 欧美色综合影院| 一区二区三区欧美日韩| 国产风韵犹存在线视精品| 日韩免费视频一区| 日韩成人午夜精品| 91精品国产综合久久久久久| 亚洲一区二区四区蜜桃| 99热精品国产| ...中文天堂在线一区| 成人av网在线| 亚洲欧洲精品天堂一级 | 成人激情午夜影院| 欧美一区二区福利在线| 日本美女视频一区二区| 欧美电影在哪看比较好| 亚洲成人福利片| 色欧美乱欧美15图片| 亚洲视频免费在线观看| 色国产精品一区在线观看| 亚洲男女毛片无遮挡| 91精品1区2区| 亚洲成人黄色影院| 欧美精品乱人伦久久久久久| 日韩精品一级中文字幕精品视频免费观看| 日韩精品电影在线| 欧美xxxx老人做受| 国产乱色国产精品免费视频| 欧美videos中文字幕| 国产一区二区三区不卡在线观看| 97久久超碰精品国产| 国产精品伦一区| 欧洲精品一区二区三区在线观看| 日韩久久久精品| 国产成人欧美日韩在线电影| 久久久久综合网| av成人老司机| 亚洲国产精品久久人人爱| 日韩一区二区在线观看| 九色综合狠狠综合久久| 国产精品麻豆视频| 欧美日韩第一区日日骚| 国产尤物一区二区| 国产精品成人在线观看| 欧美视频在线观看一区二区| 美女网站视频久久| 国产精品久久久久久久久快鸭| 日韩精品视频网站| 久久久久久久久久久久久女国产乱| 一区二区久久久久久| 日韩午夜电影在线观看| 成人国产一区二区三区精品| 亚洲第一av色| 亚洲国产精品传媒在线观看| 欧美性猛交xxxx乱大交退制版 | 国产精品一区久久久久| 中文在线资源观看网站视频免费不卡 | 欧美吻胸吃奶大尺度电影| 视频一区视频二区中文| 国产女人aaa级久久久级| 精品视频1区2区3区| 国产精品一区二区在线观看网站| 欧美精品黑人性xxxx| 国产一区二区三区av电影 | 色婷婷久久一区二区三区麻豆| 国产亚洲综合av| 色婷婷久久久综合中文字幕| 久久国产精品72免费观看| 怡红院av一区二区三区| 久久久99精品久久| 欧美视频中文字幕| 成人国产一区二区三区精品| 蓝色福利精品导航| 五月天丁香久久| 亚洲最大成人综合| 久久综合九色综合欧美就去吻| 精品一区二区免费| 亚洲成人激情自拍| 一区二区三区四区高清精品免费观看| 97精品国产露脸对白| 久久精品国产一区二区三区免费看| 欧美日本在线视频| jlzzjlzz欧美大全| 国产成人免费在线观看| 美日韩一级片在线观看| 午夜国产不卡在线观看视频| 亚洲三级免费观看| 国产精品久久久久四虎| 久久久久国产精品人| 日韩欧美不卡在线观看视频| 欧美人成免费网站| 欧美喷潮久久久xxxxx| 欧美视频在线播放| 欧美三级中文字幕| 欧美日韩国产123区| 欧美日韩的一区二区| 欧美精品日韩一区| 制服视频三区第一页精品| 欧美一区二区三区小说| 欧美一级在线视频| 欧美mv日韩mv| 久久蜜臀精品av| 国产精品美女久久久久久久网站| 91丨九色丨蝌蚪富婆spa| 99热国产精品| 久久久国产一区二区三区四区小说| 国产成人在线视频免费播放| 久久97超碰色| 国产一区二区精品在线观看| 麻豆精品一二三| 精久久久久久久久久久| 国产成人免费视频精品含羞草妖精| 亚洲最新在线观看| 亚洲大片在线观看| 日韩高清不卡一区二区三区| 日本美女视频一区二区| 蜜臂av日日欢夜夜爽一区| 加勒比av一区二区| jvid福利写真一区二区三区| 91美女片黄在线观看| 欧美夫妻性生活| 国产欧美日韩在线观看| 亚洲欧美国产77777| 一区二区三区免费看视频| 欧美96一区二区免费视频| 国产在线麻豆精品观看| 成人av在线影院| 91超碰这里只有精品国产| 欧美不卡123| 亚洲久本草在线中文字幕| 午夜精品在线看| 国产成人免费高清| 欧美伦理影视网| 欧美国产精品一区二区| 亚洲成人先锋电影| 国产成a人无v码亚洲福利| 欧美性猛交xxxxxxxx| 久久毛片高清国产| 自拍偷自拍亚洲精品播放| 日本网站在线观看一区二区三区 | 亚洲电影一级片| 日韩不卡一区二区| 成人性生交大片免费看在线播放 | 日韩一区二区免费高清| 国产亚洲精品中文字幕| 午夜精品免费在线观看| 国产91综合网| 日韩三级在线观看| 亚洲精品高清视频在线观看| 男人的j进女人的j一区| 91成人在线观看喷潮| 26uuu欧美日本| 亚洲电影视频在线| 99麻豆久久久国产精品免费优播| 成人综合婷婷国产精品久久| 欧美伊人久久久久久久久影院| 97久久人人超碰| 久久久另类综合| 美女视频一区在线观看| 欧美日韩精品一区二区在线播放| 欧洲另类一二三四区| 国产人成一区二区三区影院| 日韩精品欧美精品| 欧美日韩激情一区二区| 国产欧美日韩麻豆91| 日韩不卡一二三区| 欧美日韩精品专区| 亚洲成人精品在线观看| 色婷婷av一区二区三区软件 | 欧美成人高清电影在线| 自拍偷在线精品自拍偷无码专区| 中文一区在线播放| 这里是久久伊人| 亚洲日本电影在线| 成人一区二区视频| 久久精品夜色噜噜亚洲aⅴ| 狠狠网亚洲精品| 欧美成人福利视频| 九色综合狠狠综合久久| 欧美成va人片在线观看| 国产在线不卡一区| 欧美精品一区二区三区视频| 裸体健美xxxx欧美裸体表演| 欧美三级中文字| 日韩中文欧美在线| 日韩一区二区三区av|