-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gnrc_sixlowpan_frag: Initial import of a fragment size hint feature #11061
Conversation
#11068 is too experimental so it doesn't make any sense to try to get this into the release => post-poned. |
f7f6808
to
42903e5
Compare
Rebased however to resolve conflict with current master |
42903e5
to
8dd85ce
Compare
Rebased to current master and dependencies |
Rebased to current master and dependencies. |
8dd85ce
to
26af0ea
Compare
Rebased to current master. |
Reworded the unclear lines. |
098f847
to
5486814
Compare
Sorry, accidentally pushed an old version -.- |
(it is fixed now) |
@@ -94,6 +97,13 @@ typedef struct { | |||
uint16_t tag; /**< Tag used for the fragment */ | |||
uint16_t offset; /**< Offset of the Nth fragment from the beginning of the | |||
* payload datagram */ | |||
#ifdef MODULE_GNRC_SIXLOWPAN_FRAG_HINT | |||
/** | |||
* @brief Hint for the size (smaller than link-layer PDU) of for the next |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
of for? (:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks okay and compiles without errors using the new pseudomodule. ACK.
This allows for sending of fragments smaller than the restrictions set by the link-layer PDU. E.g. to put some slack for IPHC into the first fragment (see https://tools.ietf.org/html/draft-ietf-6lo-fragment-recovery-02#section-4.1).
b6bf984
to
2534cfb
Compare
Contribution description
This allows for sending of fragments smaller than the restrictions set by the link-layer PDU. E.g. to put some slack for IPHC into the first fragment (see https://tools.ietf.org/html/draft-ietf-6lo-fragment-recovery-02#section-4.1).
Testing procedure
Currently there is no test for this (I will provide a test application for my minimal fragment forwarding implementation that also tests this feature), so just compiling
gnrc_networking
with thegnrc_sixlowpan_frag_hint
pseudo-module for a 6Lo-capable board (e.g.samr21-xpro
) should suffice (this will not be done by the CI!).Issues/PRs references
Depends on #11021 (mainly because there is a lot of conflict between those two, but functionally it is independent from that PR).