MeterLogger
|
#include <esp-open-lwip/include/lwip/netif.h>
Data Fields | |
struct netif * | next |
ip_addr_t | ip_addr |
ip_addr_t | netmask |
ip_addr_t | gw |
netif_input_fn | input |
netif_output_fn | output |
netif_linkoutput_fn | linkoutput |
void * | state |
u16_t | mtu |
u8_t | hwaddr_len |
u8_t | hwaddr [NETIF_MAX_HWADDR_LEN] |
u8_t | flags |
char | name [2] |
u8_t | num |
Generic data structure used for all lwIP network interfaces. The following fields should be filled in by the initialization function for the device driver: hwaddr_len, hwaddr[], mtu, flags
u8_t netif::flags |
flags (see NETIF_FLAG_ above) 该接口状态、属性字段
Definition at line 193 of file netif.h.
Referenced by ip4_addr_isbroadcast(), ip_input(), netif_add(), netif_remove(), netif_set_down(), netif_set_link_down(), netif_set_link_up(), and netif_set_up().
ip_addr_t netif::gw |
Definition at line 146 of file netif.h.
Referenced by netif_add(), and netif_set_gw().
u8_t netif::hwaddr[NETIF_MAX_HWADDR_LEN] |
u8_t netif::hwaddr_len |
netif_input_fn netif::input |
This function is called by the network device driver to pass a packet up the TCP/IP stack. 向IP层输入数据包
Definition at line 150 of file netif.h.
Referenced by netif_add(), and patch_netif_ap().
ip_addr_t netif::ip_addr |
IP address configuration in network byte order
Definition at line 144 of file netif.h.
Referenced by ip4_addr_isbroadcast(), ip_input(), ip_output_if(), ip_route(), ip_router(), netif_add(), netif_set_ipaddr(), and patch_netif_ap().
netif_linkoutput_fn netif::linkoutput |
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. 底层数据包发送
Definition at line 158 of file netif.h.
Referenced by patch_netif_ap().
u16_t netif::mtu |
maximum transfer unit (in bytes) 该接口允许的最大数据包长度,多是1500
Definition at line 187 of file netif.h.
Referenced by ip_output_if().
char netif::name[2] |
descriptive abbreviation 该接口的名字
Definition at line 195 of file netif.h.
Referenced by ip_input(), ip_output_if(), netif_add(), netif_find(), netif_set_default(), netif_set_gw(), netif_set_ipaddr(), and netif_set_netmask().
ip_addr_t netif::netmask |
Definition at line 145 of file netif.h.
Referenced by ip4_addr_isbroadcast(), ip_input(), ip_route(), ip_router(), netif_add(), and netif_set_netmask().
struct netif* netif::next |
pointer to next in linked list
Definition at line 141 of file netif.h.
Referenced by ip_input(), ip_route(), ip_router(), netif_add(), netif_find(), netif_remove(), netif_set_link_down(), patch_netif_ap(), and wifi_softap_ip_config().
u8_t netif::num |
number of this interface 该接口的编号
Definition at line 197 of file netif.h.
Referenced by ip_output_if(), ip_router(), netif_add(), netif_find(), and wifi_softap_ip_config().
netif_output_fn netif::output |
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. 发送IP数据包
Definition at line 154 of file netif.h.
Referenced by ip_output_if(), and ip_router().
void* netif::state |
This field can be set by the device driver and could point to state information for the device. 自由设置字段,比如指向底层设备相关信息
Definition at line 171 of file netif.h.
Referenced by netif_add().