Skip to content

Commit

Permalink
fixup! gnrc_sixlowpan_frag: allow send of multiple datagrams simultan…
Browse files Browse the repository at this point in the history
…eously
  • Loading branch information
miri64 committed Feb 21, 2019
1 parent 7f43b63 commit 3b426cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 10 additions & 0 deletions sys/include/net/gnrc/sixlowpan/frag.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ extern "C" {
#define GNRC_SIXLOWPAN_MSG_FRAG_GC_RBUF (0x0226)
/** @} */

/**
* @brief Number of datagrams that can be fragmented simultaneously
*
* This determines the number of @ref gnrc_sixlowpan_msg_frag_t instances
* available.
*/
#ifndef GNRC_SIXLOWPAN_MSG_FRAG_SIZE
#define GNRC_SIXLOWPAN_MSG_FRAG_SIZE (1U)
#endif

/**
* @brief An entry in the 6LoWPAN reassembly buffer.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@
#define ENABLE_DEBUG (0)
#include "debug.h"

#ifndef GNRC_SIXLOWPAN_MSG_FRAG_SIZE
#define GNRC_SIXLOWPAN_MSG_FRAG_SIZE (1U)
#endif

static gnrc_sixlowpan_msg_frag_t _fragment_msg[GNRC_SIXLOWPAN_MSG_FRAG_SIZE];

#if ENABLE_DEBUG
Expand Down

0 comments on commit 3b426cd

Please sign in to comment.