frag.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
3  * Copyright (C) 2015 Hamburg University of Applied Sciences
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
25 #ifndef NET_GNRC_SIXLOWPAN_FRAG_H
26 #define NET_GNRC_SIXLOWPAN_FRAG_H
27 
28 #include <inttypes.h>
29 #include <stdbool.h>
30 
31 #include "byteorder.h"
32 #include "kernel_types.h"
33 #include "net/gnrc/pkt.h"
34 #include "net/sixlowpan.h"
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
43 #define GNRC_SIXLOWPAN_MSG_FRAG_SND (0x0225)
44 
48 typedef struct {
51  size_t datagram_size;
52  uint16_t offset;
55 
63 
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 #endif /* NET_GNRC_SIXLOWPAN_FRAG_H */
76 
Types used by the kernel.
int16_t kernel_pid_t
Unique process identifier.
Definition: kernel_types.h:83
General definitions for network packets and their helper functions.
gnrc_pktsnip_t * pkt
Pointer to the IPv6 packet to be fragmented.
Definition: frag.h:50
6LoWPAN dispatch type and helper function definitons.
uint16_t offset
Offset of the Nth fragment from the beginning of the payload datagram.
Definition: frag.h:52
Definition of 6LoWPAN fragmentation type.
Definition: frag.h:48
kernel_pid_t pid
PID of the interface.
Definition: frag.h:49
Functions to work with different byte orders.
Adds include for missing inttype definitions.
void gnrc_sixlowpan_frag_send(gnrc_sixlowpan_msg_frag_t *fragment_msg)
Sends a packet fragmented.
void gnrc_sixlowpan_frag_handle_pkt(gnrc_pktsnip_t *pkt)
Handles a packet containing a fragment header.
Type to represent parts (either headers or payload) of a packet, called snips.
size_t datagram_size
Length of just the IPv6 packet to be fragmented.
Definition: frag.h:51