lwIP  2.0.2
Lightweight IP stack
lowpan6.c File Reference
#include "netif/lowpan6.h"
#include "lwip/ip.h"
#include "lwip/pbuf.h"
#include "lwip/ip_addr.h"
#include "lwip/netif.h"
#include "lwip/nd6.h"
#include "lwip/mem.h"
#include "lwip/udp.h"
#include "lwip/tcpip.h"
#include "lwip/snmp.h"
#include <string.h>

Data Structures

struct  lowpan6_reass_helper
 

Functions

void lowpan6_tmr (void)
 
err_t lowpan6_output (struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr)
 
err_t tcpip_6lowpan_input (struct pbuf *p, struct netif *inp)
 

Detailed Description

6LowPAN output for IPv6. Uses ND tables for link-layer addressing. Fragments packets to 6LowPAN units.

Function Documentation

◆ lowpan6_output()

err_t lowpan6_output ( struct netif netif,
struct pbuf q,
const ip6_addr_t ip6addr 
)

Resolve and fill-in IEEE 802.15.4 address header for outgoing IPv6 packet.

Perform Header Compression and fragment if necessary.

Parameters
netifThe lwIP network interface which the IP packet will be sent on.
qThe pbuf(s) containing the IP packet to be sent.
ip6addrThe IP address of the packet destination.
Returns
err_t

◆ lowpan6_tmr()

void lowpan6_tmr ( void  )

Periodic timer for 6LowPAN functions:

  • Remove incomplete/old packets

◆ tcpip_6lowpan_input()

err_t tcpip_6lowpan_input ( struct pbuf p,
struct netif inp 
)

Pass a received packet to tcpip_thread for input processing

Parameters
pthe received packet, p->payload pointing to the IEEE 802.15.4 header.
inpthe network interface on which the packet was received