Prusa MINI Firmware overview
netif Struct Reference

#include <netif.h>

Collaboration diagram for netif:

Public Attributes

struct netifnext
 
netif_input_fn input
 
netif_linkoutput_fn linkoutput
 
voidstate
 
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

Member Data Documentation

◆ next

struct netif* netif::next

pointer to next in linked list

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

◆ state

void* netif::state

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

◆ mtu

u16_t netif::mtu

maximum transfer unit (in bytes)

◆ hwaddr_len

u8_t netif::hwaddr_len

number of bytes used in hwaddr

◆ hwaddr

u8_t netif::hwaddr[NETIF_MAX_HWADDR_LEN]

link level hardware address of this interface

◆ flags

u8_t netif::flags

flags (

See also
Flags)

◆ name

char netif::name[2]

descriptive abbreviation

◆ num

u8_t netif::num

number of this interface