stats.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 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 
20 #ifndef NET_GNRC_SIXLOWPAN_FRAG_STATS_H
21 #define NET_GNRC_SIXLOWPAN_FRAG_STATS_H
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 
33 typedef struct {
34  unsigned rbuf_full;
36  unsigned frag_full;
38  unsigned datagrams;
39  unsigned fragments;
40 #if defined(MODULE_GNRC_SIXLOWPAN_FRAG_VRB) || DOXYGEN
41  unsigned vrb_full;
43 #endif
45 
52 
53 
54 #ifdef __cplusplus
55 }
56 #endif
57 
58 #endif /* NET_GNRC_SIXLOWPAN_FRAG_STATS_H */
59 
gnrc_sixlowpan_frag_stats_t::frag_full
unsigned frag_full
counts the number of events that there where no gnrc_sixlowpan_frag_fb_t available
Definition: stats.h:36
gnrc_sixlowpan_frag_stats_t::rbuf_full
unsigned rbuf_full
counts the number of events where the reassembly buffer is full
Definition: stats.h:34
gnrc_sixlowpan_frag_stats_t::fragments
unsigned fragments
total fragments of reassembled fragments
Definition: stats.h:39
gnrc_sixlowpan_frag_stats_get
gnrc_sixlowpan_frag_stats_t * gnrc_sixlowpan_frag_stats_get(void)
Get the current statistics on fragmentation and reassembly.
gnrc_sixlowpan_frag_stats_t
Statistics on fragmentation and reassembly.
Definition: stats.h:33
gnrc_sixlowpan_frag_stats_t::datagrams
unsigned datagrams
reassembled datagrams
Definition: stats.h:38
gnrc_sixlowpan_frag_stats_t::vrb_full
unsigned vrb_full
counts the number of events where the virtual reassembly buffer is full
Definition: stats.h:41