SAMV71 Xplained Ultra Software Package 1.4

netif Struct Reference

#include <D:/git/git_canopus_1/softpack/samv7/libraries/liblwip/source/lwip_1.3.2/src/include/lwip/netif.h>

Data Fields

struct netifnext
struct ip_addr ip_addr
struct ip_addr netmask
struct ip_addr gw
err_t(* input )(struct pbuf *p, struct netif *inp)
err_t(* output )(struct netif *netif, struct pbuf *p, struct ip_addr *ipaddr)
err_t(* linkoutput )(struct netif *netif, struct pbuf *p)
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

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


Field Documentation

flags (see NETIF_FLAG_ above)

Definition at line 141 of file netif.h.

u8_t netif::hwaddr[NETIF_MAX_HWADDR_LEN]

link level hardware address of this interface

Definition at line 139 of file netif.h.

number of bytes used in hwaddr

Definition at line 137 of file netif.h.

err_t(* netif::input)(struct pbuf *p, struct netif *inp)

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

Definition at line 99 of file netif.h.

IP address configuration in network byte order

Definition at line 93 of file netif.h.

err_t(* netif::linkoutput)(struct netif *netif, struct pbuf *p)

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

maximum transfer unit (in bytes)

Definition at line 135 of file netif.h.

char netif::name[2]

descriptive abbreviation

Definition at line 143 of file netif.h.

struct netif* netif::next

pointer to next in linked list

Definition at line 90 of file netif.h.

number of this interface

Definition at line 145 of file netif.h.

err_t(* netif::output)(struct netif *netif, struct pbuf *p, struct ip_addr *ipaddr)

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

void* netif::state

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

Definition at line 121 of file netif.h.


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