Loading...
Searching...
No Matches
internal.h File Reference

6LoWPAN internal functions More...

Detailed Description

6LoWPAN internal functions

Author
Martine Lenders m.len.nosp@m.ders.nosp@m.@fu-b.nosp@m.erli.nosp@m.n.de

Definition in file internal.h.

#include <stddef.h>
#include "net/gnrc/pkt.h"
#include "net/gnrc/netif.h"
+ Include dependency graph for internal.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

kernel_pid_t gnrc_sixlowpan_get_pid (void)
 Returns the PID of the 6Lo thread.
 
void gnrc_sixlowpan_dispatch_recv (gnrc_pktsnip_t *pkt, void *context, unsigned page)
 Delegates a packet to the network layer.
 
void gnrc_sixlowpan_dispatch_send (gnrc_pktsnip_t *pkt, void *context, unsigned page)
 Delegates a packet to the network interface.
 
void gnrc_sixlowpan_multiplex_by_size (gnrc_pktsnip_t *pkt, size_t orig_datagram_size, gnrc_netif_t *netif, unsigned page)
 Checks if packet fits over interface (and fragments if 6LoWPAN Fragmentation is available and required)
 

Function Documentation

◆ gnrc_sixlowpan_dispatch_recv()

void gnrc_sixlowpan_dispatch_recv ( gnrc_pktsnip_t pkt,
void *  context,
unsigned  page 
)

Delegates a packet to the network layer.

Parameters
[in]pktA packet
[in]contextContext for the packet. May be NULL.
[in]pageCurrent 6Lo dispatch parsing page

◆ gnrc_sixlowpan_dispatch_send()

void gnrc_sixlowpan_dispatch_send ( gnrc_pktsnip_t pkt,
void *  context,
unsigned  page 
)

Delegates a packet to the network interface.

Parameters
[in]pktA packet
[in]contextContext for the packet. May be NULL.
[in]pageCurrent 6Lo dispatch parsing page

◆ gnrc_sixlowpan_get_pid()

kernel_pid_t gnrc_sixlowpan_get_pid ( void  )

Returns the PID of the 6Lo thread.

Returns
The PID of the 6Lo thread on success
KERNEL_PID_UNDEF, when 6Lo thread was not started.

◆ gnrc_sixlowpan_multiplex_by_size()

void gnrc_sixlowpan_multiplex_by_size ( gnrc_pktsnip_t pkt,
size_t  orig_datagram_size,
gnrc_netif_t netif,
unsigned  page 
)

Checks if packet fits over interface (and fragments if 6LoWPAN Fragmentation is available and required)

Parameters
[in]pktThe packet to fit. Must not be NULL.
[in]orig_datagram_sizeThe original (uncompressed) datagram size.
[in]netifThe interface to fit pkt over. Must not be NULL.
[in]pageCurrent 6Lo dispatch parsing page