zepif: call netif->input instead of tcpip_6lowpan_input for rx packets

This allows reusing zepif e.g. with contiki 6LoWPAN code for testing.
This commit is contained in:
goldsimon 2018-03-05 06:43:57 +01:00
parent b28e979739
commit 5474498f7e

View File

@ -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;
}