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

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

?? uip_arp.h

?? FreeRTOS V4.2.1,增加了AVR32 UC3 和 LPC2368 的支持
?? 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"


/**
 * Representation of a 48-bit Ethernet address.
 */
struct uip_eth_addr {
  u8_t addr[6];
} __attribute__ ((packed, aligned (1)));

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;
} __attribute__ ((packed));

#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 u16_t uip_arp_draddr[2], uip_arp_netmask[2];
#endif /* __UIP_ARP_H__ */


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久精品国产毛片| 精品一区二区三区的国产在线播放 | 亚洲精品在线电影| 欧美日本一区二区三区四区| hitomi一区二区三区精品| 国产精品一二三区| 国产精品18久久久久久久久| 久久精品99国产国产精| 久久成人免费电影| 精品一区二区三区日韩| 蜜桃一区二区三区在线| 蜜桃av一区二区三区| 视频一区国产视频| 日产国产高清一区二区三区| 日韩国产一二三区| 久久精品72免费观看| 经典三级一区二区| 国产精品夜夜嗨| av一区二区三区黑人| 一本久久综合亚洲鲁鲁五月天| 91视频在线观看| 欧美午夜影院一区| 欧美一区二区三区免费| 精品久久国产老人久久综合| 久久久久久久精| 国产精品视频九色porn| 亚洲激情六月丁香| 免费看黄色91| 成人国产电影网| 欧美日韩免费一区二区三区| 3d动漫精品啪啪一区二区竹菊| 日韩欧美激情在线| 国产精品久久久一本精品| 亚洲在线免费播放| 精品在线亚洲视频| 91在线精品秘密一区二区| 欧美日韩一级二级| 日本一区二区在线不卡| 91黄色免费观看| 视频一区二区欧美| 国产福利精品一区二区| av爱爱亚洲一区| 日韩一区二区麻豆国产| 欧美国产精品专区| 丝袜亚洲另类欧美| 成人动漫一区二区| 日韩久久久精品| 亚洲三级在线播放| 国产精品亚洲一区二区三区在线| 99热在这里有精品免费| 欧美电影免费观看高清完整版在线观看 | 精品嫩草影院久久| 亚洲激情男女视频| 成人免费视频一区二区| 欧美一区二区三区的| 国产精品不卡在线| 国产裸体歌舞团一区二区| 欧美三区在线视频| 国产精品高清亚洲| 国产盗摄精品一区二区三区在线| 欧美色倩网站大全免费| 中文字幕一区二区不卡| 国内欧美视频一区二区| 欧美浪妇xxxx高跟鞋交| 亚洲人成影院在线观看| 国产一区不卡精品| 精品国产一区二区三区忘忧草 | 成人综合婷婷国产精品久久免费| 欧美日韩免费一区二区三区视频 | 丁香激情综合五月| 精品日产卡一卡二卡麻豆| 亚洲一区免费观看| 91久久久免费一区二区| 国产精品美女久久久久av爽李琼 | 国产成人高清视频| 欧美精品一区二区三区高清aⅴ | 国产综合久久久久久鬼色 | 欧美一区二区三区四区五区| 一区二区高清免费观看影视大全 | 最近日韩中文字幕| 不卡的av在线播放| 亚洲欧洲日产国码二区| 成人爱爱电影网址| 中文字幕一区免费在线观看| 国产91富婆露脸刺激对白| www久久精品| 国产一区二区91| 亚洲国产高清在线观看视频| 懂色av一区二区夜夜嗨| 国产精品美女一区二区| 91免费小视频| 亚洲成a人片综合在线| 678五月天丁香亚洲综合网| 日韩不卡手机在线v区| 欧美大胆人体bbbb| 国产露脸91国语对白| 欧美国产精品专区| 在线一区二区三区| 石原莉奈在线亚洲二区| 欧美成人精品二区三区99精品| 黄网站免费久久| 中文字幕欧美日韩一区| 91国偷自产一区二区开放时间| 一区二区三区在线视频播放| 欧美日韩电影一区| 国产乱码字幕精品高清av| 国产精品不卡一区| 欧美日本一区二区在线观看| 韩国av一区二区三区四区| 中文字幕永久在线不卡| 欧美日韩你懂得| 国产精品99久久久| 亚洲综合在线视频| 久久综合色婷婷| 在线免费观看日韩欧美| 久久电影网电视剧免费观看| 亚洲欧洲成人自拍| 欧美一区二区三区免费在线看| 高清不卡在线观看| 日韩高清一区在线| 中文字幕一区二区三区精华液 | 日韩电影一区二区三区| 中文字幕乱码日本亚洲一区二区| 日本高清成人免费播放| 黑人巨大精品欧美黑白配亚洲| 中文子幕无线码一区tr| 欧美一区二区三区不卡| 色八戒一区二区三区| 国内久久精品视频| 日韩精品亚洲一区二区三区免费| 国产欧美精品在线观看| 69堂精品视频| 91福利社在线观看| 丁香网亚洲国际| 老司机免费视频一区二区| 一区二区三区中文字幕精品精品 | 久久精品免费在线观看| 91麻豆精品国产91久久久 | 欧美三日本三级三级在线播放| 国产传媒日韩欧美成人| 日本午夜精品视频在线观看| 国产精品不卡一区| 国产欧美一区二区精品性| 日韩一区二区中文字幕| 欧美日韩一区 二区 三区 久久精品| 成人丝袜高跟foot| 国产一区高清在线| 激情综合亚洲精品| 美女视频免费一区| 免费看欧美女人艹b| 日韩电影一区二区三区四区| 亚洲韩国一区二区三区| 亚洲免费三区一区二区| 成人免费视频在线观看| 国产精品毛片a∨一区二区三区| 欧美成人乱码一区二区三区| 欧美一二三区精品| 日韩你懂的在线播放| 欧美一区二区三区思思人| 欧美精品国产精品| 欧美精选一区二区| 欧美一区二区三区在| 日韩欧美国产三级| 26uuu亚洲综合色| 久久久噜噜噜久久中文字幕色伊伊 | 国产成人一级电影| 国产精品99久久久久久久女警 | 国产日韩在线不卡| 久久这里只精品最新地址| 精品国产凹凸成av人网站| 日韩欧美123| 日本一区二区三区四区| 国产精品伦理一区二区| 亚洲另类色综合网站| 亚洲一区二区欧美日韩| 日本欧美在线看| 九色综合国产一区二区三区| 精品一二线国产| 成人国产视频在线观看| 色域天天综合网| 69久久99精品久久久久婷婷| 欧美成人国产一区二区| 亚洲日本va在线观看| 亚洲香肠在线观看| 蜜臀av一级做a爰片久久| 国产成人综合网| 欧美在线制服丝袜| 欧美精品一区在线观看| 国产精品国产三级国产普通话99 | 在线观看免费亚洲| 欧美一区二区三区男人的天堂| 欧美精品一区二区三区很污很色的| 国产日韩欧美综合在线| 亚洲线精品一区二区三区八戒| 蜜桃一区二区三区在线| 99在线精品视频| 日韩欧美在线综合网| 日韩一区在线看| 久久99精品国产91久久来源| proumb性欧美在线观看|