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
int16_t kernel_pid_t
Unique process identifier.
Definition: sched.h:125
gnrc_sixlowpan_get_pid
kernel_pid_t gnrc_sixlowpan_get_pid(void)
Returns the PID of the 6Lo thread.
gnrc_netif_t
Representation of a network interface.
Definition: netif.h:115
pkt.h
General definitions for network packets and their helper functions.
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 require...
gnrc_sixlowpan_dispatch_send
void gnrc_sixlowpan_dispatch_send(gnrc_pktsnip_t *pkt, void *context, unsigned page)
Delegates a packet to the network interface.
netif.h
Definition for GNRC's network interfaces.
gnrc_sixlowpan_dispatch_recv
void gnrc_sixlowpan_dispatch_recv(gnrc_pktsnip_t *pkt, void *context, unsigned page)
Delegates a packet to the network layer.
gnrc_pktsnip
Type to represent parts (either headers or payload) of a packet, called snips.
Definition: pkt.h:108