32#ifndef _LWIP_PORTING_NETIF_H_
33#define _LWIP_PORTING_NETIF_H_
36#include <netinet/ip.h>
38#define netif_find netifapi_netif_find_by_name
41#define LWIP_NETIF_CLIENT_DATA_INDEX_DHCP LWIP_NETIF_CLIENT_DATA_INDEX_DHCP, \
42 LWIP_NETIF_CLIENT_DATA_INDEX_DHCPS
44#define linkoutput linkoutput; \
45 void (*drv_send)(struct netif *netif, struct pbuf *p); \
46 u8_t (*drv_set_hwaddr)(struct netif *netif, u8_t *addr, u8_t len); \
47 void (*drv_config)(struct netif *netif, u32_t config_flags, u8_t setBit); \
48 char full_name[IFNAMSIZ]; \
50#include_next <lwip/netif.h>
53#undef LWIP_NETIF_CLIENT_DATA_INDEX_DHCP
56#include <lwip/etharp.h>
64#define NETIF_NAMESIZE IFNAMSIZ
67#define ETHERNET_DRIVER_IF 1
68#define WIFI_DRIVER_IF 801
74#define PF_PKT_SUPPORT LWIP_NETIF_PROMISC
75#define netif_add(a, b, c, d) netif_add(a, b, c, d, (a)->state, driverif_init, tcpip_input)
77#define netif_get_name(netif) ((netif)->full_name)
void driverif_input(struct netif *netif, struct pbuf *p)
err_t driverif_init(struct netif *netif)