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

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

?? wvnetlib.c

?? vxworks的完整的源代碼
?? 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一区二区三区免费野_久草精品视频
日韩一二在线观看| 亚洲欧洲日本在线| 亚洲婷婷综合色高清在线| 午夜精品久久久久影视| 丰满少妇久久久久久久| 正在播放一区二区| 一区二区三区中文字幕精品精品| 韩国毛片一区二区三区| 7777精品伊人久久久大香线蕉完整版| 欧美国产禁国产网站cc| 久久99热99| 欧美一区二区播放| 一区二区三区中文字幕电影| 波多野结衣欧美| 久久综合久久综合久久综合| 日本人妖一区二区| 欧美电影在线免费观看| 亚洲综合视频网| 99re这里只有精品首页| 国产精品美女久久久久aⅴ| 精品一区中文字幕| 日韩亚洲欧美在线观看| 午夜精品久久久久久久| 欧美性感一类影片在线播放| 亚洲欧美偷拍三级| 91论坛在线播放| 亚洲欧美另类久久久精品| 粉嫩久久99精品久久久久久夜| 欧美sm极限捆绑bd| 精久久久久久久久久久| 久久久久久久av麻豆果冻| 韩国av一区二区三区四区| 日韩一区二区在线观看| 久久69国产一区二区蜜臀| 一区二区三区在线影院| 欧美综合一区二区| 香蕉久久夜色精品国产使用方法| 欧美性受xxxx| 日本不卡在线视频| 久久久久久久网| gogo大胆日本视频一区| 亚洲摸摸操操av| 欧美午夜电影在线播放| 丝袜美腿亚洲一区二区图片| 欧美一区二区三级| 国产成人综合亚洲网站| 国产精品高潮呻吟久久| 欧美综合欧美视频| 日韩影院在线观看| 精品日韩成人av| 国产99精品在线观看| 日韩伦理av电影| 欧美三级电影在线看| 麻豆91在线播放免费| 久久久亚洲国产美女国产盗摄| 国产成人av一区二区| 亚洲激情综合网| 日韩一区二区三区在线| 国产91精品久久久久久久网曝门| 亚洲人成网站精品片在线观看| 欧美久久一区二区| 国产激情视频一区二区在线观看| 国产精品久久久久aaaa樱花| 欧美视频一区二区三区在线观看 | 欧美色精品在线视频| 日韩va亚洲va欧美va久久| 久久精品视频在线免费观看 | 国产v综合v亚洲欧| 亚洲一区中文日韩| 久久夜色精品国产噜噜av| 91首页免费视频| 久久9热精品视频| 亚洲欧美偷拍卡通变态| 精品国产麻豆免费人成网站| 99re视频精品| 激情av综合网| 亚洲成av人在线观看| 欧美精彩视频一区二区三区| 欧美午夜一区二区| 成人激情免费视频| 麻豆精品一区二区三区| 亚洲激情自拍视频| 亚洲国产成人午夜在线一区| 欧美一区二区三区在线看| 91美女视频网站| 国产不卡一区视频| 久久精品国产免费| 成人av网站在线观看| 理论电影国产精品| 亚洲国产精品综合小说图片区| 国产精品美女一区二区| 精品国产乱码久久久久久老虎| 欧美日韩在线播| 欧洲亚洲精品在线| 91日韩在线专区| 成人av网站在线| 大桥未久av一区二区三区中文| 蜜臀av性久久久久蜜臀av麻豆| 亚洲成人av在线电影| 亚洲午夜一二三区视频| 亚洲免费观看高清完整版在线| 中文字幕成人网| 国产精品少妇自拍| 国产精品女主播在线观看| 国产亚洲人成网站| 国产欧美日韩精品在线| 久久久91精品国产一区二区三区| 日韩欧美资源站| 日韩久久久久久| 日韩欧美综合在线| 欧美成人三级电影在线| 欧美tickling网站挠脚心| 日韩精品一区国产麻豆| 精品久久五月天| 久久日一线二线三线suv| 久久香蕉国产线看观看99| 久久久精品免费网站| 欧美国产精品久久| 中文字幕一区二区三区四区 | 全部av―极品视觉盛宴亚洲| 天天综合网 天天综合色| 日日摸夜夜添夜夜添国产精品| 免费看黄色91| 国产精一区二区三区| 波多野结衣欧美| 欧美亚日韩国产aⅴ精品中极品| 欧美日韩一区二区三区四区| 日韩一卡二卡三卡四卡| 久久久久久影视| 中文字幕一区三区| 亚洲国产精品一区二区www| av一二三不卡影片| 欧美三级韩国三级日本一级| 欧美一级专区免费大片| 久久精品免视看| 亚洲美女在线一区| 日韩电影在线观看电影| 国产成人小视频| 在线一区二区观看| 日韩视频一区二区在线观看| 国产午夜亚洲精品羞羞网站| 亚洲精品你懂的| 蜜臀久久久久久久| 91亚洲精品乱码久久久久久蜜桃 | 国产999精品久久久久久绿帽| jlzzjlzz欧美大全| 9191久久久久久久久久久| 久久亚洲精华国产精华液| 亚洲欧美日韩系列| 美女爽到高潮91| 99国产精品99久久久久久| 欧美一区二区三区在线观看视频 | 色天使色偷偷av一区二区| 日韩欧美你懂的| 亚洲欧美日韩国产中文在线| 久久国产精品99久久久久久老狼 | 国产99一区视频免费| 欧美精品电影在线播放| 中文字幕精品—区二区四季| 三级精品在线观看| 亚洲精品在线观看网站| 亚洲在线视频免费观看| 国产精品亚洲午夜一区二区三区 | 日韩电影在线观看网站| aaa欧美色吧激情视频| 日韩一二三四区| 亚洲激情图片一区| 成人久久视频在线观看| 日韩免费高清av| 亚洲成av人片在线观看| 91在线视频18| 国产日韩精品一区二区三区| 青青草国产精品亚洲专区无| 91热门视频在线观看| 国产精品系列在线| 国内偷窥港台综合视频在线播放| 欧美日韩久久久一区| 自拍偷拍亚洲欧美日韩| 成人免费视频一区| 久久久精品天堂| 国产在线乱码一区二区三区| 欧美精品久久99| 午夜日韩在线电影| 欧美视频一区二区| 一区二区三区在线视频观看58| 成人h动漫精品一区二区| 国产婷婷色一区二区三区在线| 蜜臀国产一区二区三区在线播放| 欧美日韩视频一区二区| 亚洲一区二区精品3399| 91在线码无精品| 综合欧美亚洲日本| 99久久伊人久久99| 国产精品成人在线观看| 成人av网站在线观看免费| 国产精品久久网站| 91丨porny丨首页| 亚洲欧洲日韩在线| 色吊一区二区三区| 亚洲大片一区二区三区|