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

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

?? arplib.c

?? 操作系統(tǒng)開發(fā),vxwork操作系統(tǒng)源代碼
?? 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视频国产资源| 亚洲国产欧美在线| 欧美一区二区网站| 久久精品国产99国产| 国产欧美视频在线观看| 91美女在线视频| 日本欧美大码aⅴ在线播放| 日韩免费高清视频| 成人午夜视频在线观看| 亚洲影院久久精品| 日韩欧美亚洲国产另类 | 久久精品人人做人人综合| 国产成人免费视频网站高清观看视频| 中文在线一区二区| 欧美色大人视频| 国产在线视频一区二区| 亚洲九九爱视频| 精品精品国产高清a毛片牛牛| 成人国产亚洲欧美成人综合网| 亚洲自拍另类综合| 欧美精品一区二区在线播放| 91片黄在线观看| 麻豆91在线播放| 亚洲美女电影在线| 337p粉嫩大胆噜噜噜噜噜91av| 大桥未久av一区二区三区中文| 亚洲欧美日韩中文字幕一区二区三区 | 国产精品欧美极品| 欧美精品一二三四| av午夜一区麻豆| 美女一区二区视频| 一区二区三区.www| 久久精品欧美日韩| 欧美日韩精品一区二区| bt欧美亚洲午夜电影天堂| 日韩高清不卡在线| 综合激情网...| 久久久久久久精| 日韩欧美另类在线| 欧美在线一二三四区| 丁香啪啪综合成人亚洲小说| 老司机精品视频在线| 亚洲成a人片在线观看中文| 欧美韩日一区二区三区四区| 日韩一二在线观看| 欧美精品一卡二卡| 欧美日韩在线电影| 色久优优欧美色久优优| 成人激情文学综合网| 久久精品99久久久| 日本欧美加勒比视频| 香蕉成人伊视频在线观看| 亚洲日本电影在线| 国产精品久久久久久久午夜片 | 91国产视频在线观看| 国产91露脸合集magnet | 丝袜a∨在线一区二区三区不卡| 亚洲视频一区在线| 国产精品国产馆在线真实露脸| 精品国产精品一区二区夜夜嗨| 777xxx欧美| 欧美精品色综合| 欧美日韩精品一区视频| 欧美日韩国产一区| 欧美美女网站色| 欧美巨大另类极品videosbest | 国产精品毛片a∨一区二区三区| 精品国产凹凸成av人导航| 日韩欧美一级片| 精品久久久久久久人人人人传媒| 日韩欧美国产wwwww| 日韩免费电影一区| 久久亚洲一区二区三区四区| www日韩大片| 国产日韩亚洲欧美综合| 国产欧美日产一区| 国产精品久久网站| 亚洲精选视频在线| 亚洲一级二级在线| 日本免费新一区视频| 激情综合网天天干| 懂色av中文一区二区三区| 粉嫩高潮美女一区二区三区| 不卡av在线网| 欧美影院午夜播放| 日韩一区二区三区观看| 久久天天做天天爱综合色| 久久精品视频免费| 一区二区三区四区激情| 亚洲国产成人精品视频| 美腿丝袜亚洲三区| 成人免费视频一区二区| 色94色欧美sute亚洲线路一ni| 欧美日韩大陆在线| 欧美精品一区二区三区在线播放| 欧美极品另类videosde| 亚洲午夜国产一区99re久久| 懂色av一区二区三区免费看| 99久精品国产| 欧美另类变人与禽xxxxx| 久久综合狠狠综合| 亚洲欧美日韩国产综合在线| 亚洲成人免费在线| 国产成人99久久亚洲综合精品| eeuss影院一区二区三区| 欧美一区二区三区影视| 中文字幕av一区 二区| 亚洲v中文字幕| 国产成人综合亚洲网站| 欧美视频精品在线观看| 精品国产1区二区| 亚洲精品一卡二卡| 紧缚捆绑精品一区二区| 91福利社在线观看| 久久久久久久性| 日韩高清在线观看| 色婷婷亚洲综合| 久久久午夜精品| 日韩不卡一区二区| 一本大道久久a久久精二百 | 国产原创一区二区| 欧美亚洲国产一区二区三区va| 精品91自产拍在线观看一区| 亚洲精品成人a在线观看| 国产精品亚洲视频| 欧美一区二区播放| 一区二区三区久久久| 国产老肥熟一区二区三区| 在线观看中文字幕不卡| 国产精品久久夜| 国产在线不卡一区| 欧美一区二区三区人| 亚洲激情在线播放| 成人成人成人在线视频| 久久久亚洲午夜电影| 午夜精品久久久久久| 一本大道久久a久久综合婷婷 | 麻豆免费看一区二区三区| 在线中文字幕一区| 国产精品二区一区二区aⅴ污介绍| 国模套图日韩精品一区二区| 91精品国产免费久久综合| 亚洲午夜一区二区| 色婷婷一区二区| 亚洲人成网站影音先锋播放| 高清不卡一区二区| 国产亚洲一区二区三区在线观看| 蜜臀av性久久久久蜜臀aⅴ | 欧美国产精品一区二区三区| 久久国产麻豆精品| 日韩一区二区三区视频在线观看| 日韩高清在线电影| 666欧美在线视频| 天天色综合天天| 在线播放国产精品二区一二区四区| 亚洲精品免费在线| 色美美综合视频| 亚洲精品免费电影| 欧美一a一片一级一片| 亚洲国产成人高清精品| 欧美优质美女网站| 亚洲大型综合色站| 欧美麻豆精品久久久久久| 婷婷综合久久一区二区三区| 欧美日本视频在线| 麻豆91小视频| 国产亚洲精品aa午夜观看| 成人午夜激情在线| 亚洲色图制服诱惑| 欧美亚洲一区二区在线| 午夜免费久久看| 日韩一卡二卡三卡| 国产不卡在线播放| 亚洲欧美日韩国产一区二区三区| 色呦呦一区二区三区| 日韩精品高清不卡| 久久久久久久久久久久久女国产乱| 粉嫩高潮美女一区二区三区| 亚洲人成伊人成综合网小说| 欧美日韩精品高清| 久久精品国产亚洲a| 国产日韩欧美一区二区三区综合| 国产suv一区二区三区88区| 综合久久久久久| 欧美一区二区视频观看视频| 激情丁香综合五月| 综合在线观看色| 欧美一二三四在线| 成人激情av网| 婷婷中文字幕综合| 26uuu国产在线精品一区二区| 91一区二区在线| 日本女优在线视频一区二区|