lwIP  2.0.2
Lightweight IP stack
lowpan6.h File Reference
#include "netif/lowpan6_opts.h"
#include "lwip/pbuf.h"
#include "lwip/ip.h"
#include "lwip/ip_addr.h"
#include "lwip/netif.h"

Macros

#define LOWPAN6_TMR_INTERVAL   1000
 

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.

Macro Definition Documentation

◆ LOWPAN6_TMR_INTERVAL

#define LOWPAN6_TMR_INTERVAL   1000

1 second period

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