6loWPAN: Fixes for fragmented packets. Change fixes some things, breaks other. Lots more to do.

This commit is contained in:
Gregory Nutt
2017-04-07 15:27:53 -06:00
parent 47647eac8f
commit f264e6aec2
4 changed files with 129 additions and 123 deletions
+7 -1
View File
@@ -80,7 +80,7 @@
#define SIXLOWPAN_DISPATCH_FRAG1 0xc0 /* 11000xxx */
#define SIXLOWPAN_DISPATCH_FRAGN 0xe0 /* 11100xxx */
#define SIXLOWPAN_DISPATCH_FRAG_MASK 0xf1 /* 11111000 */
#define SIXLOWPAN_DISPATCH_FRAG_MASK 0xf8 /* 11111000 */
/* HC1 encoding */
@@ -398,6 +398,12 @@ struct ieee802154_driver_s
uint16_t i_reasstag;
/* i_boffset. Offset to the beginning of data in d_buf. As each fragment
* is received, data is placed at an appriate offset added to this.
*/
uint16_t i_boffset;
/* The source MAC address of the fragments being merged */
struct rimeaddr_s i_fragsrc;