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

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

?? arplib.c

?? vxworks操作系統(tǒng)源代碼_對(duì)于在vxworks環(huán)境下開發(fā)軟件的人員非常有用
?? C
?? 第 1 頁 / 共 2 頁
字號(hào):
/* 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
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕亚洲一区二区va在线| 日韩一区二区免费在线观看| 欧美aaa在线| 亚洲男帅同性gay1069| 2023国产精品视频| 欧美日韩三级一区二区| 不卡视频免费播放| 国产一区美女在线| 美日韩一区二区三区| 亚洲乱码中文字幕| 国产精品久99| 国产日韩欧美精品在线| 精品国产自在久精品国产| 欧洲生活片亚洲生活在线观看| 国产盗摄视频一区二区三区| 日本成人在线不卡视频| 亚洲午夜三级在线| 亚洲黄色av一区| 亚洲乱码中文字幕综合| 亚洲一区在线电影| 亚洲精品国久久99热| 亚洲综合久久av| 午夜伦理一区二区| 日本不卡的三区四区五区| 热久久久久久久| 国内偷窥港台综合视频在线播放| 精品一区二区在线观看| 国内精品久久久久影院一蜜桃| 另类小说综合欧美亚洲| 国产精品99久| 91在线国产观看| 欧美三级中文字幕在线观看| 欧美视频精品在线| 日韩欧美视频一区| 国产精品国产a| 日韩激情av在线| 国产成人亚洲综合a∨婷婷图片| 99精品欧美一区二区三区小说| 91女厕偷拍女厕偷拍高清| 在线观看欧美精品| 欧美精品一区二区在线观看| 欧美国产成人精品| 日本亚洲一区二区| 99精品热视频| 精品伦理精品一区| 日韩伦理av电影| 狠狠色狠狠色综合系列| 在线观看网站黄不卡| 久久综合狠狠综合久久激情| 亚洲女女做受ⅹxx高潮| 国产精品99久久久久久久女警 | 免播放器亚洲一区| 99精品视频一区| 26uuu欧美| 日韩专区一卡二卡| 欧美系列一区二区| 国产精品国产成人国产三级| 国模娜娜一区二区三区| 欧美日韩国产另类不卡| 亚洲女与黑人做爰| 国产成人在线视频网站| 久久网站热最新地址| 日韩不卡一二三区| 欧美精品少妇一区二区三区 | 国产精品视频yy9299一区| 麻豆精品国产传媒mv男同| 欧美午夜不卡视频| 亚洲国产日韩一级| 91国偷自产一区二区使用方法| 久久精品欧美日韩精品| 日韩黄色在线观看| 91精品国产一区二区人妖| 午夜精品aaa| 日韩一级片在线播放| 麻豆免费精品视频| 精品三级在线观看| 韩国在线一区二区| 国产午夜亚洲精品羞羞网站| 国产精品一区二区果冻传媒| 久久免费看少妇高潮| 成人手机在线视频| 亚洲视频 欧洲视频| 色狠狠一区二区三区香蕉| 一区二区三区欧美日| 欧美日韩国产一区二区三区地区| 亚洲婷婷在线视频| 国产成人av一区二区三区在线观看| 一区二区三区高清在线| 粉嫩嫩av羞羞动漫久久久| 国产欧美日本一区视频| 97se亚洲国产综合在线| 一区二区不卡在线播放 | 精品一区二区三区在线观看| 国产午夜精品美女毛片视频| 日本黄色一区二区| 麻豆精品在线播放| 国产精品青草久久| 欧美一区二区三区啪啪| 成人网在线免费视频| 日韩高清在线一区| 国产精品视频观看| 精品国产伦一区二区三区观看方式| 国产二区国产一区在线观看| 日韩国产一二三区| 中文字幕av一区二区三区高| 欧美区一区二区三区| 丁香六月久久综合狠狠色| 免费欧美日韩国产三级电影| 亚洲欧洲国产日韩| 国产精品午夜电影| 4438亚洲最大| 在线影院国内精品| 91在线视频播放| 国产91在线观看| 国产成人8x视频一区二区| 美腿丝袜在线亚洲一区| 亚洲综合在线免费观看| 亚洲美女精品一区| 日韩伦理av电影| 亚洲精品第一国产综合野| 亚洲视频1区2区| 18涩涩午夜精品.www| 国产精品久久久99| 亚洲天堂精品在线观看| 国产日本欧美一区二区| 久久久久久99久久久精品网站| 精品日产卡一卡二卡麻豆| 日韩欧美黄色影院| 7777精品伊人久久久大香线蕉最新版| 欧美日韩高清一区二区| 制服丝袜亚洲色图| 欧美成人精精品一区二区频| 久久久亚洲国产美女国产盗摄 | 成人免费视频免费观看| 99在线精品观看| 欧美图区在线视频| 欧美成人综合网站| 国产精品大尺度| 一区二区三区中文字幕电影 | 精品久久久久久久一区二区蜜臀| 久久欧美中文字幕| 亚洲欧美偷拍三级| 另类中文字幕网| 9l国产精品久久久久麻豆| 欧美日韩1区2区| 国产亚洲一区二区三区| 亚洲成a人片综合在线| 国产高清成人在线| 4438x成人网最大色成网站| 国产日本欧洲亚洲| 日韩国产精品久久| 91污片在线观看| 久久综合九色综合97婷婷| 一区二区三区精密机械公司| 精品一区二区三区免费视频| 色综合久久中文综合久久97| 久久日一线二线三线suv| 一区二区三区美女视频| 国产成人亚洲综合色影视| 欧美精品在线观看播放| 亚洲日本在线看| 国产一区三区三区| 日韩写真欧美这视频| 亚洲夂夂婷婷色拍ww47| 波波电影院一区二区三区| 日韩欧美不卡在线观看视频| 亚洲h精品动漫在线观看| 成人黄页毛片网站| 国产精品人妖ts系列视频| 国产成人在线观看免费网站| 精品成人在线观看| 日韩1区2区日韩1区2区| 欧美亚洲高清一区| 亚洲黄网站在线观看| 一本大道久久a久久综合| 国产精品你懂的| 色综合中文综合网| 亚洲综合免费观看高清完整版 | 国产亚洲va综合人人澡精品| 激情都市一区二区| 国产校园另类小说区| 成人黄色大片在线观看| 中国色在线观看另类| 91啪在线观看| 亚洲成人动漫av| 国产毛片精品一区| 欧美精品一区二区三区视频| 亚洲福利视频一区二区| 欧美色区777第一页| 日韩av电影一区| 国产视频不卡一区| 99国产精品国产精品毛片| 一区二区三区在线视频播放| 欧美疯狂做受xxxx富婆| 另类专区欧美蜜桃臀第一页| 国产欧美日韩卡一| 欧美在线|欧美| 日本中文字幕一区二区有限公司| 久久久精品欧美丰满| 色狠狠一区二区|