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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? arplib.c

?? Tornado平臺(tái)下
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* arpLib.c - Address Resolution Protocol (ARP) table manipulation library *//* Copyright 1984 - 2002 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------02q,10may02,kbw  making man page edits02p,24apr02,rae  Added note about arp flooding to arpResolve(), etc. (SPR #69412)02o,07dec01,rae  merge from synth ver 02x (SPR #69889)02n,15oct01,rae  merge from truestack ver 02w base 02j (SPRs 69405, 65783, etc.)02m,07feb01,spm  added merge record for 30jan01 update from version 02l of                 tor2_0_x branch (base 02j) and fixed modification history;                 fixed code conventions and updated documentation; replaced                 printed error message with errno value02l,30jan01,ijm  merged SPR# 28602 fixes: proxy ARP services are obsolete 02k,05feb99,dgp  document errno values02j,16apr97,vin  changed SOCK_DGRAM to SOCK_RAW as udp can be scaled out.02i,11aug93,jmm  Changed ioctl.h and socket.h to sys/ioctl.h and sys/socket.h02h,21sep92,jdi  documentation cleanup. 02g,14aug92,elh  documentation changes. 02f,11jun92,elh  changed parameter to arpCmd.  Moved arpShow to netShow.02e,26may92,rrr  the tree shuffle		  -changed includes to have absolute path from h/02d,19apr92,elh  added spl pair around arpFlush.02c,04apr92,elh  added arpFlush.02b,03jan92,elh  ansi-fied.02a,18nov91,elh  major overhaul.  Rewrote to comply with WRS standards and		 coding conventions, added error handling and documentation.01a,06jun91,jrb  written.*//*DESCRIPTIONThis library provides direct access to the address translation tablemaintained by the Address Resolution Protocol (ARP). Each entry inthe table maps an Internet Protocol (IP) address to a physical hardware address. This library supports only those entries that translate between IP and Ethernet addresses. It is linked into the VxWorks image if INCLUDE_ARP is defined at the time the image is built. The underlying ARP protocol, which creates and maintains the table, is included automatically as part of the IP component.RELATED INTERFACESThe arpShow() routine (in the netShow library) displays the current contents of the ARP table.A low -evel interface to the ARP table is available with the socket-specific SIOCSARP, SIOCDARP and SIOCGARP ioctl functions.INTERNALThe structure chart for this module looks like:     arpAdd	arpDelete	|   \ 	  /	|    v   v        |    arpCmd	vetherAsciiToEnetINCLUDE FILES: arpLib.hSEE ALSO: inetLib, routeLib, netShow*//* includes */#include "vxWorks.h"#include "sys/types.h"#include "sys/socket.h"#include "sys/ioctl.h"#include "net/if.h"#include "netinet/if_ether.h"#include "net/if_arp.h"#include "net/unixLib.h"#include "errno.h"#include "arpLib.h"#include "inetLib.h"#include "stdio.h"#include "string.h"#include "sockLib.h"#include "ioLib.h"#include "unistd.h"#include "hostLib.h"#include "netShow.h"#include "taskLib.h"#ifdef VIRTUAL_STACK#ifdef _WRS_VXWORKS_5_X#include "memPartLib.h"#endif /* _WRS_VXWORKS_5_X */#include "netinet/vsLib.h"#include "netinet/vsArp.h"extern void arptimer (int);#endif/* defines */#define ENET_SIZE		6		/* Ethernet address size *//* forward static functions */LOCAL STATUS etherAsciiToEnet (char * asciiAddr, u_char * retEnet);IMPORT void arptfree ();#ifndef VIRTUAL_STACKIMPORT struct llinfo_arp llinfo_arp;#endif/********************************************************************************* arpLibInit - ARP table manipulation library initialization** This routine is called during system startup if INCLUDE_ARP_API is defined. * Normally, its only purpose is to automatically link this module into the* runtime image. The virtual stack modifications extend this routine to* initialize the required variables and start the appropriate timer.** RETURNS: N/A** ERRNO: N/A** NOMANUAL*/void arpLibInit (void)    {#ifdef VIRTUAL_STACK    /*     * Make sure arpLibInit has not been called before. This can happen     * when INCLUDE_ARP_API has been included in a build.     */    if (arptimerWd == NULL)	{        _llinfo_arp.la_next = &_llinfo_arp;        _llinfo_arp.la_prev = &_llinfo_arp;        arpRxmitTicks = -1;        arptimerWd = wdCreate ();        arptimer(myStackNum);	}#endif /* VIRTUAL_STACK */    return;    }/********************************************************************************* arpAdd - create or modify an ARP table entry** This routine assigns an Ethernet address to an IP address in the ARP table.* The <pHost> parameter specifies the host by name or by Internet address * using standard dotted decimal notation. The <pEther> parameter provides the * Ethernet address as six hexadecimal bytes (between 0 and ff) separated by * colons. A new entry is created for the specified host if necessary.* Otherwise, the existing entry is changed to use the given Ethernet address.** The <flags> parameter combines any of the following options: * .iP "ATF_PERM  (0x04)"* Create a permanent ARP entry which will not time out.* .iP "ATF_PUBL  (0x08)"* Publish this entry. The host will respond to ARP requests even if the* <pHost> parameter does not match a local IP address. This setting provides * a limited form of proxy ARP.* .iP "ATF_PROXY (0x10)"* Use a "wildcard" hardware address. The proxy server uses this setting to* support multiple proxy networks. The entry always supplies the hardware* address of the sending interface.* * EXAMPLE* Create a permanent ARP table entry for the host named "myHost" with* Ethernet address 0:80:f9:1:2:3:* .CS*     arpAdd ("myHost", "0:80:f9:1:2:3", 0x4);* .CE** Assuming "myHost" has the Internet address "90.0.0.3", the following call* changes the Ethernet address to 0:80:f9:1:2:4. No additional flags are set * for that entry.* .CS*     arpAdd ("90.0.0.3", "0:80:f9:1:2:4", 0);* .CE** RETURNS: OK, or ERROR if unsuccessful.** ERRNO:*  S_arpLib_INVALID_ARGUMENT*  S_arpLib_INVALID_HOST*  S_arpLib_INVALID_ENET_ADDRESS*  S_arpLib_INVALID_FLAG*  or results of low-level ioctl call.*/STATUS arpAdd    (    char *		pHost,		/* host name or IP address */    char *		pEther,		/* Ethernet address */    int  		flags     	/* ARP flags */    )    {    struct in_addr	hostAddr;	/* host address	*/    u_char 		ea [ENET_SIZE];	/* Ethernet address */#ifdef VIRTUAL_STACK    virtualStackIdCheck();#endif /* VIRTUAL_STACK */    if ((pHost == NULL) || (pEther == NULL)) 	/* validate parameters */	{	errno = S_arpLib_INVALID_ARGUMENT;	return (ERROR);	}						/* convert address from ascii */    if (((hostAddr.s_addr = inet_addr (pHost)) == ERROR) &&	((hostAddr.s_addr = hostGetByName (pHost)) == ERROR))	{	errno = S_arpLib_INVALID_HOST;	return (ERROR);	}						/* convert enet from ascii */    if (etherAsciiToEnet (pEther, ea) != OK)	return (ERROR);						/* validate flags */    if (flags & ~(ATF_PERM | ATF_PUBL | ATF_INCOMPLETE | ATF_PROXY))	{	errno = S_arpLib_INVALID_FLAG;	return (ERROR);	}    if (arpCmd (SIOCSARP, &hostAddr, ea, &flags) == ERROR)	return (ERROR);    return (OK);    }/********************************************************************************* arpDelete - remove an ARP table entry** This routine deletes an ARP table entry. The <pHost> parameter indicates* the target entry using the host name or Internet address.** EXAMPLE* .CS*    arpDelete ("91.0.0.3")*    arpDelete ("myHost")* .CE** RETURNS: OK, or ERROR if unsuccessful.** ERRNO*  S_arpLib_INVALID_ARGUMENT*  S_arpLib_INVALID_HOST*/STATUS arpDelete    (    char *		pHost			/* host name or IP address */    )    {    struct in_addr 	hostAddr;		/* host address 	*/    char		addrInAscii [ INET_ADDR_LEN ]; /* IP in ascii	*/#ifdef VIRTUAL_STACK    virtualStackIdCheck();#endif /* VIRTUAL_STACK */    if (pHost == NULL)				/* validate argument */	{	errno = S_arpLib_INVALID_ARGUMENT;	return (ERROR);	}						/* convert addr from ascii */    if (((hostAddr.s_addr = inet_addr (pHost)) == ERROR) &&	((hostAddr.s_addr = hostGetByName (pHost)) == ERROR))	{        errno = S_arpLib_INVALID_HOST;	return (ERROR);	}    inet_ntoa_b (hostAddr, addrInAscii);	/* convert to printable fmt */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
视频一区视频二区中文| 91成人免费在线视频| 欧美一区二区三区四区在线观看| 亚洲色图欧洲色图婷婷| av一区二区不卡| 亚洲免费在线观看| 国产精品女同一区二区三区| 成人动漫视频在线| 亚洲午夜影视影院在线观看| 欧美丝袜丝nylons| 激情五月播播久久久精品| 2024国产精品视频| 91蝌蚪porny| 免费国产亚洲视频| 国产精品免费视频网站| 在线免费观看成人短视频| 蜜桃视频一区二区三区| 中文字幕av一区二区三区免费看| 成人听书哪个软件好| 婷婷综合另类小说色区| 国产亚洲成av人在线观看导航| 国产成人aaa| 日韩av电影免费观看高清完整版| 国产午夜亚洲精品理论片色戒| 色偷偷久久一区二区三区| 久久国产尿小便嘘嘘| 伊人性伊人情综合网| 久久久www免费人成精品| 欧美美女激情18p| 91色乱码一区二区三区| 国产又黄又大久久| 免费人成网站在线观看欧美高清| 亚洲麻豆国产自偷在线| 日本一区二区三级电影在线观看| 欧美色图在线观看| 色综合久久久久网| voyeur盗摄精品| 粉嫩蜜臀av国产精品网站| 美国三级日本三级久久99| 亚洲成人资源在线| 性做久久久久久免费观看| 一区二区三区欧美| 亚洲欧美日韩国产综合| 国产精品国产成人国产三级| 中文字幕av一区二区三区免费看 | 国产精品久久毛片a| 精品久久久久一区| 亚洲免费av高清| 亚洲国产成人高清精品| 亚洲小少妇裸体bbw| 日韩高清一区在线| 久久精品国产免费| 国产99久久久精品| av爱爱亚洲一区| 欧美日韩在线综合| 精品国产99国产精品| 久久精品欧美日韩精品| 国产精品美女一区二区三区| 中文字幕亚洲电影| 亚洲第一福利视频在线| 久久国产福利国产秒拍| 成人高清视频免费观看| 色悠悠久久综合| 精品美女一区二区三区| 国产精品私人自拍| 午夜免费欧美电影| 成人黄色软件下载| 欧美精品日韩一区| 国产欧美一区二区精品性色超碰 | 视频一区欧美精品| 国产99久久久精品| 91精品国产综合久久福利软件| 精品三级在线看| 亚洲精品免费看| 国产激情一区二区三区桃花岛亚洲| 97久久精品人人澡人人爽| 69成人精品免费视频| 最新热久久免费视频| 国产精品综合在线视频| 日本韩国一区二区| 国产免费成人在线视频| 激情综合网av| 欧美美女直播网站| 亚洲最大成人综合| 一本一本大道香蕉久在线精品| 久久精品人人做人人综合| 蜜臀av性久久久久av蜜臀妖精| 日本韩国精品一区二区在线观看| 中文字幕高清一区| 国产69精品一区二区亚洲孕妇| 日韩美女视频在线| 免费看日韩精品| 欧美一区二区三区色| 天堂午夜影视日韩欧美一区二区| 欧美优质美女网站| 亚洲欧美色综合| 色狠狠综合天天综合综合| 日韩毛片视频在线看| 色噜噜狠狠成人网p站| 一区二区三区国产豹纹内裤在线| 菠萝蜜视频在线观看一区| 中文幕一区二区三区久久蜜桃| 成人丝袜高跟foot| 亚洲午夜精品一区二区三区他趣| 欧美精品在线观看一区二区| 日韩精品91亚洲二区在线观看 | 欧美视频你懂的| 久久精品国产精品青草| 国产清纯美女被跳蛋高潮一区二区久久w| 国产一区二区免费在线| 亚洲私人黄色宅男| 欧美日本国产视频| 高清不卡在线观看av| 一区二区理论电影在线观看| 欧美日本一道本在线视频| 国产精品一二三区| 亚洲1区2区3区视频| 亚洲精品一区二区在线观看| 不卡一二三区首页| 裸体健美xxxx欧美裸体表演| 欧美激情中文字幕| 欧美一区二区三区免费在线看| 国产盗摄视频一区二区三区| 亚洲猫色日本管| 欧美激情中文不卡| 精品久久人人做人人爰| 日本福利一区二区| 99re6这里只有精品视频在线观看| 免费视频一区二区| 天天亚洲美女在线视频| 亚洲女人****多毛耸耸8| 久久精品夜夜夜夜久久| 日韩一区二区三区在线视频| 91豆麻精品91久久久久久| 粉嫩aⅴ一区二区三区四区五区| 日韩中文字幕91| 亚洲成人精品一区二区| 亚洲综合小说图片| 亚洲在线视频一区| 亚洲韩国一区二区三区| 亚洲一区二区三区在线| 一区二区三区四区在线播放| 国产精品电影一区二区| 午夜亚洲福利老司机| 麻豆国产精品777777在线| 三级精品在线观看| 麻豆视频观看网址久久| 韩国在线一区二区| 丁香婷婷综合色啪| 94色蜜桃网一区二区三区| 91国产精品成人| 日韩一级免费观看| 久久久久久久久免费| 国产精品久久三| 亚洲高清在线视频| 国产一区二区三区在线观看精品 | 欧美三级欧美一级| 日韩女优av电影在线观看| 久久综合九色综合久久久精品综合 | 亚洲国产精品欧美一二99 | 国产欧美一区二区精品秋霞影院| 久久久久成人黄色影片| 中文字幕中文在线不卡住| 亚洲一区免费在线观看| 国产一区二区三区在线看麻豆| 国产激情视频一区二区在线观看| 不卡av在线免费观看| 欧美疯狂做受xxxx富婆| 国产欧美精品一区二区色综合| 国产精品区一区二区三| 日韩不卡一二三区| av中文一区二区三区| 91精品国产一区二区| 亚洲欧洲www| 国产乱色国产精品免费视频| 日本韩国一区二区| 国产精品视频在线看| 琪琪久久久久日韩精品| 91精品福利在线| 国产日韩欧美精品一区| 久久精品国产精品青草| 91国偷自产一区二区三区成为亚洲经典| 精品国产亚洲在线| 免费在线看成人av| 欧美一区二区在线播放| 一区二区成人在线| 在线亚洲人成电影网站色www| 欧美tickling网站挠脚心| 丝袜国产日韩另类美女| 在线不卡欧美精品一区二区三区| 亚洲美女精品一区| 91传媒视频在线播放| 亚洲国产精品综合小说图片区| 91麻豆免费在线观看| 亚洲欧美激情小说另类| 欧美影院一区二区三区| 五月婷婷综合在线| 日韩欧美国产不卡| 懂色av噜噜一区二区三区av| 国产日产欧产精品推荐色|