From 5474498f7e6eaceaa7aab1280dc36c434b4f12af Mon Sep 17 00:00:00 2001 From: goldsimon Date: Mon, 5 Mar 2018 06:43:57 +0100 Subject: [PATCH] zepif: call netif->input instead of tcpip_6lowpan_input for rx packets This allows reusing zepif e.g. with contiki 6LoWPAN code for testing. --- src/netif/zepif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/netif/zepif.c b/src/netif/zepif.c index f1b91f58..707f5fdb 100644 --- a/src/netif/zepif.c +++ b/src/netif/zepif.c @@ -155,7 +155,7 @@ zepif_udp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, /* Call tcpip_6lowpan_input here, not netif->input as we know the direct call * stack won't work as we could enter udp_input twice. */ - err = tcpip_6lowpan_input(p, netif_lowpan6); + err = netif_lowpan6->input(p, netif_lowpan6); if (err == ERR_OK) { return; }