include/net/gnrc/pkt.h File Reference

General definitions for network packets and their helper functions. More...

Detailed Description

General definitions for network packets and their helper functions.

Author
Martine Lenders mlend.nosp@m.ers@.nosp@m.inf.f.nosp@m.u-be.nosp@m.rlin..nosp@m.de
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file include/net/gnrc/pkt.h.

#include <inttypes.h>
#include <stdlib.h>
#include "kernel_types.h"
#include "net/gnrc/nettype.h"
+ Include dependency graph for include/net/gnrc/pkt.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  gnrc_pktsnip
 Type to represent parts (either headers or payload) of a packet, called snips. More...
 

Typedefs

typedef struct gnrc_pktsnip gnrc_pktsnip_t
 Type to represent parts (either headers or payload) of a packet, called snips. More...
 

Functions

static size_t gnrc_pkt_len (gnrc_pktsnip_t *pkt)
 Calculates length of a packet in byte. More...
 
static size_t gnrc_pkt_len_upto (gnrc_pktsnip_t *pkt, gnrc_nettype_t type)
 Calculates length of a packet in byte upto (including) a snip with the given type. More...
 
static size_t gnrc_pkt_count (const gnrc_pktsnip_t *pkt)
 Count the numbers of snips in the given packet. More...
 
gnrc_pktsnip_tgnrc_pktsnip_search_type (gnrc_pktsnip_t *pkt, gnrc_nettype_t type)
 Searches the packet for a packet snip of a specific type. More...