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

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

?? wvnetlib.c

?? vxworks的完整的源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
        /*          * Convert the offset to an array index based on the number of         * bytes in the bitmap.         */        byteIndex = WVNET_MASKSIZE - 1 - byteOffset;        /*         * Set event map so WV_NET_EVENT_TEST macro will accept the         * specified event.         */        mask = 1 << (offset % 8);        wvNetEventMap [index].bitmap [byteIndex] |= mask;        }    return (result);    }/********************************************************************************* wvNetEventDisable - deactivate specific network events** This routine prevents 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 wvNetEventDisable    (    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;        /*          * Convert the offset to an array index based on the number of         * bytes in the bitmap.         */        byteIndex = WVNET_MASKSIZE - 1 - byteOffset;        /*         * Set event map so WV_NET_EVENT_TEST macro will reject the         * specified event.         */        mask = ~ (1 << (offset % 8));        wvNetEventMap [index].bitmap [byteIndex] &= mask;        }    return (result);    }/********************************************************************************* wvNetAddressFilterSet - specify an address filter for events** This routine activates an additional test that disables certain events* that do not match the specified IP address. The <pAddress> parameter* provides the test value in dotted-decimal format. The <type> parameter* indicates whether that address is compared against the source or* destination values, and the <direction> value identifies whether the * <type> is interpreted from the perspective of incoming or outgoing traffic.* The <pMask> parameter provides a network mask to support testing for a* group of events.** RETURNS: OK if filter set, or ERROR otherwise.** ERRNO: N/A**/STATUS wvNetAddressFilterSet    (    char * 	pAddress, 	/* target address for event comparisons */    char * 	pMask, 		/* mask value applied to data fields */    int 	type, 		/* 0 for source, 1 for destination */     int 	direction 	/* 0 for input, 1 for output */    )    {    int targetAddr;    int targetMask;    STATUS result = OK;    targetAddr = inet_addr (pAddress);    targetMask = inet_addr (pMask);    if (targetAddr == ERROR)   /* targetMask of 255.255.255.255 is OK. */        return (ERROR);    if (direction == 0 && type == 0)        {        wvNetInputSrcAddr = targetAddr;        wvNetInputSrcMask = targetMask;        wvNetInputSrcAddrFlag = TRUE;        }    else if (direction == 0 && type == 1)        {        wvNetInputDstAddr = targetAddr;        wvNetInputDstMask = targetMask;        wvNetInputDstAddrFlag = TRUE;        }    else if (direction == 1 && type == 0)        {        wvNetOutputSrcAddr = targetAddr;        wvNetOutputSrcMask = targetMask;        wvNetOutputSrcAddrFlag = TRUE;        }    else if (direction == 1 && type == 1)        {        wvNetOutputDstAddr = targetAddr;        wvNetOutputDstMask = targetMask;        wvNetOutputDstAddrFlag = TRUE;        }     else        result = ERROR;    return (result);    }/********************************************************************************* wvNetAddressFilterClear - remove the address filter for events** This routine removes any active address filter test indicated by* the <type> and <direction> parameters used to enable it. Affected* events will be reported unconditionally.** RETURNS: N/A** ERRNO: N/A*/void wvNetAddressFilterClear    (    int 	type, 		/* 0 for source, 1 for destination */     int 	direction 	/* 0 for input, 1 for output */    )    {    if (direction == 0 && type == 0)        wvNetInputSrcAddrFlag = FALSE;    else if (direction == 0 && type == 1)        wvNetInputDstAddrFlag = FALSE;    else if (direction == 1 && type == 0)        wvNetOutputSrcAddrFlag = FALSE;    else if (direction == 1 && type == 1)        wvNetOutputDstAddrFlag = FALSE;    return;    }/********************************************************************************* wvNetPortFilterSet - specify an address filter for events** This routine activates an additional filter, which disables certain events * that do not match the specified port value. The <port> parameter provides * the test value and the <type> parameter indicates whether that value is * compared against the source or destination fields. The <direction> setting * identifies whether the <type> is interpreted from the perspective of * incoming or outgoing traffic.** RETURNS: OK if filter set, or ERROR otherwise.** ERRNO: N/A*/STATUS wvNetPortFilterSet    (    int 	port, 		/* target port for event comparisons */    int 	type, 		/* 0 for source, 1 for destination */     int 	direction 	/* 0 for input, 1 for output */    )    {    STATUS result = OK;    if (direction == 0 && type == 0)        {        wvNetInputSrcPort = port;        wvNetInputSrcPortFlag = TRUE;        }    else if (direction == 0 && type == 1)        {        wvNetInputDstPort = port;        wvNetInputDstPortFlag = TRUE;        }    else if (direction == 1 && type == 0)        {        wvNetOutputSrcPort = port;        wvNetOutputSrcPortFlag = TRUE;        }    else if (direction == 1 && type == 1)        {        wvNetOutputDstPort = port;        wvNetOutputDstPortFlag = TRUE;        }     else        result = ERROR;    return (result);    }/********************************************************************************* wvNetPortFilterClear - remove the port number filter for events** This routine removes any active port filter test indicated by* the <type> and <direction> parameters used to enable it. Affected* events will be reported unconditionally.** RETURNS: N/A** ERRNO: N/A*/void wvNetPortFilterClear    (    int 	type, 		/* 0 for source, 1 for destination */     int 	direction 	/* 0 for input, 1 for output */    )    {    if (direction == 0 && type == 0)        wvNetInputSrcPortFlag = FALSE;    else if (direction == 0 && type == 1)        wvNetInputDstPortFlag = FALSE;    else if (direction == 1 && type == 0)        wvNetOutputSrcPortFlag = FALSE;    else if (direction == 1 && type == 1)        wvNetOutputDstPortFlag = FALSE;    return;    }/********************************************************************************* wvNetAddressFilterTest - compare the given addresses with filter values** This routine is invoked by the WV_NET_ADDR_FILTER_TEST macro within* an event block. It returns TRUE if no filters are in effect or if the* target values for each filter match the given addresses.** RETURNS: TRUE if filter passes, or FALSE otherwise.** ERRNO: N/A** NOMANUAL*/BOOL wvNetAddressFilterTest    (    int filterType, 	/* 0 for input filter or 1 for output filter */    int targetType,	/* 1 for dst only, 2 for src only, or 3 for both */    ULONG srcAddr, 	/* current source address for event block */    ULONG dstAddr	/* current destination address for event block */    )    {    BOOL result = TRUE;    if (filterType == 0) 	/* Compare given addresses to input values. */        {        if (wvNetInputSrcAddrFlag && targetType != 1)            result = ((srcAddr & wvNetInputSrcMask) == wvNetInputSrcAddr);        /* Only test the destination address if any source test passed. */        if (result && wvNetInputDstAddrFlag && targetType != 2)            result = ((dstAddr & wvNetInputDstMask) == wvNetInputDstAddr);        }    if (filterType == 1)       /* Compare given addresses to output values. */        {        if (wvNetOutputSrcAddrFlag && targetType != 1)            result = ((srcAddr & wvNetOutputSrcMask) == wvNetOutputSrcAddr);        /* Only test the destination address if any source test passed. */        if (result && wvNetOutputDstAddrFlag && targetType != 2)            result = ((dstAddr & wvNetOutputDstMask) == wvNetOutputDstAddr);        }    /* if (!result)    /@ XXX - for testing, include if desired. @/        logMsg ("Address filter ignoring event.\n", 0, 0, 0, 0, 0, 0); */    return (result);    }/********************************************************************************* wvNetPortFilterTest - compare the given port numbers with filter values** This routine is invoked by the WV_NET_PORT_FILTER_TEST macro within* an event block. It returns TRUE if no filters are in effect or if the* target values for each filter match the given port numbers.** INTERNAL* Unlike the address filter tests, both the source and destination ports* are always available for the filtered events, so the <targetType> * parameter is not needed.** RETURNS: TRUE if filter passes, or FALSE otherwise.** ERRNO: N/A** NOMANUAL*/BOOL wvNetPortFilterTest    (    int filterType, 	/* 0 for input filter or 1 for output filter */    USHORT srcPort, 	/* current source port for event block */    USHORT dstPort	/* current destination port for event block */    )    {    BOOL result = TRUE;    if (filterType == 0) 	/* Compare given ports to input values. */        {        if (wvNetInputSrcPortFlag)            result = (srcPort == wvNetInputSrcPort);        /* Only test the destination port if any source test passed. */        if (result && wvNetInputDstPortFlag)            result = (dstPort == wvNetInputDstPort);        }    if (filterType == 1)       /* Compare given addresses to output values. */        {        if (wvNetOutputSrcPortFlag)            result = (srcPort == wvNetOutputSrcPort);        /* Only test the destination address if any source test passed. */        if (result && wvNetOutputDstPortFlag)            result = (dstPort == wvNetOutputDstPort);        }    return (result);    }#if 0/********************************************************************************* wvNetEventTest - check if event is enabled** This routine duplicates the WV_NET_EVENT_TEST macro. It checks the bitmap* for an event to determine if it should be reported to the host-side of the * WindView tool. It is never called, and is present only to illustrate the * macro behavior.** RETURNS: TRUE if event is selected, or FALSE otherwise.** ERRNO: N/A** NOMANUAL*/BOOL wvNetEventTest    (    int priority, 	/* priority level of event */    int offset 		/* identifier within priority level */    )    {    BOOL result;    int index;    UCHAR mask;    int byteOffset;    int byteIndex;    /*      * Because of array indexing, the index into the event map is one     * less than the value assigned to the priority level.     */    index = priority - 1;    byteOffset = offset / 8;    /*      * Convert the offset to an array index based on the number of     * bytes in the bitmap.     */    byteIndex = WVNET_MASKSIZE - 1 - byteOffset;    /* Check the flag in the bitmap for the specified event. */    mask = 1 << (offset % 8);    result = (wvNetEventMap [index].bitmap [byteIndex] & mask);    return (result);    }#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕乱码亚洲精品一区 | 欧美日韩国产区一| 4438x成人网最大色成网站| 国产欧美日韩视频一区二区| 亚洲一区二区三区四区中文字幕| 捆绑紧缚一区二区三区视频| 成人avav在线| 欧美va亚洲va| 亚洲成人免费av| 色综合天天综合在线视频| 国产精品国模大尺度视频| 亚洲国产综合91精品麻豆| 岛国av在线一区| 精品国产一区二区三区久久久蜜月 | 欧美放荡的少妇| 亚洲免费观看高清完整| 国产激情一区二区三区| 日韩一二在线观看| 亚洲国产精品天堂| 色吧成人激情小说| 国产精品久久免费看| 国内精品国产成人| 日韩精品一区在线| 蜜臀久久久久久久| 91麻豆精品国产综合久久久久久| 亚洲乱码国产乱码精品精可以看| 成人午夜在线免费| 欧美激情中文不卡| 国产毛片精品一区| 2023国产一二三区日本精品2022| 五月天亚洲精品| 欧美亚洲国产一区二区三区| 成人免费小视频| av在线这里只有精品| 亚洲国产精品av| 成人av网在线| 中文字幕中文字幕在线一区 | 亚洲高清免费观看高清完整版在线观看| 91在线视频播放| 亚洲美女电影在线| 色婷婷精品久久二区二区蜜臂av | 午夜视频在线观看一区| 欧美日韩国产免费| 免费在线看一区| 欧美成人精品3d动漫h| 久久不见久久见免费视频1| 日韩欧美一区二区视频| 精品亚洲欧美一区| 国产精品欧美经典| 日本道在线观看一区二区| 一区二区国产盗摄色噜噜| 欧美视频在线不卡| 久久不见久久见免费视频7| 国产亚洲短视频| 色一情一伦一子一伦一区| 午夜精品成人在线| 久久精品一区二区三区不卡| 成人a免费在线看| 亚洲综合区在线| 日韩一级免费一区| 北条麻妃一区二区三区| 亚洲国产视频在线| 久久久噜噜噜久久人人看| 91无套直看片红桃| 日本午夜精品一区二区三区电影| 精品日韩在线观看| 高清av一区二区| 一区二区三区久久| 欧美tickle裸体挠脚心vk| 99久久久精品免费观看国产蜜| 亚洲大片免费看| 国产日韩欧美不卡在线| 欧美日韩一卡二卡三卡 | 亚洲免费观看视频| 日韩精品一区二区三区在线播放| 粉嫩aⅴ一区二区三区四区五区| 一区二区在线观看免费视频播放| 欧美大尺度电影在线| jlzzjlzz亚洲女人18| 日本在线观看不卡视频| 国产精品理伦片| 亚洲精品一线二线三线无人区| 97久久精品人人做人人爽50路| 日本美女一区二区三区视频| 中文字幕一区二区三区四区不卡 | 午夜日韩在线电影| 国产日韩欧美一区二区三区乱码| 欧美特级限制片免费在线观看| 久久不见久久见免费视频7| 一区二区视频在线看| 26uuu国产一区二区三区| 色综合天天综合色综合av| 国产麻豆视频精品| 日本成人中文字幕在线视频| 亚洲精品免费播放| 国产精品理论在线观看| 精品国产凹凸成av人网站| 欧美人xxxx| 欧美性感一类影片在线播放| 成人网在线免费视频| 激情亚洲综合在线| 成人ar影院免费观看视频| 蜜臀国产一区二区三区在线播放| 亚洲自拍偷拍av| 亚洲欧美电影一区二区| 中文字幕免费观看一区| 久久久久97国产精华液好用吗| 欧美电影免费观看高清完整版在 | 欧美日本在线一区| 91福利在线免费观看| www.爱久久.com| 成人一级片在线观看| 国产精品影视网| 国产毛片精品一区| 韩国欧美国产1区| 国产一区二区久久| 国产原创一区二区| 美女网站在线免费欧美精品| 日韩国产在线一| 日本aⅴ免费视频一区二区三区| 亚洲一区二区欧美日韩| 一区二区三区精品在线| 亚洲老妇xxxxxx| 亚洲小少妇裸体bbw| 亚洲一区免费视频| 丝袜美腿亚洲一区| 久久99精品久久久久婷婷| 精品亚洲欧美一区| 福利一区福利二区| 99精品桃花视频在线观看| 色视频一区二区| 777色狠狠一区二区三区| 91精品国产麻豆| 精品国产精品一区二区夜夜嗨| 久久久国产精品麻豆| 国产精品久久久久一区 | 久久奇米777| 国产亚洲一区字幕| 中文字幕一区二区三区蜜月| 亚洲情趣在线观看| 日韩在线a电影| 精品一区二区久久| 99国产欧美久久久精品| 欧美丰满高潮xxxx喷水动漫| 久久综合色8888| 亚洲欧美一区二区三区极速播放 | 国产精品一品视频| 不卡的av电影在线观看| 欧美亚洲免费在线一区| 精品国产成人在线影院| 自拍偷在线精品自拍偷无码专区 | 国产一区二区在线视频| 成人av电影观看| 欧美理论电影在线| 国产拍欧美日韩视频二区| 一区二区三区四区在线免费观看| 日本中文在线一区| 97国产精品videossex| 欧美电影免费观看高清完整版在线观看| 亚洲国产岛国毛片在线| 亚洲一区二区黄色| 国产成人在线看| 欧美日韩免费电影| 国产欧美日韩久久| 日本不卡一区二区三区高清视频| 国产精品456| 777午夜精品视频在线播放| 国产精品麻豆欧美日韩ww| 免费的国产精品| 色噜噜夜夜夜综合网| 国产午夜精品福利| 理论电影国产精品| 欧美亚洲一区三区| 中文字幕不卡在线观看| 美女一区二区三区在线观看| 色成年激情久久综合| 国产精品久久久久精k8 | 91麻豆精品国产91久久久久| 国产精品私房写真福利视频| 老司机午夜精品| 在线成人av影院| 亚洲激情五月婷婷| 成人黄色a**站在线观看| 亚洲精品一区二区三区蜜桃下载| 视频一区视频二区中文字幕| 91麻豆福利精品推荐| 国产亚洲一区二区三区| 久久99久久99精品免视看婷婷| 欧美老肥妇做.爰bbww| 依依成人精品视频| 日本韩国精品在线| 亚洲欧美日韩国产中文在线| 国产精品一线二线三线精华| 欧美大片在线观看| 激情综合色播五月| 精品粉嫩超白一线天av| 蜜桃av一区二区在线观看| 欧美一级欧美三级在线观看| 亚洲二区在线观看| 欧美体内she精高潮|