
#LWIP NETMAP DRIVER#
Most members of struct netif should be be initialized by the netif init function = netif driver (init parameter of this function). In other words, the functions only work when the netif driver is implemented correctly! These functions use netif flags NETIF_FLAG_ETHARP and NETIF_FLAG_ETHERNET to decide whether to forward to ethernet_input() or ip_input(). It is recommended to use a function that passes the input directly to the stack ( netif_input(), NO_SYS=1 mode) or via sending a message to TCPIP thread ( tcpip_input(), NO_SYS=0 mode). Parameters netifĭefault gateway IP address for the new netifĬallback function that initializes the interfaceĬallback function that is called to pass ingress packets up in the protocol layer stack. Netif_loop_output (struct netif * netif, struct pbuf *p)ĭetailed Description Macro Definition Documentation ◆ netif_get_hostnameĪdd a network interface to the list of lwIP netifs. Netif_set_link_callback (struct netif * netif, netif_status_callback_fn link_callback)

Netif_set_link_down (struct netif * netif) Netif_set_remove_callback (struct netif * netif, netif_status_callback_fn remove_callback) Netif_set_status_callback (struct netif * netif, netif_status_callback_fn status_callback) Netif_add (struct netif * netif, const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw, void *state, netif_init_fn init, netif_input_fn input) Netif_set_hostname( netif, name) do while(0)
