Tizen RT Libs&Environment  v1.1 D4
netif Struct Reference

#include <netif.h>

Collaboration diagram for netif:

Data Fields

struct netifnext
 
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
 
struct dhcp * dhcp
 
u16_t mtu
 
u8_t hwaddr_len
 
u8_t hwaddr [NETIF_MAX_HWADDR_LEN]
 
u8_t flags
 
char name [2]
 
u8_t num
 
char d_ifname [6]
 
struct ether_addr d_mac
 
u16_t d_len
 
u32_t d_flags
 
uint32_t d_ipaddr
 
uint32_t d_draddr
 
uint32_t d_netmask
 
int(* d_ifup )(FAR struct netif *dev)
 
int(* d_ifdown )(FAR struct netif *dev)
 
int(* d_ifstate )(FAR struct netif *dev)
 
int(* d_txavail )(FAR struct netif *dev)
 
int(* d_txpoll )(FAR struct netif *dev)
 
void * d_private
 
u8_t d_buf [MAX_NET_DEV_MTU+CONFIG_NET_GUARDSIZE]
 

Detailed Description

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

Definition at line 203 of file netif.h.

Field Documentation

◆ d_buf

u8_t d_buf[MAX_NET_DEV_MTU+CONFIG_NET_GUARDSIZE]

Definition at line 324 of file netif.h.

◆ d_draddr

uint32_t d_draddr

Definition at line 311 of file netif.h.

◆ d_flags

u32_t d_flags

Definition at line 309 of file netif.h.

◆ d_ifdown

int(* d_ifdown) (FAR struct netif *dev)

Definition at line 315 of file netif.h.

◆ d_ifname

char d_ifname[6]

Definition at line 302 of file netif.h.

◆ d_ifstate

int(* d_ifstate) (FAR struct netif *dev)

Definition at line 316 of file netif.h.

◆ d_ifup

int(* d_ifup) (FAR struct netif *dev)

Definition at line 314 of file netif.h.

◆ d_ipaddr

uint32_t d_ipaddr

Definition at line 310 of file netif.h.

◆ d_len

u16_t d_len

Definition at line 308 of file netif.h.

◆ d_mac

struct ether_addr d_mac

Definition at line 306 of file netif.h.

◆ d_netmask

uint32_t d_netmask

Definition at line 312 of file netif.h.

◆ d_private

void* d_private

Definition at line 320 of file netif.h.

◆ d_txavail

int(* d_txavail) (FAR struct netif *dev)

Definition at line 317 of file netif.h.

◆ d_txpoll

int(* d_txpoll) (FAR struct netif *dev)

Definition at line 318 of file netif.h.

◆ dhcp

struct dhcp* dhcp

the DHCP client state information for this netif

Definition at line 242 of file netif.h.

◆ flags

u8_t flags

flags (see NETIF_FLAG_ above)

Definition at line 263 of file netif.h.

◆ gw

ip_addr_t gw

Definition at line 210 of file netif.h.

◆ hwaddr

u8_t hwaddr[NETIF_MAX_HWADDR_LEN]

link level hardware address of this interface

Definition at line 261 of file netif.h.

◆ hwaddr_len

u8_t hwaddr_len

number of bytes used in hwaddr

Definition at line 259 of file netif.h.

◆ input

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

Definition at line 214 of file netif.h.

◆ ip_addr

ip_addr_t ip_addr

IP address configuration in network byte order

Definition at line 208 of file netif.h.

◆ linkoutput

netif_linkoutput_fn 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 222 of file netif.h.

◆ mtu

u16_t mtu

maximum transfer unit (in bytes)

Definition at line 257 of file netif.h.

◆ name

char name[2]

descriptive abbreviation

Definition at line 265 of file netif.h.

◆ netmask

ip_addr_t netmask

Definition at line 209 of file netif.h.

◆ next

struct netif* next

pointer to next in linked list

Definition at line 205 of file netif.h.

◆ num

u8_t num

number of this interface

Definition at line 267 of file netif.h.

◆ 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.

Definition at line 218 of file netif.h.

◆ state

void* state

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

Definition at line 239 of file netif.h.


The documentation for this struct was generated from the following file: