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

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

?? uip_arp.h

?? 實現在指定視頻服務器下的視頻點播
?? H
字號:
/**
 * \addtogroup uip
 * @{
 */

/**
 * \addtogroup uiparp 
 * @{
 */
 
/**
 * \file
 * Macros and definitions for the ARP module.
 * \author Adam Dunkels <adam@dunkels.com>
 */
  

/*
 * Copyright (c) 2001-2003, Adam Dunkels.
 * All rights reserved. 
 *
 * Redistribution and use in source and binary forms, with or without 
 * modification, are permitted provided that the following conditions 
 * are met: 
 * 1. Redistributions of source code must retain the above copyright 
 *    notice, this list of conditions and the following disclaimer. 
 * 2. Redistributions in binary form must reproduce the above copyright 
 *    notice, this list of conditions and the following disclaimer in the 
 *    documentation and/or other materials provided with the distribution. 
 * 3. The name of the author may not be used to endorse or promote
 *    products derived from this software without specific prior
 *    written permission.  
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
 *
 * This file is part of the uIP TCP/IP stack.
 *
 * $Id: uip_arp.h,v 1.3.2.2 2003/10/06 15:10:22 adam Exp $
 *
 */

#ifndef __UIP_ARP_H__
#define __UIP_ARP_H__

#include "uip.h"
#include "globals.h"


/**
 * Representation of a 48-bit Ethernet address.
 */
struct uip_eth_addr {
  u8 addr[6];
};

extern struct uip_eth_addr uip_ethaddr;

/**
 * The Ethernet header. 
 */
struct uip_eth_hdr {
  struct uip_eth_addr dest;
  struct uip_eth_addr src;
  u16_t type;
};


#define UIP_ETHTYPE_ARP 0x0806
#define UIP_ETHTYPE_IP  0x0800
#define UIP_ETHTYPE_IP6 0x86dd 


/* The uip_arp_init() function must be called before any of the other
   ARP functions. */
void uip_arp_init(void);

/* The uip_arp_ipin() function should be called whenever an IP packet
   arrives from the Ethernet. This function refreshes the ARP table or
   inserts a new mapping if none exists. The function assumes that an
   IP packet with an Ethernet header is present in the uip_buf buffer
   and that the length of the packet is in the uip_len variable. */
void uip_arp_ipin(void);

/* The uip_arp_arpin() should be called when an ARP packet is received
   by the Ethernet driver. This function also assumes that the
   Ethernet frame is present in the uip_buf buffer. When the
   uip_arp_arpin() function returns, the contents of the uip_buf
   buffer should be sent out on the Ethernet if the uip_len variable
   is > 0. */
void uip_arp_arpin(void);

/* The uip_arp_out() function should be called when an IP packet
   should be sent out on the Ethernet. This function creates an
   Ethernet header before the IP header in the uip_buf buffer. The
   Ethernet header will have the correct Ethernet MAC destination
   address filled in if an ARP table entry for the destination IP
   address (or the IP address of the default router) is present. If no
   such table entry is found, the IP packet is overwritten with an ARP
   request and we rely on TCP to retransmit the packet that was
   overwritten. In any case, the uip_len variable holds the length of
   the Ethernet frame that should be transmitted. */
void uip_arp_out(void);

/* The uip_arp_timer() function should be called every ten seconds. It
   is responsible for flushing old entries in the ARP table. */
void uip_arp_timer(void);

/** @} */

/**
 * \addtogroup uipconffunc
 * @{
 */

/**
 * Set the default router's IP address.
 *
 * \param addr A pointer to a 4-byte array containing the IP address
 * of the default router.
 *
 * \hideinitializer
 */
#define uip_setdraddr(addr) do { uip_arp_draddr[0] = addr[0]; \
                                 uip_arp_draddr[1] = addr[1]; } while(0)

/**
 * Set the netmask.
 *
 * \param addr A pointer to a 4-byte array containing the IP address
 * of the netmask.
 *
 * \hideinitializer
 */
#define uip_setnetmask(addr) do { uip_arp_netmask[0] = addr[0]; \
                                  uip_arp_netmask[1] = addr[1]; } while(0)


/**
 * Get the default router's IP address.
 *
 * \param addr A pointer to a 4-byte array that will be filled in with
 * the IP address of the default router.
 *
 * \hideinitializer
 */
#define uip_getdraddr(addr) do { addr[0] = uip_arp_draddr[0]; \
                                 addr[1] = uip_arp_draddr[1]; } while(0)

/**
 * Get the netmask.
 *
 * \param addr A pointer to a 4-byte array that will be filled in with
 * the value of the netmask.
 *
 * \hideinitializer
 */
#define uip_getnetmask(addr) do { addr[0] = uip_arp_netmask[0]; \
                                  addr[1] = uip_arp_netmask[1]; } while(0)


/**
 * Specifiy the Ethernet MAC address.
 *
 * The ARP code needs to know the MAC address of the Ethernet card in
 * order to be able to respond to ARP queries and to generate working
 * Ethernet headers.
 *
 * \note This macro only specifies the Ethernet MAC address to the ARP
 * code. It cannot be used to change the MAC address of the Ethernet
 * card.
 *
 * \param eaddr A pointer to a struct uip_eth_addr containing the
 * Ethernet MAC address of the Ethernet card.
 *
 * \hideinitializer
 */
#define uip_setethaddr(eaddr) do {uip_ethaddr.addr[0] = eaddr.addr[0]; \
                              uip_ethaddr.addr[1] = eaddr.addr[1];\
                              uip_ethaddr.addr[2] = eaddr.addr[2];\
                              uip_ethaddr.addr[3] = eaddr.addr[3];\
                              uip_ethaddr.addr[4] = eaddr.addr[4];\
                              uip_ethaddr.addr[5] = eaddr.addr[5];} while(0)

/** @} */

/**
 * \internal Internal variables that are set using the macros
 * uip_setdraddr and uip_setnetmask.
 */
extern const u16_t uip_arp_draddr[2], uip_arp_netmask[2];


//#define BUF   ((struct arp_hdr *)&uip_buf[0])
//#define IPBUF ((struct ethip_hdr *)&uip_buf[0])
//#define BUF ((struct uip_eth_hdr *)&uip_buf[0])

