8#if !LWIP_NETIF_EXT_STATUS_CALLBACK
9#error "This tests needs LWIP_NETIF_EXT_STATUS_CALLBACK enabled"
44 netif->output = etharp_output;
60#define MAX_NSC_REASON_IDX 10
100 IP4_ADDR(&
addr, 0, 0, 0, 0);
101 IP4_ADDR(&netmask, 0, 0, 0, 0);
102 IP4_ADDR(&gw, 0, 0, 0, 0);
127 IP4_ADDR(&
addr, 1, 2, 3, 4);
133 IP4_ADDR(&netmask, 255, 255, 255, 0);
136 netif_set_netmask(&
net_test, &netmask);
139 IP4_ADDR(&gw, 1, 2, 3, 254);
145 IP4_ADDR(&
addr, 0, 0, 0, 0);
151 IP4_ADDR(&netmask, 0, 0, 0, 0);
154 netif_set_netmask(&
net_test, &netmask);
157 IP4_ADDR(&gw, 0, 0, 0, 0);
165 IP4_ADDR(&
addr, 1, 2, 3, 4);
166 IP4_ADDR(&netmask, 255, 255, 255, 0);
167 IP4_ADDR(&gw, 1, 2, 3, 254);
181 netif_set_netmask(&
net_test, &netmask);
196 IP4_ADDR(&
addr, 1, 2, 3, 5);
229 IP4_ADDR(&
addr, 0, 0, 0, 0);
230 IP4_ADDR(&netmask, 0, 0, 0, 0);
231 IP4_ADDR(&gw, 0, 0, 0, 0);
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
GLenum const GLvoid * addr
#define LWIP_UNUSED_ARG(x)
#define NETIF_FLAG_LINK_UP
#define NETIF_FLAG_ETHERNET
#define NETIF_FLAG_ETHARP
#define NETIF_FLAG_BROADCAST
struct netif * netif_find(const char *name)
void netif_set_down(struct netif *netif)
void netif_remove(struct netif *netif)
struct netif * netif_add(struct netif *netif, void *state, netif_init_fn init, netif_input_fn input)
void netif_set_link_up(struct netif *netif)
void netif_set_up(struct netif *netif)
struct netif * netif_add_noaddr(struct netif *netif, void *state, netif_init_fn init, netif_input_fn input)
Suite * create_suite(const char *name, testfunc *tests, size_t num_tests, SFun setup, SFun teardown)
void lwip_check_ensure_no_alloc(unsigned int skip)
static struct test_info tests[]
#define netif_is_flag_set(netif, flag)
#define LWIP_NSC_IPV4_GATEWAY_CHANGED
#define LWIP_NSC_IPV4_SETTINGS_CHANGED
#define LWIP_NSC_LINK_CHANGED
#define NETIF_DECLARE_EXT_CALLBACK(name)
#define LWIP_NSC_STATUS_CHANGED
#define LWIP_NSC_IPV4_ADDR_VALID
#define netif_add_ext_callback(callback, fn)
#define LWIP_NSC_IPV4_NETMASK_CHANGED
#define LWIP_NSC_NETIF_ADDED
#define netif_remove_ext_callback(callback)
#define LWIP_NSC_NETIF_REMOVED
#define LWIP_NSC_IPV4_ADDRESS_CHANGED
u8_t hwaddr[NETIF_MAX_HWADDR_LEN]
netif_linkoutput_fn linkoutput
static netif_nsc_reason_t expected_reasons
static void netif_setup(void)
static void test_netif_ext_callback(struct netif *netif, netif_nsc_reason_t reason, const netif_ext_callback_args_t *args)
static void test_netif_ext_callback_dummy(struct netif *netif, netif_nsc_reason_t reason, const netif_ext_callback_args_t *args)
END_TEST Suite * netif_suite(void)
static err_t testif_tx_func(struct netif *netif, struct pbuf *p)
static void netif_teardown(void)
static err_t testif_init(struct netif *netif)
static struct netif net_test