Lines Matching defs:netif
6 * A netif implementing the ZigBee Encapsulation Protocol (ZEP).
9 * Usage (there must be a default netif before!):
50 #include "netif/zepif.h"
54 #include "netif/lowpan6.h"
106 /* Pass received pbufs into 6LowPAN netif */
112 struct netif *netif_lowpan6 = (struct netif *)arg;
168 zepif_linkoutput(struct netif *netif, struct pbuf *p)
175 LWIP_ASSERT("invalid netif", netif != NULL);
183 state = (struct zepif_state *)netif->state;
207 zepif_udp_recv(netif, state->pcb, pbuf_clone(PBUF_RAW, PBUF_RAM, q), NULL, 0);
218 * Set up a raw 6LowPAN netif and surround it with input- and output
222 zepif_init(struct netif *netif)
225 struct zepif_init *init_state = (struct zepif_init *)netif->state;
228 LWIP_ASSERT("zepif needs an input callback", netif->input != NULL);
250 netif->state = NULL;
266 udp_recv(state->pcb, zepif_udp_recv, netif);
268 err = lowpan6_if_init(netif);
269 LWIP_ASSERT("lowpan6_if_init set a state", netif->state == NULL);
271 netif->state = state;
272 netif->hwaddr_len = 6;
274 memcpy(netif->hwaddr, init_state->addr, 6);
278 netif->hwaddr[i] = i;
280 netif->hwaddr[0] &= 0xfc;
282 netif->linkoutput = zepif_linkoutput;