TuyaOS
成员变量
netif结构体 参考

#include <netif.h>

netif 的协作图:
Collaboration graph
[图例]

成员变量

void(* dhcp_cb )(struct netif *, u8_t event, u8_t isup)
 
struct udp_pcb * dhcps_pcb
 
u8_t flags
 
u8_t hwaddr [6U]
 
u8_t hwaddr_len
 
netif_input_fn input
 
netif_linkoutput_fn linkoutput
 
u16_t mtu
 
char name [2]
 
struct netifnext
 
u8_t num
 
void * state
 

详细描述

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

结构体成员变量说明

◆ flags

u8_t netif::flags

flags (

参见
Flags)

◆ hwaddr

u8_t netif::hwaddr[6U]

link level hardware address of this interface

◆ hwaddr_len

u8_t netif::hwaddr_len

number of bytes used in hwaddr

◆ input

netif_input_fn netif::input

This function is called by the network device driver to pass a packet up the TCP/IP stack.

◆ linkoutput

netif_linkoutput_fn netif::linkoutput

This function is called by ethernet_output() when it wants to send a packet on the interface. This function outputs the pbuf as-is on the link medium.

◆ mtu

u16_t netif::mtu

maximum transfer unit (in bytes)

◆ name

char netif::name[2]

descriptive abbreviation

◆ next

struct netif* netif::next

pointer to next in linked list

◆ num

u8_t netif::num

number of this interface. Used for if_api and netifapi_netif, as well as for IPv6 zones

◆ state

void* netif::state

This field can be set by the device driver and could point to state information for the device.


该结构体的文档由以下文件生成: