mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
unit tests: remove dummy netif input function
This partly reverts a26a2e13
after removing that NULL check again.
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
parent
61e3f49f69
commit
38614e4f3e
@ -32,15 +32,6 @@ etharp_remove_all(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static err_t
|
|
||||||
dummy_input_function(struct pbuf *p, struct netif *inp)
|
|
||||||
{
|
|
||||||
LWIP_UNUSED_ARG(p);
|
|
||||||
LWIP_UNUSED_ARG(inp);
|
|
||||||
fail("this netif should have no input");
|
|
||||||
return ERR_VAL;
|
|
||||||
}
|
|
||||||
|
|
||||||
static err_t
|
static err_t
|
||||||
default_netif_linkoutput(struct netif *netif, struct pbuf *p)
|
default_netif_linkoutput(struct netif *netif, struct pbuf *p)
|
||||||
{
|
{
|
||||||
@ -71,7 +62,7 @@ default_netif_add(void)
|
|||||||
|
|
||||||
fail_unless(netif_default == NULL);
|
fail_unless(netif_default == NULL);
|
||||||
netif_set_default(netif_add(&test_netif, &test_ipaddr, &test_netmask,
|
netif_set_default(netif_add(&test_netif, &test_ipaddr, &test_netmask,
|
||||||
&test_gw, NULL, default_netif_init, dummy_input_function));
|
&test_gw, NULL, default_netif_init, NULL));
|
||||||
netif_set_up(&test_netif);
|
netif_set_up(&test_netif);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,15 +16,6 @@
|
|||||||
static struct netif test_netif6;
|
static struct netif test_netif6;
|
||||||
static int linkoutput_ctr;
|
static int linkoutput_ctr;
|
||||||
|
|
||||||
static err_t
|
|
||||||
dummy_input_function(struct pbuf *p, struct netif *inp)
|
|
||||||
{
|
|
||||||
LWIP_UNUSED_ARG(p);
|
|
||||||
LWIP_UNUSED_ARG(inp);
|
|
||||||
fail("this netif should have no input");
|
|
||||||
return ERR_VAL;
|
|
||||||
}
|
|
||||||
|
|
||||||
static err_t
|
static err_t
|
||||||
default_netif_linkoutput(struct netif *netif, struct pbuf *p)
|
default_netif_linkoutput(struct netif *netif, struct pbuf *p)
|
||||||
{
|
{
|
||||||
@ -51,7 +42,7 @@ default_netif_add(void)
|
|||||||
{
|
{
|
||||||
struct netif *n;
|
struct netif *n;
|
||||||
fail_unless(netif_default == NULL);
|
fail_unless(netif_default == NULL);
|
||||||
n = netif_add_noaddr(&test_netif6, NULL, default_netif_init, dummy_input_function);
|
n = netif_add_noaddr(&test_netif6, NULL, default_netif_init, NULL);
|
||||||
fail_unless(n == &test_netif6);
|
fail_unless(n == &test_netif6);
|
||||||
netif_set_default(&test_netif6);
|
netif_set_default(&test_netif6);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user