Public Attributes

netif Struct Reference

Generic data structure used for all lwIP network interfaces. More...

#include <netif.h>

List of all members.

Public Attributes

struct netifnext
 pointer to next in linked list
ip_addr_t ip_addr
 IP address configuration in network byte order.
ip_addr_t netmask
ip_addr_t gw
netif_input_fn input
 This function is called by the network device driver to pass a packet up the TCP/IP stack.
netif_output_fn output
 This function is called by the IP module when it wants to send a packet on the interface.
netif_linkoutput_fn linkoutput
 This function is called by the ARP module when it wants to send a packet on the interface.
void * state
 This field can be set by the device driver and could point to state information for the device.
u16_t mtu
 maximum transfer unit (in bytes)
u8_t hwaddr_len
 number of bytes used in hwaddr
u8_t hwaddr [NETIF_MAX_HWADDR_LEN]
 link level hardware address of this interface
u8_t flags
 flags (see NETIF_FLAG_ above)
char name [2]
 descriptive abbreviation
u8_t num
 number of this interface

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


Member Data Documentation

flags (see NETIF_FLAG_ above)

u8_t netif::hwaddr[NETIF_MAX_HWADDR_LEN]

link level hardware address of this interface

number of bytes used in hwaddr

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

IP address configuration in network byte order.

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.

maximum transfer unit (in bytes)

char netif::name[2]

descriptive abbreviation

struct netif* netif::next

pointer to next in linked list

number of this interface

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.

void* netif::state

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


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines