Loading...
Searching...
No Matches

Fragmentation extension definitions. More...

Detailed Description

Fragmentation extension definitions.

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

Definition in file frag.h.

#include <stdbool.h>
#include <stdint.h>
#include "byteorder.h"
+ Include dependency graph for frag.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ipv6_ext_frag_t
 Fragment header definition. More...
 

Macros

#define IPV6_EXT_FRAG_OFFSET_MASK   (0xFFF8)
 Mask for the offset.
 
#define IPV6_EXT_FRAG_M   (0x0001)
 M flag.
 

Functions

static unsigned ipv6_ext_frag_get_offset (const ipv6_ext_frag_t *frag)
 Get offset of fragment in bytes.
 
static bool ipv6_ext_frag_more (const ipv6_ext_frag_t *frag)
 Checks if more fragments are coming after the given fragment.
 
static void ipv6_ext_frag_set_offset (ipv6_ext_frag_t *frag, unsigned offset)
 Sets the offset field of a fragment header.
 
static void ipv6_ext_frag_set_more (ipv6_ext_frag_t *frag)
 Sets the M flag of a fragment header.