Ethernet for Nucleo and Disco board STM32F746 works with gcc and arm. IAC is untested

Dependents:   STM32F746_iothub_client_sample_mqtt DISCO-F746NG_Ethernet Nucleo_F746ZG_Ethernet thethingsiO-DISCO_F746NG-mqtt ... more

Embed: (wiki syntax)

« Back to documentation index

netif Struct Reference

netif Struct Reference

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

#include <netif.h>

Data Fields

struct netifnext
 pointer to next in linked list
ip_addr_t ip_addr
 IP address configuration in network byte order.
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.
netif_status_callback_fn status_callback
 This function is called when the netif state is set to up or down.
netif_status_callback_fn link_callback
 This function is called when the netif link is set to up or down.
netif_status_callback_fn remove_callback
 This function is called when the netif has been removed.
void * state
 This field can be set by the device driver and could point to state information for the device.
struct dhcpdhcp
 the DHCP client state information for this netif
struct autoipautoip
 the AutoIP client state information for this netif
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
u8_t link_type
 link type (from "snmp_ifType" enum from snmp.h)
u32_t link_speed
 (estimate) link speed
u32_t ts
 timestamp at last change made (up/down)
u32_t ifinoctets
 counters
netif_igmp_mac_filter_fn igmp_mac_filter
 This function could be called to add or delete a entry in the multicast filter table of the ethernet MAC.

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


Field Documentation

struct autoip* autoip

the AutoIP client state information for this netif

Definition at line 179 of file netif.h.

struct dhcp* dhcp

the DHCP client state information for this netif

Definition at line 175 of file netif.h.

u8_t flags

flags (see NETIF_FLAG_ above)

Definition at line 192 of file netif.h.

u8_t hwaddr[NETIF_MAX_HWADDR_LEN]

link level hardware address of this interface

Definition at line 190 of file netif.h.

u8_t hwaddr_len

number of bytes used in hwaddr

Definition at line 188 of file netif.h.

u32_t ifinoctets

counters

Definition at line 205 of file netif.h.

netif_igmp_mac_filter_fn igmp_mac_filter

This function could be called to add or delete a entry in the multicast filter table of the ethernet MAC.

Definition at line 217 of file netif.h.

netif_input_fn input

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

Definition at line 147 of file netif.h.

ip_addr_t ip_addr

IP address configuration in network byte order.

Definition at line 141 of file netif.h.

netif_status_callback_fn link_callback

This function is called when the netif link is set to up or down.

Definition at line 164 of file netif.h.

u32_t link_speed

(estimate) link speed

Definition at line 201 of file netif.h.

u8_t link_type

link type (from "snmp_ifType" enum from snmp.h)

Definition at line 199 of file netif.h.

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

u16_t mtu

maximum transfer unit (in bytes)

Definition at line 186 of file netif.h.

char name[2]

descriptive abbreviation

Definition at line 194 of file netif.h.

struct netif* next

pointer to next in linked list

Definition at line 138 of file netif.h.

u8_t num

number of this interface

Definition at line 196 of file netif.h.

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

netif_status_callback_fn remove_callback

This function is called when the netif has been removed.

Definition at line 168 of file netif.h.

void* state

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

Definition at line 172 of file netif.h.

netif_status_callback_fn status_callback

This function is called when the netif state is set to up or down.

Definition at line 159 of file netif.h.

u32_t ts

timestamp at last change made (up/down)

Definition at line 203 of file netif.h.