#endif /* __UIP_ARP_H__ */


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产丶欧美丶日本不卡视频| 91麻豆精品国产91久久久久久 | 欧美视频三区在线播放| 日本高清成人免费播放| 国产亚洲精品资源在线26u| 国产精品污网站| 日韩国产欧美在线播放| 成人精品亚洲人成在线| 国产精品性做久久久久久| 欧洲精品在线观看| 亚洲人成小说网站色在线 | 欧美激情综合在线| 激情久久五月天| 久久综合色播五月| 麻豆传媒一区二区三区| 欧美乱妇一区二区三区不卡视频| 亚洲美女区一区| 国产精品一级片| 免费成人在线网站| 国产美女精品一区二区三区| 亚洲女同一区二区| 成人免费在线播放视频| 亚洲成人av中文| 国产精品系列在线观看| 日韩一区二区三区电影| 亚洲丝袜制服诱惑| 久久精品久久综合| 在线观看免费一区| 日本一区二区三级电影在线观看| 精品一区二区三区免费观看| 欧美理论在线播放| 日韩黄色小视频| 91久久精品一区二区| 久久久久一区二区三区四区| 精品亚洲成a人| 欧美一区二区女人| 久久国产精品一区二区| 欧美精品自拍偷拍动漫精品| 亚洲一区二区三区视频在线| 波多野结衣在线一区| 久久这里只有精品6| 国产精品一二三区在线| 欧美成人精品福利| 国产高清精品久久久久| 久久久五月婷婷| 成人一道本在线| 国产欧美一二三区| 国产高清久久久| 一区二区三区在线不卡| 色婷婷av一区| 亚洲电影一区二区| 欧美日韩小视频| 久久狠狠亚洲综合| 久久中文娱乐网| 国产69精品久久久久毛片| 亚洲欧美另类在线| 日本精品视频一区二区| 日本成人中文字幕| 精品理论电影在线| 91在线视频在线| 一卡二卡欧美日韩| 色吧成人激情小说| 蜜桃视频在线一区| 26uuu精品一区二区| 91丝袜国产在线播放| 一区二区成人在线观看| 欧美午夜精品一区二区三区| 午夜国产精品一区| 精品国产乱码久久久久久老虎| 国产最新精品免费| 国产精品国产三级国产普通话99 | 久久99最新地址| 日本一区二区视频在线观看| 91在线精品秘密一区二区| 日日嗨av一区二区三区四区| 欧美精品久久一区| 激情久久五月天| 亚洲成人免费视频| 精品美女在线播放| 欧美日韩精品久久久| 麻豆国产一区二区| 一区二区三区日韩精品| 日韩精品一区二区三区中文不卡 | 7777女厕盗摄久久久| 黄色精品一二区| 亚洲国产日韩精品| 久久久综合视频| 国产99精品国产| 蜜臀a∨国产成人精品| 国产精品久久毛片a| 欧美精品一区二区在线观看| 色综合激情五月| 粉嫩久久99精品久久久久久夜| 亚洲国产毛片aaaaa无费看 | 国产毛片一区二区| 亚洲一区二区三区四区五区黄 | 91视频.com| 成人免费va视频| 五月天久久比比资源色| 自拍偷在线精品自拍偷无码专区| 制服丝袜成人动漫| 欧美视频日韩视频在线观看| 丰满少妇在线播放bd日韩电影| 亚洲免费电影在线| 国产精品狼人久久影院观看方式| 欧美一级精品大片| 欧美一区二区三区精品| 91色porny蝌蚪| aaa欧美大片| 国产一区二区主播在线| 国产美女精品人人做人人爽| 男人的天堂久久精品| 亚洲激情一二三区| 中文字幕一区三区| 久久综合九色综合欧美就去吻| 日韩欧美在线网站| 欧美视频你懂的| 91精品国产乱码久久蜜臀| 色狠狠一区二区| 欧美丝袜丝nylons| 91福利国产精品| 国产麻豆视频一区二区| 久久99国产精品麻豆| 蓝色福利精品导航| 性做久久久久久免费观看欧美| 亚洲精选在线视频| 自拍偷拍国产精品| 亚洲午夜免费电影| 亚洲成人久久影院| 裸体在线国模精品偷拍| 青椒成人免费视频| 国产综合色在线视频区| 国产麻豆视频一区二区| 麻豆精品视频在线观看视频| 国产精品一级二级三级| 国产成人午夜精品影院观看视频 | 青青草国产成人99久久| 日韩精品成人一区二区三区 | 国产精品久久毛片a| 日韩一区二区三区观看| 欧美高清在线精品一区| 国产精品人人做人人爽人人添 | 日日欢夜夜爽一区| 麻豆精品在线播放| 北条麻妃一区二区三区| 中文字幕不卡的av| 欧美精品一区二区三区久久久| 国产欧美一区二区三区在线看蜜臀| 国产欧美精品一区二区色综合 | 成人福利视频网站| 91丨国产丨九色丨pron| 91在线视频官网| 欧美日韩免费不卡视频一区二区三区| 99re8在线精品视频免费播放| 欧美福利视频一区| 精品国产自在久精品国产| 日韩久久一区二区| 日韩中文字幕区一区有砖一区| 成人免费视频视频在线观看免费 | 国产在线精品一区二区夜色| 国产不卡在线播放| 欧美日韩国产另类不卡| 精品国产制服丝袜高跟| 亚洲成在线观看| 精东粉嫩av免费一区二区三区| 在线中文字幕一区二区| 欧美变态tickling挠脚心| 一卡二卡三卡日韩欧美| 久久99国产精品免费| 欧美色综合久久| 久久久高清一区二区三区| 亚洲专区一二三| 国产黄人亚洲片| 国产电影一区二区三区| 日韩午夜小视频| 久久精品视频一区| 日本成人在线电影网| 成人做爰69片免费看网站| 欧美成人a∨高清免费观看| 国产精品日日摸夜夜摸av| 国产自产视频一区二区三区| 欧美中文一区二区三区| 亚洲欧美综合色| 精品在线一区二区三区| 欧美精品黑人性xxxx| 中文字幕日韩一区| 成人性生交大片免费看视频在线| 欧美日韩一区二区在线视频| 亚洲男人的天堂在线aⅴ视频| 青青草国产精品97视觉盛宴| 欧美亚洲愉拍一区二区| 国产精品乱子久久久久| 日韩激情av在线| 91电影在线观看| 欧美激情一区二区三区在线| 免费看欧美美女黄的网站| 欧美偷拍一区二区| 亚洲精品免费电影| 波多野结衣亚洲| 亚洲精品一区二区三区福利|