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

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

?? wvnetlib.c

?? vxwork源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* wvNetLib.c - WindView for Networking Interface Library *//* Copyright 1990 - 2000 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01d,10may02,kbw  making man page edits01c,25oct00,ham  doc: cleanup for vxWorks AE 1.0.01b,07jun00,ham  fixed a compilation warning.01a,12jan00,spm  written*//*DESCRIPTIONThis library provides the user interface to the network-related eventsfor the WindView system visualization tool. These events are divided intotwo WindView classes. The NET_CORE_EVENT class indicates events directlyrelated to data transfer. All other events (such as memory allocation andAPI routines) use the NET_AUX_EVENT class. Within each class, events areassigned one of eight priority levels. The four highest priority levels (EMERGENCY, ALERT, CRITICAL, and ERROR) indicate the occurrence of errors and the remaining four (WARNING, NOTICE, INFO, and VERBOSE) provide progressively more detailed information about the internal processing in the network stack. USER INTERFACEIf WindView support is included, the wvNetStart() and wvNetStop() routines will enable and disable event reporting for the network stack. The startroutine takes a single parameter specifying the minimum priority level forall network components. That setting may be modified with the wvNetLevelAdd() and wvNetLevelRemove() routines. Individual events may be included or removedwith the wvNetEventEnable() and wvNetDisable() routines.The wvNetAddressFilterSet() and wvNetPortFilterSet() routines provide further screening for some events.INTERNALThe WindView monitor executing on a VxWorks target transmits events to theWindView parser on the host based on the event class. Increasing the numberof classes beyond two would allow more precise control over event generation and reduce the load on the VxWorks target, but the total number of available classes is limited. Events are generated within each source code module using macros definedin the wvNetLib.h include file. The WV_BLOCK_START macro determines whether WindView is active and verifies that the given event class has been selected. All WindView related processing must be enclosed between a WV_BLOCK_START and WV_BLOCK_END pair.The WV_NET_EVENT_TEST macro immediately follows the start of the WindViewevent block. It verifies that an individual event is selected by testingthe contents of the event selection map. The event map contains bitmaps for all events within each of the eight priority levels. It is modified by the user interface routines as the settings are changed. Currently, no priority level contains more than 64 events. If that limit is exceeded, the EVENT_MASK structure must be expanded. Local variables indicate the number of events currently defined for each priority level.If an event is active, the WV_NET_FILTER_TEST macro verifies than any remaining conditions are satisfied.If an event fulfills all the conditions, the event identifier is constructedwith the WV_NET_EVENT_SET or WV_NET_MARKER_SET macros and the eventis logged with the evtLogOInt() routine. The event identifier encodesthe related system component (currently 0x30) and the source code module, priority level, and data transfer direction for all events.To use this feature, include the following component:INCLUDE_WVNETINCLUDE FILES:SEE ALSO:.I "WindView for Tornado User's Guide"*//* includes */#include "vxWorks.h"#include "wvLib.h"#include "wvNetLib.h"/* globals */EVENT_MASK wvNetEventMap [8]; /* Bitmasks for all event priorities. */BOOL wvNetAddressFilterTest (int, int, ULONG, ULONG);BOOL wvNetPortFilterTest (int, USHORT, USHORT);/* external variables */IMPORT EVENT_MASK * pWvNetEventMap;IMPORT u_long inet_addr (char * inetString);/* locals */LOCAL int maxEmergencyOffset = 45;       /*                                 */LOCAL int maxAlertOffset = 8;            /* The maximum offset value for    */LOCAL int maxCriticalOffset = 34;        /* each priority level is one      */LOCAL int maxErrorOffset = 47;           /* less than the number of events. */LOCAL int maxWarningOffset = 19;         /* If it exceeds 63, the bitmap    */LOCAL int maxNoticeOffset = 22;          /* size must be increased.         */LOCAL int maxInfoOffset = 56;LOCAL int maxVerboseOffset = 57;LOCAL BOOL wvNetInputSrcAddrFlag = FALSE;LOCAL BOOL wvNetInputDstAddrFlag = FALSE;LOCAL int wvNetInputSrcAddr;LOCAL int wvNetInputSrcMask;LOCAL int wvNetInputDstAddr;LOCAL int wvNetInputDstMask;LOCAL BOOL wvNetOutputSrcAddrFlag = FALSE;LOCAL BOOL wvNetOutputDstAddrFlag = FALSE;LOCAL int wvNetOutputSrcAddr;LOCAL int wvNetOutputSrcMask;LOCAL int wvNetOutputDstAddr;LOCAL int wvNetOutputDstMask;LOCAL BOOL wvNetInputSrcPortFlag;LOCAL int wvNetInputSrcPort;LOCAL BOOL wvNetInputDstPortFlag;LOCAL int wvNetInputDstPort;LOCAL BOOL wvNetOutputSrcPortFlag;LOCAL int wvNetOutputSrcPort;LOCAL BOOL wvNetOutputDstPortFlag;LOCAL int wvNetOutputDstPort;/* forward declarations *//********************************************************************************* wvNetInit - stub routine for linker** This routine is called during system startup so that the global variables* storing the WindView settings for the networking instrumentation are * available. It also initializes the event bitmaps so that all events* are reported when logging begins. Event selection can be customized* with the appropriate library routines.** RETURNS: N/A** ERRNO: N/A** NOMANUAL*/void wvNetInit (void)    {    int index;    int loop;    /*      * Enable all events for each level. Because of the array indexing,     * the index into the event map is one less than the value assigned     * to the priority level.     */    for (index = WV_NET_EMERGENCY - 1; index < WV_NET_VERBOSE; index++)        {        /*          * Currently, no priority level uses more than 64 events. This         * inner loop must be increased if that limit is exceeded.         */        for (loop = 0; loop < 8; loop++)            wvNetEventMap [index].bitmap [loop] = 255;        }    /* Provide access to the event map from instrumented modules. */    pWvNetEventMap = wvNetEventMap;    _func_wvNetAddressFilterTest = wvNetAddressFilterTest;    _func_wvNetPortFilterTest = (FUNCPTR)wvNetPortFilterTest;    return;    } /********************************************************************************* wvNetEnable - begin reporting network events to WindView** This routine activates WindView event reporting for network components,* after disabling all events with a priority less than <level>. The* default value (or a <level> of WV_NET_VERBOSE) will not disable* any additional events. The available priority values are:**     WV_NET_EMERGENCY (1)*     WV_NET_ALERT (2)*     WV_NET_CRITICAL (3)*     WV_NET_ERROR (4)*     WV_NET_WARNING (5)*     WV_NET_NOTICE (6)*     WV_NET_INFO (7)*     WV_NET_VERBOSE (8)* * If an event is not explicitly disabled by the priority level, it uses the * current event selection map and class settings. The initial values enable* all events of both classes. ** RETURNS: N/A** ERRNO: N/A*/void wvNetEnable    (    int priority    /* minimum priority, or 0 for default of WV_NET_VERBOSE */    )    {    int index;    int loop;    /*     * Because of the array indexing, the <priority> parameter provides the     * starting offset into the event map for the lower priority events.      * Events with priorities greater than or equal to the given level     * remain enabled. All other events are disabled.     */    if (priority == 0)	/* Set index so no events are disabled by default.*/        priority = WV_NET_VERBOSE;    for (index = priority; index < WV_NET_VERBOSE; index++)        {        /*          * Set event map so WV_NET_EVENT_TEST macro will reject events         * with lower priority (currently up to 64 per level).          */        for (loop = 0; loop < 8; loop++)            wvNetEventMap [index].bitmap [loop] = 0;        }    /*     * Begin reporting network events from both the primary and auxiliary     * classes. Also enable the class 1 (context switching) events,     * in case they are not already active.     */    WV_EVTCLASS_SET (WV_NET_CORE_CLASS | WV_NET_AUX_CLASS);    return;    }/********************************************************************************* wvNetDisable - end reporting of network events to WindView** This routine stops WindView event reporting for all network components.** RETURNS: N/A** ERRNO: N/A*/void wvNetDisable (void)    {    /* Stop reporting events from either class. */    WV_EVTCLASS_UNSET (WV_NET_CORE_CLASS | WV_NET_AUX_CLASS);    return;    }/********************************************************************************* wvNetLevelAdd - enable network events with specific priority level** This routine changes the event selection map to allow reporting of any * events with priority equal to <level>. It will override current event * selections for the given priority, but has no effect on settings for * events with higher or lower priorities. The available priority values * are:**     WV_NET_EMERGENCY (1)*     WV_NET_ALERT (2)*     WV_NET_CRITICAL (3)*     WV_NET_ERROR (4)*     WV_NET_WARNING (5)*     WV_NET_NOTICE (6)*     WV_NET_INFO (7)*     WV_NET_VERBOSE (8)* * Events are only reported based on the current WindView class setting. The * initial (default) setting includes networking events from both classes.** RETURNS: OK, or ERROR for unknown event level.** ERRNO: N/A*/STATUS wvNetLevelAdd    (    int priority 	/* priority level to enable */    )    {    int index;    int loop;    if (priority < WV_NET_EMERGENCY || priority > WV_NET_VERBOSE)        return (ERROR);    /*      * Because of array indexing, the index into the event map is one     * less than the value assigned to the priority level.     */    index = priority - 1;    /*     * Set event map so WV_NET_EVENT_TEST macro will accept any events      * with selected priority (currently up to 64 per level).     */    for (loop = 0; loop < 8; loop++)         wvNetEventMap [index].bitmap [loop] = 255;    return (OK);    }/********************************************************************************* wvNetLevelRemove - disable network events with specific priority level** This routine changes the event selection map to prevent reporting of any * events with priority equal to <level>. It will override the current event * selection for the given priority, but has no effect on settings for events * with higher or lower priorities. The available priority values are:**     WV_NET_EMERGENCY (1)*     WV_NET_ALERT (2)*     WV_NET_CRITICAL (3)*     WV_NET_ERROR (4)*     WV_NET_WARNING (5)*     WV_NET_NOTICE (6)*     WV_NET_INFO (7)*     WV_NET_VERBOSE (8)* * Events are only reported based on the current WindView class setting. The* initial (default) setting includes networking events from both classes.** RETURNS: OK, or ERROR for unknown event level.** ERRNO: N/A*/STATUS wvNetLevelRemove    (    int priority 	/* priority level to disable */    )    {    int index;    int loop;    if (priority < WV_NET_EMERGENCY || priority > WV_NET_VERBOSE)        return (ERROR);    /*      * Because of array indexing, the index into the event map is one     * less than the value assigned to the priority level.     */    index = priority - 1;    /*     * Set event map so WV_NET_EVENT_TEST macro will reject any events      * with selected priority (currently up to 64 per level).     */    for (loop = 0; loop < 8; loop++)         wvNetEventMap [index].bitmap [loop] = 0;    return (OK);    }/********************************************************************************* wvNetEventEnable - activate specific network events** This routine allows reporting of a single event within the priority equal * to <level>. The activation is overridden if the setting for the entire * priority level changes. The available priority values are:**     WV_NET_EMERGENCY (1)*     WV_NET_ALERT (2)*     WV_NET_CRITICAL (3)*     WV_NET_ERROR (4)*     WV_NET_WARNING (5)*     WV_NET_NOTICE (6)*     WV_NET_INFO (7)*     WV_NET_VERBOSE (8)* * Offset values for individual events are listed in the documentation.** RETURNS: OK, or ERROR for unknown event.** ERRNO: N/A*/STATUS wvNetEventEnable    (    int priority, 	/* priority level of event */    int offset 		/* identifier within priority level */    )    {    STATUS result = OK;    int index;    UCHAR mask;    int byteOffset;    int byteIndex;    switch (priority)        {        case WV_NET_EMERGENCY:            if (offset > maxEmergencyOffset)                result = ERROR;            break;        case WV_NET_ALERT:            if (offset > maxAlertOffset)                result = ERROR;            break;        case WV_NET_CRITICAL:            if (offset > maxCriticalOffset)                result = ERROR;            break;        case WV_NET_ERROR:            if (offset > maxErrorOffset)                result = ERROR;            break;        case WV_NET_WARNING:            if (offset > maxWarningOffset)                result = ERROR;            break;        case WV_NET_NOTICE:            if (offset > maxNoticeOffset)                result = ERROR;            break;        case WV_NET_INFO:            if (offset > maxInfoOffset)                result = ERROR;            break;        case WV_NET_VERBOSE:            if (offset > maxVerboseOffset)                result = ERROR;            break;        default: 	/* Unknown priority level */            result = ERROR;            break;        }    /*      * Because of array indexing, the index into the event map is one     * less than the value assigned to the priority level.     */    index = priority - 1;    if (result == OK)        {                byteOffset = offset / 8;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美在线观看一区二区| 久久av资源站| 在线免费不卡电影| 亚洲欧洲制服丝袜| 欧美中文字幕亚洲一区二区va在线 | 国产精品久久久久久户外露出| 国产精品1区2区3区在线观看| 欧美韩日一区二区三区四区| 成人性视频免费网站| 中文文精品字幕一区二区| 日本国产一区二区| 天堂蜜桃一区二区三区| 26uuu久久天堂性欧美| 成人午夜看片网址| 亚洲精选视频免费看| 欧美日韩精品欧美日韩精品一综合| 亚洲成国产人片在线观看| 日韩免费视频线观看| 99久久精品国产精品久久| 亚洲精品乱码久久久久久| 91精品国产入口在线| 国产麻豆成人传媒免费观看| 丝袜亚洲另类欧美| 26uuu国产一区二区三区| 成人app网站| 亚洲高清在线精品| 日韩三级在线免费观看| 成a人片国产精品| 午夜久久久久久久久| 国产日韩欧美激情| 欧美日韩精品专区| 国产精品 欧美精品| 亚洲国产精品久久久男人的天堂| 日韩精品最新网址| 91老司机福利 在线| 日韩一区欧美二区| 欧美国产国产综合| 欧美一区二区精品| 色综合久久中文综合久久牛| 蜜臀久久99精品久久久久宅男| 欧美国产综合色视频| 欧美精品第1页| 成人中文字幕在线| 麻豆一区二区三区| 亚洲一卡二卡三卡四卡无卡久久| 国产色一区二区| 欧美一区二区大片| 欧美性猛交xxxx黑人交| 成人激情图片网| 久88久久88久久久| 亚洲电影视频在线| 亚洲欧美成aⅴ人在线观看| 精品国产免费久久 | 欧美日韩亚洲不卡| 99精品视频在线播放观看| 日韩高清中文字幕一区| 亚洲黄色在线视频| 中文字幕一区二区三中文字幕| 精品国产91乱码一区二区三区| 欧美午夜精品一区| 91一区二区在线观看| 国产99久久久国产精品免费看| 日本vs亚洲vs韩国一区三区二区 | 91香蕉视频污在线| 国产成人综合网站| 精品无人区卡一卡二卡三乱码免费卡 | 中文字幕成人av| 久久久久久麻豆| 精品国产污网站| 日韩精品专区在线影院观看| 制服丝袜中文字幕一区| 欧美手机在线视频| 欧美日韩黄色影视| 欧美日韩你懂得| 欧美视频一二三区| 欧美人与性动xxxx| 欧美高清视频不卡网| 欧美高清dvd| 欧美肥妇bbw| 日韩三级免费观看| 日韩精品在线一区二区| 欧美一级在线观看| 欧美成人女星排名| 2020国产精品自拍| 久久女同精品一区二区| 国产日韩在线不卡| 日本一区二区三级电影在线观看| 日本一区二区视频在线| 18欧美亚洲精品| 亚洲成人综合视频| 美女脱光内衣内裤视频久久网站| 久久精品国内一区二区三区| 国产一区二区91| 成人激情av网| 色成年激情久久综合| 欧美日韩在线播| 精品日韩成人av| 日本一二三不卡| 亚洲天堂2014| 国产毛片精品视频| 国产福利91精品| 色久综合一二码| 在线播放中文一区| 久久精品无码一区二区三区| 国产精品家庭影院| 亚洲一区二三区| 蜜桃视频在线观看一区| 国产成人av电影在线| 色婷婷综合久久久久中文一区二区| 欧美日韩免费一区二区三区| 久久新电视剧免费观看| 亚洲日本成人在线观看| 日韩福利电影在线| 国产成人av电影免费在线观看| 91黄色免费版| 久久免费看少妇高潮| 亚洲视频一二区| 奇米影视7777精品一区二区| 成人性生交大合| 精品视频在线免费看| 久久久高清一区二区三区| 亚洲欧美偷拍三级| 国模一区二区三区白浆| 欧美自拍偷拍午夜视频| 国产亚洲精久久久久久| 日韩vs国产vs欧美| av网站一区二区三区| 日韩精品中文字幕在线不卡尤物| 国产精品久久久久久久久晋中| 日韩精品一级二级| av成人动漫在线观看| 欧美大度的电影原声| 亚洲丝袜制服诱惑| 国产成人综合在线播放| 日韩欧美一区中文| 一级精品视频在线观看宜春院| 国产一区二区伦理片| 欧美一区二区三区精品| 一区二区三区丝袜| 成人免费va视频| 2020日本不卡一区二区视频| 日韩av中文字幕一区二区三区| 91美女片黄在线观看91美女| 久久蜜桃一区二区| 久久机这里只有精品| 欧美久久一二区| 亚洲综合999| 91免费看`日韩一区二区| 久久精品视频免费观看| 人妖欧美一区二区| 欧美精品久久久久久久多人混战| 亚洲乱码国产乱码精品精98午夜 | 日韩和欧美一区二区三区| 在线免费观看日本一区| 亚洲人成伊人成综合网小说| heyzo一本久久综合| 亚洲国产电影在线观看| 国产一区二区导航在线播放| 日韩免费电影一区| 久久国产精品99久久人人澡| 国产精品免费丝袜| 国产精品一级黄| 国产欧美精品区一区二区三区| 精品一区二区三区免费视频| 日韩久久精品一区| 久久99最新地址| 精品国产99国产精品| 狠狠色丁香婷婷综合| 2014亚洲片线观看视频免费| 国精品**一区二区三区在线蜜桃| 日韩欧美高清在线| 激情欧美一区二区| 精品国产髙清在线看国产毛片| 久久99国内精品| 国产女同性恋一区二区| 成人精品免费网站| 日韩一区在线看| 欧美在线一区二区三区| 五月天一区二区| 欧美一二三四在线| 久久99精品久久久久婷婷| 国产女同互慰高潮91漫画| 99国产精品久久久久久久久久久| 1000精品久久久久久久久| 色婷婷精品久久二区二区蜜臂av| 一区二区成人在线观看| 欧美人妖巨大在线| 成人欧美一区二区三区黑人麻豆 | 欧美性做爰猛烈叫床潮| 亚洲午夜电影在线观看| 日韩一区二区三区四区| 激情国产一区二区| 国产婷婷一区二区| 色婷婷一区二区三区四区| 午夜欧美电影在线观看| 337p日本欧洲亚洲大胆色噜噜| 国产成+人+日韩+欧美+亚洲| 亚洲蜜臀av乱码久久精品蜜桃| 欧美日韩一二区| 国产成人自拍网|