Skip to content

Commit

Permalink
Merge pull request #12303 from miri64/sixlowpan_sfr/feat/initial
Browse files Browse the repository at this point in the history
sixlowpan_sfr: initial import Selective Fragment Recovery definitions
  • Loading branch information
miri64 authored Oct 1, 2019
2 parents aab312e + 38571c6 commit f4cca41
Show file tree
Hide file tree
Showing 5 changed files with 663 additions and 0 deletions.
21 changes: 21 additions & 0 deletions sys/include/net/sixlowpan.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,27 @@ extern "C" {
*/
#define SIXLOWPAN_IPHC1_DISP (0x60)

/**
* @brief Dispatch mask for 6LoWPAN selective fragment recovery
* @see [draft-ietf-6lo-fragment-recovery-05,
* section 5](https://tools.ietf.org/html/draft-ietf-6lo-fragment-recovery-05#section-5)
*/
#define SIXLOWPAN_SFR_DISP_MASK (0xfe)

/**
* @brief Dispatch for 6LoWPAN recoverable fragment
* @see [draft-ietf-6lo-fragment-recovery-05, section
* 5.1](https://tools.ietf.org/html/draft-ietf-6lo-fragment-recovery-05#section-5.1)
*/
#define SIXLOWPAN_SFR_RFRAG_DISP (0xe8)

/**
* @brief Dispatch for 6LoWPAN recoverable fragment acknowledgment
* @see [draft-ietf-6lo-fragment-recovery-05, section
* 5.2](https://tools.ietf.org/html/draft-ietf-6lo-fragment-recovery-05#section-5.2)
*/
#define SIXLOWPAN_SFR_ACK_DISP (0xea)

/**
* @brief Checks if dispatch indicates that frame is not a 6LoWPAN (NALP) frame.
*
Expand Down
Loading

0 comments on commit f4cca41

Please sign in to comment.