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

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

?? arplib.c

?? vxworks的完整的源代碼
?? 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 */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲制服色| 91猫先生在线| 丝袜诱惑亚洲看片| 一区二区三区日韩欧美| 国产精品久久夜| 亚洲欧洲成人自拍| 亚洲视频资源在线| 一区二区三区中文字幕| 亚洲激情六月丁香| 一区二区三区欧美| 亚洲国产综合人成综合网站| 亚洲精品成人在线| 亚洲高清免费观看 | 精品一区二区免费在线观看| 日日夜夜免费精品| 美女网站色91| 国产河南妇女毛片精品久久久| 国产麻豆精品视频| 国产精品亚洲а∨天堂免在线| 国产91精品一区二区麻豆网站| 成人精品免费看| 91福利资源站| 欧美高清dvd| 久久婷婷一区二区三区| 国产精品网站在线播放| 综合色中文字幕| 日韩va亚洲va欧美va久久| 久久99深爱久久99精品| 国产aⅴ精品一区二区三区色成熟| jizzjizzjizz欧美| 欧美女孩性生活视频| 日韩美女天天操| 亚洲激情网站免费观看| 久久99精品久久久久| 成人国产精品免费网站| 欧美二区在线观看| 综合中文字幕亚洲| 视频精品一区二区| www.日韩大片| 精品国产百合女同互慰| 综合婷婷亚洲小说| 精品中文av资源站在线观看| 91网站最新地址| 精品不卡在线视频| 污片在线观看一区二区| heyzo一本久久综合| 欧美精三区欧美精三区| 国产精品国产a级| 国模一区二区三区白浆| 欧美影视一区二区三区| 国产欧美精品在线观看| 日本不卡的三区四区五区| 波多野结衣中文字幕一区二区三区| 欧美肥妇free| 亚洲一区二三区| 99视频精品全部免费在线| 欧美精品一区男女天堂| 日本视频一区二区| 91免费视频观看| 久久精品欧美一区二区三区不卡 | 日韩欧美一区二区久久婷婷| 伊人性伊人情综合网| 丁香婷婷综合色啪| 欧美变态凌虐bdsm| 日本va欧美va瓶| 欧美日韩一级片在线观看| 自拍偷在线精品自拍偷无码专区| 久久aⅴ国产欧美74aaa| 欧美精品色综合| 亚洲高清一区二区三区| 欧美在线免费视屏| 亚洲精品国产精华液| 97久久久精品综合88久久| 国产片一区二区| 福利一区福利二区| 国产嫩草影院久久久久| 国产不卡视频在线观看| 中文字幕va一区二区三区| 狠狠色丁香婷婷综合| 久久影院午夜片一区| 国产精品综合二区| 国产视频一区不卡| 99久久er热在这里只有精品15 | 亚洲一区二区三区在线| 色妹子一区二区| 亚洲一级在线观看| 欧美午夜免费电影| 午夜精品久久久久| 日韩一区国产二区欧美三区| 日韩电影免费在线看| av不卡免费电影| 亚洲综合色区另类av| 欧美日韩一区二区三区不卡| 视频在线观看一区| 精品国产91乱码一区二区三区| 久久国内精品自在自线400部| 精品福利视频一区二区三区| 成人激情av网| 夜夜精品浪潮av一区二区三区| 欧美性淫爽ww久久久久无| 午夜精品福利一区二区三区av| 7777精品伊人久久久大香线蕉完整版| 久久精品国产99久久6| 久久久另类综合| 波多野结衣一区二区三区| 亚洲午夜av在线| 久久久亚洲精华液精华液精华液| 国产成人免费xxxxxxxx| 亚洲成人资源网| 久久亚洲欧美国产精品乐播| 91免费版在线看| 蜜桃久久久久久久| 中文字幕在线不卡一区二区三区| 欧美色网站导航| 国产乱妇无码大片在线观看| 一区二区在线观看免费| 精品国产乱码久久久久久蜜臀 | 日韩欧美国产综合一区| av网站免费线看精品| 蜜臀久久99精品久久久久宅男| 国产欧美日产一区| 91精品国产一区二区三区香蕉| 国产麻豆午夜三级精品| 午夜伊人狠狠久久| 久久精品欧美日韩| 日韩午夜在线播放| 在线观看亚洲精品视频| 国产91高潮流白浆在线麻豆 | 午夜精品爽啪视频| 久久综合色婷婷| 精品视频999| 91在线观看地址| 国产一区91精品张津瑜| 亚洲成人自拍网| 一区二区三区视频在线观看 | 99久久久久免费精品国产| 免费欧美高清视频| 亚洲国产成人porn| 亚洲欧美激情小说另类| 国产视频一区不卡| 久久久久久99久久久精品网站| 日韩一区二区三区电影在线观看 | 欧美mv日韩mv国产| 欧美精品自拍偷拍动漫精品| 欧日韩精品视频| 日本久久电影网| 99视频国产精品| 成人avav影音| 成人午夜激情在线| 丁香亚洲综合激情啪啪综合| 国产美女在线观看一区| 国产一区二区三区免费在线观看 | 欧美国产成人精品| 欧美不卡在线视频| 精品久久久久久久久久久久久久久久久 | 91丝袜高跟美女视频| 成人综合婷婷国产精品久久| 国产盗摄女厕一区二区三区 | 国产精品久久久久久久久免费相片 | 欧美性一二三区| 欧美综合天天夜夜久久| 欧美最猛性xxxxx直播| 在线免费亚洲电影| 欧美精品久久久久久久多人混战| 欧美日韩国产在线观看| 欧美日韩日日夜夜| 日韩欧美国产三级| 久久久久亚洲蜜桃| 国产精品久久久久久久久免费樱桃 | 亚洲欧美日韩久久精品| 亚洲精品美国一| 亚洲成va人在线观看| 久久成人免费日本黄色| 国产成人久久精品77777最新版本| 国产精品性做久久久久久| 成人夜色视频网站在线观看| 99re成人精品视频| 日韩一区二区免费视频| 久久色视频免费观看| 国产精品久久二区二区| 夜夜夜精品看看| 麻豆传媒一区二区三区| 波多野结衣在线aⅴ中文字幕不卡| 99riav一区二区三区| 欧美日韩国产高清一区| 久久一夜天堂av一区二区三区| 国产精品进线69影院| 亚洲va欧美va国产va天堂影院| 日本 国产 欧美色综合| 大胆亚洲人体视频| 在线电影一区二区三区| 国产亚洲视频系列| 亚洲狠狠爱一区二区三区| 久久精品72免费观看| 一本色道久久加勒比精品| 欧美刺激脚交jootjob| 一区二区三区不卡在线观看| 狠狠色综合播放一区二区| 在线精品国精品国产尤物884a | 成人免费va视频|