Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

6LoWPAN (RFC4944)

6LoWPAN (RFC4944)
[NETIFs]

6LowPAN netif implementation More...

Functions

err_t lowpan6_set_context (u8_t idx, const ip6_addr_t *context)
 Set context.
err_t lowpan6_set_short_addr (u8_t addr_high, u8_t addr_low)
 Set short address.
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.
err_t lowpan6_input (struct pbuf *p, struct netif *netif)
 NETIF input function: don't free the input pbuf when returning != ERR_OK!
err_t lowpan6_set_pan_id (u16_t pan_id)
 Set PAN ID.
err_t tcpip_6lowpan_input (struct pbuf *p, struct netif *inp)
 Pass a received packet to tcpip_thread for input processing.

Detailed Description

6LowPAN netif implementation


Function Documentation

err_t lowpan6_input ( struct pbuf p,
struct netif netif 
)

NETIF input function: don't free the input pbuf when returning != ERR_OK!

Definition at line 646 of file lwip_lowpan6.c.

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

Definition at line 566 of file lwip_lowpan6.c.

err_t lowpan6_set_context ( u8_t  idx,
const ip6_addr_t context 
)

Set context.

Definition at line 499 of file lwip_lowpan6.c.

err_t lowpan6_set_pan_id ( u16_t  pan_id )

Set PAN ID.

Definition at line 897 of file lwip_lowpan6.c.

err_t lowpan6_set_short_addr ( u8_t  addr_high,
u8_t  addr_low 
)

Set short address.

Definition at line 524 of file lwip_lowpan6.c.

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

Definition at line 914 of file lwip_lowpan6.c.