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

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

?? netif.h

?? 一個單片機實現以太網通信的程序
?? H
字號:
/*
 * Copyright (c) 2001-2003 Swedish Institute of Computer Science.
 * 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 lwIP TCP/IP stack.
 * 
 * Author: Adam Dunkels <adam@sics.se>
 *
 */
#ifndef __LWIP_NETIF_H__
#define __LWIP_NETIF_H__

#include "lwip/opt.h"

#include "lwip/err.h"

#include "lwip/ip_addr.h"

#include "lwip/inet.h"
#include "lwip/pbuf.h"
#if LWIP_DHCP
#include "dhcp.h"
#endif

/** must be the maximum of all used hardware address lengths
    across all types of interfaces in use */
#define NETIF_MAX_HWADDR_LEN 3U  //modify by zhigang

/** TODO: define the use (where, when, whom) of netif flags */

/** whether the network interface is 'up'. this is
 * a software flag used to control whether this network
 * interface is enabled and processes traffic */
#define NETIF_FLAG_UP 0x1U
/** if set, the netif has broadcast capability */
#define NETIF_FLAG_BROADCAST 0x2U
/** if set, the netif is one end of a point-to-point connection */
#define NETIF_FLAG_POINTTOPOINT 0x4U
/** if set, the interface is configured using DHCP */
#define NETIF_FLAG_DHCP 0x08U
/** if set, the interface has an active link
 *  (set by the interface) */
#define NETIF_FLAG_LINK_UP 0x10U

/** generic data structure used for all lwIP network interfaces */
struct netif {
  /** pointer to next in linked list */
  struct netif *next;
  /** The following fields should be filled in by the
      initialization function for the device driver. */
  
  /** IP address configuration in network byte order */
  struct ip_addr ip_addr;
  struct ip_addr netmask;
  struct ip_addr gw;

  /** This function is called by the network device driver
      to pass a packet up the TCP/IP stack. */
  err_t (* input)(struct pbuf *p, struct netif *inp);
  /** This function is called by the IP module when it wants
      to send a packet on the interface. This function typically
      first resolves the hardware address, then sends the packet. */
  err_t (* output)(struct netif *netif, struct pbuf *p,
		   struct ip_addr *ipaddr);
  /** This function is called by the ARP module when it wants
      to send a packet on the interface. This function outputs
      the pbuf as-is on the link medium. */
  err_t (* linkoutput)(struct netif *netif, struct pbuf *p);
  /** This field can be set by the device driver and could point
      to state information for the device. */
  void *state;
#if LWIP_DHCP
  /** the DHCP client state information for this netif */
  struct dhcp *dhcp;
#endif
  /** number of bytes used in hwaddr */
  unsigned char hwaddr_len;
  /** link level hardware address of this interface */
  unsigned char hwaddr[NETIF_MAX_HWADDR_LEN];
  /** maximum transfer unit (in bytes) */
  u16_t mtu;
  /** descriptive abbreviation */
  char name[2];
  /** number of this interface */
  u8_t num;
  /** NETIF_FLAG_* */
  u8_t flags;
};

/** The list of network interfaces. */
extern struct netif *netif_list;
/** The default network interface. */
extern struct netif *netif_default;

/* netif_init() must be called first. */
void netif_init(void);

struct netif *netif_add(struct ip_addr *ipaddr, struct ip_addr *netmask,
			struct ip_addr *gw,
			void *state,
			err_t (* init)(struct netif *netif),
			err_t (* input)(struct pbuf *p, struct netif *netif));

void
netif_set_addr(struct netif *netif,struct ip_addr *ipaddr, struct ip_addr *netmask,
	  struct ip_addr *gw);
void netif_remove(struct netif * netif);

/* Returns a network interface given its name. The name is of the form
   "et0", where the first two letters are the "name" field in the
   netif structure, and the digit is in the num field in the same
   structure. */
struct netif *netif_find(char *name);

void netif_set_default(struct netif *netif);

void netif_set_ipaddr(struct netif *netif, struct ip_addr *ipaddr);
void netif_set_netmask(struct netif *netif, struct ip_addr *netmast);
void netif_set_gw(struct netif *netif, struct ip_addr *gw);

#endif /* __LWIP_NETIF_H__ */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美亚洲动漫另类| 日韩欧美中文字幕制服| 欧美日韩亚州综合| 国产精品午夜在线观看| 蜜臀av性久久久久蜜臀aⅴ四虎| 国产成人精品一区二区三区网站观看 | 日韩美女视频一区二区| 日本91福利区| 欧美性猛交一区二区三区精品| 亚洲欧美视频一区| 成人性生交大片免费| 精品国产免费人成电影在线观看四季| 国产精品毛片高清在线完整版| 日韩一区二区麻豆国产| 免费观看在线综合| 欧美激情一区二区在线| 蜜桃一区二区三区四区| 久久在线观看免费| 精彩视频一区二区三区| 欧美高清一级片在线| 夜夜精品视频一区二区| 色综合久久久久久久久| **性色生活片久久毛片| 播五月开心婷婷综合| 久久久久久久综合色一本| 久久国产精品区| 日韩一区二区三区免费看| 国产成人夜色高潮福利影视| 一区二区三区在线视频观看| 日韩亚洲欧美一区| caoporn国产精品| 国产精品久久久久久久久快鸭 | 国产在线不卡视频| 欧美丰满少妇xxxbbb| 国产激情91久久精品导航| 一区二区三区精品久久久| 精品免费国产一区二区三区四区| 韩国av一区二区三区在线观看| 欧美成人午夜电影| 91蜜桃免费观看视频| 亚洲在线中文字幕| 欧美精品18+| 99精品热视频| 亚洲成人久久影院| 欧美成人bangbros| 中文一区二区在线观看| 欧美三级中文字幕| 成a人片国产精品| 日韩精品91亚洲二区在线观看 | 欧美大片拔萝卜| 国产一区二区三区在线观看精品| 亚洲黄色小视频| 欧美一区二区三区在线| 国产乱码精品一区二区三区忘忧草| 久久综合色之久久综合| 欧美日韩精品综合在线| 蜜臀国产一区二区三区在线播放| 国产精品国产馆在线真实露脸| 日韩一区二区三区四区| 色偷偷久久一区二区三区| 国产一区二区三区在线观看免费视频| 性感美女极品91精品| 亚洲欧美视频在线观看视频| 国产精品免费视频网站| 欧美不卡一区二区| 欧美高清视频在线高清观看mv色露露十八 | 色94色欧美sute亚洲线路一ni| 国产欧美精品在线观看| 国产成a人无v码亚洲福利| 一区精品在线播放| 国产亚洲一区二区三区在线观看| 成人av片在线观看| 国产伦精品一区二区三区视频青涩| 日韩av电影一区| 中文字幕国产一区二区| 久久尤物电影视频在线观看| 精品国产乱码久久久久久夜甘婷婷| 欧美精品欧美精品系列| 欧美视频你懂的| 欧美日韩成人综合| 欧美精品粉嫩高潮一区二区| 欧美三级日韩三级| 欧美日韩一区不卡| 欧美精品黑人性xxxx| 欧美福利一区二区| 日韩美女一区二区三区四区| 日韩亚洲电影在线| 精品国产成人系列| 久久精品亚洲乱码伦伦中文| 久久精品欧美日韩精品| 久久一区二区视频| 国产精品美女久久久久久2018| 国产精品美女一区二区在线观看| 国产精品二三区| 亚洲精品免费电影| 日韩和欧美的一区| 韩国理伦片一区二区三区在线播放| 黄色成人免费在线| 国产99久久久国产精品免费看| 99免费精品视频| 欧美三级在线看| 日韩精品一区二区三区在线播放| 精品理论电影在线观看| 国产精品乱码久久久久久| 亚洲人成7777| 奇米色一区二区| 成人污视频在线观看| 91福利资源站| 精品国精品国产| 亚洲欧美欧美一区二区三区| 天天影视网天天综合色在线播放| 亚洲精品国产无天堂网2021| 亚洲激情中文1区| 日日夜夜精品视频天天综合网| 精品一区二区三区免费| 99久久久久久99| 91精品久久久久久蜜臀| 91精品国产欧美一区二区18| ww亚洲ww在线观看国产| 亚洲精品中文字幕在线观看| 美女精品自拍一二三四| www.66久久| 日韩一级精品视频在线观看| 亚洲国产岛国毛片在线| 亚洲丰满少妇videoshd| 无码av免费一区二区三区试看| 激情欧美一区二区三区在线观看| 91在线观看美女| 精品国产伦一区二区三区免费| 亚洲精品一二三四区| 国产一区二区福利视频| 欧美日韩综合色| 国产精品国产三级国产aⅴ原创| 日韩精品电影一区亚洲| 色综合 综合色| 久久精品亚洲一区二区三区浴池| 丝袜美腿亚洲综合| 色综合色综合色综合 | 狠狠色狠狠色综合日日91app| 91老司机福利 在线| 精品欧美黑人一区二区三区| 亚洲一区二区三区在线播放| 成人精品一区二区三区四区| 日韩视频在线一区二区| 亚洲一区在线视频| 91在线观看成人| 久久久精品中文字幕麻豆发布| 五月综合激情日本mⅴ| 色av成人天堂桃色av| 17c精品麻豆一区二区免费| 国产尤物一区二区| 精品久久一二三区| 奇米影视在线99精品| 欧美色手机在线观看| 亚洲精品欧美二区三区中文字幕| 丰满少妇久久久久久久| 久久久亚洲高清| 精品一区免费av| 欧美sm美女调教| 免费看日韩a级影片| 91精品国产全国免费观看| 香蕉乱码成人久久天堂爱免费| 色婷婷精品久久二区二区蜜臂av| 国产精品国产三级国产aⅴ原创| 国产成人亚洲综合色影视| 久久久99久久| 国产精品亚洲第一区在线暖暖韩国| 日韩视频免费观看高清完整版在线观看| 亚洲精品国产视频| 在线观看国产精品网站| 国产亚洲精品aa| 国产精品18久久久久久久久久久久| 欧美大片顶级少妇| 国产麻豆精品视频| 国产欧美一区二区精品性色| 懂色av噜噜一区二区三区av| 中文字幕国产精品一区二区| 成人精品亚洲人成在线| 亚洲视频每日更新| 日本乱人伦一区| 婷婷综合久久一区二区三区| 8x福利精品第一导航| 美女爽到高潮91| 久久久午夜电影| 99久久久无码国产精品| 亚洲国产精品自拍| 91精品国产综合久久久久久 | 欧美最猛性xxxxx直播| 亚洲午夜在线电影| 欧美一区二区三区四区视频| 精品一区二区久久| 国产精品成人在线观看| 色一区在线观看| 视频在线观看91| 久久久精品tv| 91成人网在线| 久久99国产精品尤物| 国产精品色眯眯| 欧美色中文字幕| 国产大陆a不卡|