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

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

?? arplib.c

?? Tornado平臺下
?? 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一区二区三区免费野_久草精品视频
av电影天堂一区二区在线| 色中色一区二区| 亚洲私人影院在线观看| 91精品国产综合久久香蕉麻豆| 国产精品亚洲一区二区三区在线 | 免费成人在线网站| 国产精品第五页| 日韩一级高清毛片| 在线免费观看一区| 波多野结衣中文字幕一区| 免费不卡在线视频| 午夜精品久久久久久不卡8050| 国产日韩精品视频一区| 欧美电影免费观看高清完整版在| 色综合中文字幕国产| 国产成a人亚洲精| 免费亚洲电影在线| 亚洲chinese男男1069| 亚洲欧美自拍偷拍色图| 久久综合成人精品亚洲另类欧美 | 欧美日韩国产综合一区二区 | www.亚洲人| 国产精品一区在线观看你懂的| 婷婷成人激情在线网| 一区二区在线看| 亚洲视频狠狠干| 国产精品伦一区| 久久久久国产精品厨房| 精品福利一区二区三区 | 67194成人在线观看| 色综合久久中文综合久久97| 东方aⅴ免费观看久久av| 狠狠色狠狠色综合系列| 美女国产一区二区三区| 日韩制服丝袜av| 天天操天天综合网| 亚洲高清视频在线| 亚洲1区2区3区4区| 亚洲va欧美va天堂v国产综合| 有坂深雪av一区二区精品| 国产精品成人午夜| 亚洲欧美综合在线精品| 亚洲黄色尤物视频| 悠悠色在线精品| 性欧美大战久久久久久久久| 亚洲一区二区三区自拍| 亚洲国产日韩a在线播放性色| 亚洲午夜精品17c| 五月综合激情日本mⅴ| 视频在线在亚洲| 精品夜夜嗨av一区二区三区| 国内成+人亚洲+欧美+综合在线| 久久99精品久久久久久| 国产成人99久久亚洲综合精品| 粉嫩13p一区二区三区| 91麻豆高清视频| 欧美日韩一区二区三区高清| 欧美一区二区三区在线电影| 91精品国产综合久久精品图片| 精品日韩一区二区| 国产欧美综合在线观看第十页| 国产精品麻豆一区二区| 亚洲一区二区三区不卡国产欧美| 亚洲成人在线免费| 韩国一区二区在线观看| a级精品国产片在线观看| 色噜噜狠狠成人网p站| 在线成人高清不卡| 久久久不卡网国产精品二区| 亚洲欧美一区二区在线观看| 亚洲国产日韩a在线播放性色| 久久精品999| 91最新地址在线播放| 欧美酷刑日本凌虐凌虐| 久久久久99精品一区| 亚洲猫色日本管| 久久国产综合精品| 成人av先锋影音| 7799精品视频| 国产精品美日韩| 日韩黄色免费网站| 成人aa视频在线观看| 911精品国产一区二区在线| 国产婷婷色一区二区三区四区| 一区二区久久久| 久久成人羞羞网站| 欧美亚洲高清一区| 久久青草欧美一区二区三区| 亚洲精品欧美专区| 国产精品亚洲专一区二区三区| 欧美日韩免费观看一区三区| 久久久国际精品| 日韩中文字幕不卡| 不卡一区二区三区四区| 日韩三级av在线播放| 亚洲欧美一区二区三区极速播放| 日韩精品电影在线| 色综合天天综合在线视频| 精品福利二区三区| 亚洲第一成年网| 9色porny自拍视频一区二区| 欧美一级日韩不卡播放免费| 日韩一区有码在线| 国产精品一区二区黑丝| 91.com视频| 一级特黄大欧美久久久| 成人激情综合网站| 精品理论电影在线观看| 亚洲国产精品久久不卡毛片| 国产suv精品一区二区三区| 91精品久久久久久久久99蜜臂| 亚洲女同一区二区| 成人国产一区二区三区精品| 欧美va亚洲va在线观看蝴蝶网| 亚洲一区成人在线| 色婷婷激情综合| 亚洲手机成人高清视频| 丁香一区二区三区| 欧美韩国日本不卡| 国产精品888| 亚洲精品一区二区三区香蕉| 视频一区视频二区中文| 欧美性感一类影片在线播放| 亚洲私人影院在线观看| av亚洲精华国产精华精| 亚洲国产精品激情在线观看| 国产一区二区三区免费| 久久久美女毛片| 国产精品一区二区无线| 精品不卡在线视频| 精品一区二区在线看| 精品少妇一区二区三区在线视频| 免费观看日韩电影| 日韩精品专区在线影院观看| 日韩经典一区二区| 3d成人动漫网站| 日韩国产一区二| 欧美日本在线看| 日韩激情视频网站| 精品免费视频.| 国产曰批免费观看久久久| 国产丝袜美腿一区二区三区| 懂色av中文一区二区三区| 国产精品乱码一区二区三区软件| av中文字幕在线不卡| 亚洲欧美日韩电影| 久久人人97超碰com| 国产精品一二三四| 国产精品国产三级国产aⅴ入口 | 一区二区三区在线观看国产| 色婷婷国产精品| 视频在线观看91| 久久亚洲精品国产精品紫薇| 国产成人小视频| 亚洲欧洲国产专区| 欧美乱妇15p| 国产经典欧美精品| 亚洲婷婷在线视频| 欧美日韩国产经典色站一区二区三区| 天天操天天干天天综合网| 欧美一级艳片视频免费观看| 国产综合色视频| 国产精品家庭影院| 欧美午夜理伦三级在线观看| 日日骚欧美日韩| 国产亚洲欧美在线| 日本韩国欧美三级| 蜜臀av性久久久久蜜臀aⅴ流畅| 久久尤物电影视频在线观看| 波多野结衣91| 天天综合天天综合色| 久久一日本道色综合| 91免费小视频| 久久精品国产成人一区二区三区| 国产欧美日韩视频一区二区 | 91免费在线视频观看| 丝袜美腿亚洲色图| 欧美国产精品一区二区| 在线观看视频91| 国产乱淫av一区二区三区| 亚洲精品乱码久久久久久日本蜜臀| 91精品国产综合久久小美女| 成人va在线观看| 日韩精品91亚洲二区在线观看| 国产精品色哟哟网站| 这里只有精品免费| www.欧美色图| 精品一区二区三区在线观看国产| 亚洲日本va在线观看| 精品国产sm最大网站免费看| 欧美伊人久久久久久午夜久久久久| 国产伦精品一区二区三区在线观看| 亚洲一线二线三线视频| 久久久高清一区二区三区| 欧美精品亚洲二区| 99久久婷婷国产| 精品综合久久久久久8888| 一区二区三区产品免费精品久久75| 国产欧美一区二区精品仙草咪| 欧美巨大另类极品videosbest|