Lines Matching defs:netif
50 * - add this netif
58 * - call netif->input
69 #include "netif/lowpan6_ble.h"
76 #include "lwip/netif.h"
176 rfc7668_set_local_addr_eui64(struct netif *netif, const u8_t *local_addr, size_t local_addr_len)
178 /* netif not used for now, the address is stored globally... */
179 LWIP_UNUSED_ARG(netif);
187 rfc7668_set_local_addr_mac48(struct netif *netif, const u8_t *local_addr, size_t local_addr_len, int is_public_addr)
189 /* netif not used for now, the address is stored globally... */
190 LWIP_UNUSED_ARG(netif);
198 rfc7668_set_peer_addr_eui64(struct netif *netif, const u8_t *peer_addr, size_t peer_addr_len)
200 /* netif not used for now, the address is stored globally... */
201 LWIP_UNUSED_ARG(netif);
209 rfc7668_set_peer_addr_mac48(struct netif *netif, const u8_t *peer_addr, size_t peer_addr_len, int is_public_addr)
211 /* netif not used for now, the address is stored globally... */
212 LWIP_UNUSED_ARG(netif);
225 * @param netif Output network interface. Should be of RFC7668 type
227 * @return Same as netif->output.
230 rfc7668_compress(struct netif *netif, struct pbuf *p)
239 LWIP_ASSERT("lowpan6_frag: netif->linkoutput not set", netif->linkoutput != NULL);
248 MIB2_STATS_NETIF_INC(netif, ifoutdiscards);
256 err = lowpan6_compress_headers(netif, (u8_t *)p->payload, p->len, buffer, p_frag->len,
259 MIB2_STATS_NETIF_INC(netif, ifoutdiscards);
275 MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p_frag->tot_len);
277 err = netif->linkoutput(netif, p_frag);
319 * Compress outgoing IPv6 packet and pass it on to netif->linkoutput
321 * @param netif The lwIP network interface which the IP packet will be sent on.
328 rfc7668_output(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr)
333 return rfc7668_compress(netif, q);
342 * @param netif the network interface on which the packet was received
347 rfc7668_input(struct pbuf * p, struct netif *netif)
351 MIB2_STATS_NETIF_ADD(netif, ifinoctets, p->tot_len);
368 MIB2_STATS_NETIF_INC(netif, ifindiscards);
374 MIB2_STATS_NETIF_INC(netif, ifindiscards);
379 MIB2_STATS_NETIF_INC(netif, ifinucastpkts);
395 return ip6_input(p, netif);
400 * Initialize the netif
403 * The shortname for this netif is "BT"
405 * @param netif the network interface to be initialized as RFC7668 netif
410 rfc7668_if_init(struct netif *netif)
412 netif->name[0] = 'b';
413 netif->name[1] = 't';
415 netif->output_ip6 = rfc7668_output;
417 MIB2_INIT_NETIF(netif, snmp_ifType_other, 0);
420 netif->mtu = IP6_MIN_MTU_LENGTH;
423 netif->flags = 0;
440 tcpip_rfc7668_input(struct pbuf *p, struct netif *inp)