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

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

?? arplib.c

?? 操作系統(tǒng)開發(fā),vxwork操作系統(tǒng)源代碼
?? 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一区二区三区免费野_久草精品视频
国产亲近乱来精品视频| 亚洲色图制服诱惑 | 色婷婷综合久久| 日本vs亚洲vs韩国一区三区二区| 久久综合五月天婷婷伊人| 91免费精品国自产拍在线不卡| 日本伊人色综合网| 成人欧美一区二区三区白人 | 免费欧美高清视频| 中文字幕一区二区在线观看| 欧美成人三级电影在线| 欧美在线观看你懂的| 国产精品一区二区久久精品爱涩| 亚洲成a人在线观看| 中文字幕人成不卡一区| 久久―日本道色综合久久| 欧美高清视频www夜色资源网| 成人av影院在线| 国产一区啦啦啦在线观看| 视频一区在线播放| 亚洲已满18点击进入久久| 国产精品欧美一区喷水| wwwwww.欧美系列| 欧美一区二区三区免费在线看 | 五月婷婷欧美视频| 亚洲欧美一区二区三区极速播放| 久久久777精品电影网影网| 欧美一区二区三区在| 欧美亚洲精品一区| 欧美亚洲综合色| 日本二三区不卡| 91在线观看成人| 91影院在线免费观看| 成人国产精品免费网站| 粉嫩av一区二区三区粉嫩| 国产麻豆日韩欧美久久| 国产在线精品不卡| 国产一区二区精品久久99| 久久99精品视频| 精品一区二区三区在线观看国产| 裸体健美xxxx欧美裸体表演| 日韩高清一区在线| 日本视频中文字幕一区二区三区| 亚欧色一区w666天堂| 亚洲第一福利视频在线| 视频精品一区二区| 七七婷婷婷婷精品国产| 另类小说欧美激情| 国产精品一二二区| 波多野洁衣一区| 91麻豆国产在线观看| 在线国产电影不卡| 欧美日韩免费电影| 欧美成人猛片aaaaaaa| 精品精品国产高清一毛片一天堂| 精品国产乱码久久久久久1区2区 | 久草在线在线精品观看| 狠狠狠色丁香婷婷综合激情| 国产精品亚洲第一区在线暖暖韩国 | 色噜噜狠狠成人网p站| 欧美影视一区二区三区| 日韩一区二区电影在线| 久久综合九色欧美综合狠狠| 久久精品一区蜜桃臀影院| 综合av第一页| 丝瓜av网站精品一区二区| 韩国女主播成人在线| av电影在线观看完整版一区二区| 91成人在线免费观看| 3d动漫精品啪啪1区2区免费| 精品国产露脸精彩对白| 亚洲视频免费看| 免费不卡在线观看| av午夜一区麻豆| 欧美日韩1区2区| 国产午夜亚洲精品不卡| 亚洲日本一区二区三区| 日韩国产在线观看| 丁香亚洲综合激情啪啪综合| 一本大道av伊人久久综合| 欧美一区二区三区系列电影| 国产精品国产三级国产a| 亚洲成人三级小说| 国产v综合v亚洲欧| 在线成人av网站| 国产精品私房写真福利视频| 午夜免费欧美电影| 成人综合在线观看| 欧美精品精品一区| 国产精品久久久久久久浪潮网站| 午夜影院久久久| 丁香激情综合五月| 日韩午夜精品电影| 亚洲精品高清在线| 国产成人av一区二区三区在线| 欧美三级乱人伦电影| 国产日韩欧美a| 免费看欧美女人艹b| 97精品久久久午夜一区二区三区 | 欧美一区二区免费观在线| 国产精品日韩成人| 麻豆精品一区二区av白丝在线| 99国内精品久久| 久久毛片高清国产| 日本va欧美va欧美va精品| 色综合视频在线观看| 国产亚洲一区二区三区在线观看 | 欧美日韩一二区| 中文字幕一区三区| 国产精品一区二区久久不卡| 91精品国产91久久久久久一区二区| 国产精品每日更新| 国产一区二区毛片| 欧美成人vr18sexvr| 亚洲综合成人网| 91香蕉国产在线观看软件| 国产亚洲成年网址在线观看| 日本vs亚洲vs韩国一区三区| 精品视频免费看| 亚洲精品成a人| 91在线观看免费视频| 国产精品久久久久久久裸模 | 国产精选一区二区三区| 欧美一卡2卡3卡4卡| 爽爽淫人综合网网站| 欧美少妇bbb| 一区二区在线观看免费视频播放| 波波电影院一区二区三区| 国产欧美精品一区二区三区四区 | 日韩三级在线观看| 日本不卡1234视频| 91精品国产综合久久国产大片| 亚洲大片免费看| 欧美日韩一区二区在线视频| 亚洲综合视频在线| 在线观看亚洲一区| 亚洲影院久久精品| 欧美男生操女生| 日本视频免费一区| 精品少妇一区二区三区在线视频| 免费一级片91| 精品成人一区二区| 国产成人高清在线| 亚洲人xxxx| 欧美日韩国产另类不卡| 石原莉奈在线亚洲二区| 日韩欧美色综合网站| 久色婷婷小香蕉久久| 精品国产免费一区二区三区香蕉 | 国产精品一区二区男女羞羞无遮挡| 亚洲精品在线观看网站| 国产乱码精品一区二区三区av| 久久女同性恋中文字幕| 丁香六月久久综合狠狠色| 日韩毛片在线免费观看| 欧美性色欧美a在线播放| 亚洲成人av电影| 欧美精品一区二区三区一线天视频 | 亚洲情趣在线观看| 欧美日韩国产一级| 激情图片小说一区| 国产精品第五页| 欧美裸体一区二区三区| 国产一区二区三区久久久| 亚洲欧美在线另类| 欧美日韩成人综合| 国产精品123区| 亚洲激情图片小说视频| 欧美一区午夜精品| 国产成人av电影| 亚洲国产日日夜夜| 亚洲精品一区二区三区99| 91视频xxxx| 六月婷婷色综合| 亚洲人成人一区二区在线观看 | 亚洲一区av在线| 26uuu精品一区二区在线观看| 成人福利在线看| 亚洲国产欧美在线人成| 久久美女高清视频| 欧美日韩免费高清一区色橹橹| 激情六月婷婷久久| 一级中文字幕一区二区| 欧美成人激情免费网| 色吊一区二区三区| 国产自产v一区二区三区c| 亚洲欧美视频在线观看视频| 欧美电影精品一区二区| 一本久久a久久免费精品不卡| 蜜桃久久久久久| 一区二区高清免费观看影视大全| 精品福利一二区| 欧美老肥妇做.爰bbww视频| 国产suv一区二区三区88区| 亚洲va欧美va人人爽| 亚洲国产精品高清| 精品美女被调教视频大全网站| 色诱亚洲精品久久久久久| 国产精一品亚洲二区在线视频| 三级欧美在线一区|