internal.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 Freie Universit├Ąt Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
18 #ifndef NET_GNRC_SIXLOWPAN_INTERNAL_H
19 #define NET_GNRC_SIXLOWPAN_INTERNAL_H
20 
21 #include <stddef.h>
22 
23 #include "net/gnrc/pkt.h"
24 #include "net/gnrc/netif.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
37 
45 void gnrc_sixlowpan_dispatch_recv(gnrc_pktsnip_t *pkt, void *context,
46  unsigned page);
47 
55 void gnrc_sixlowpan_dispatch_send(gnrc_pktsnip_t *pkt, void *context,
56  unsigned page);
57 
58 
70  size_t orig_datagram_size,
71  gnrc_netif_t *netif,
72  unsigned page);
73 #ifdef __cplusplus
74 }
75 #endif
76 
77 #endif /* NET_GNRC_SIXLOWPAN_INTERNAL_H */
78 
kernel_pid_t gnrc_sixlowpan_get_pid(void)
Returns the PID of the 6Lo thread.
General definitions for network packets and their helper functions.
int16_t kernel_pid_t
Unique process identifier.
Definition: kernel_types.h:83
Representation of a network interface.
Definition: netif.h:74
Definition for GNRC&#39;s network interfaces.
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 require...
void gnrc_sixlowpan_dispatch_recv(gnrc_pktsnip_t *pkt, void *context, unsigned page)
Delegates a packet to the network layer.
Type to represent parts (either headers or payload) of a packet, called snips.
Definition: pkt.h:107
void gnrc_sixlowpan_dispatch_send(gnrc_pktsnip_t *pkt, void *context, unsigned page)
Delegates a packet to the network interface.