gnrc_sixlowpan_frag_rb: add new functions for SFR#12349
gnrc_sixlowpan_frag_rb: add new functions for SFR#12349miri64 merged 4 commits intoRIOT-OS:masterfrom
Conversation
|
Squashed |
01726c8 to
5d3d344
Compare
|
And rebased. |
89909d1 to
c86aec6
Compare
|
Rebased to current master to resolve conflicts. |
benpicco
left a comment
There was a problem hiding this comment.
The helper functions are pretty straightforward and there are even tests.
IMHO a single big PR that adds SFR with many small commits like this would be easier to handle than many small PRs that add code that is not used yet.
And then I wait for ages for that to be merged, because nobody wants to review a >5000 line PR that also changes a lot of 6LoWPAN's APIs. |
+ somebody then needs to test all of this everytime I address a change request in that PR... |
47140ed to
3cc8b91
Compare
|
Squashed as per #12349 (comment) |
Contribution description
This extends the 6LoWPAN reassembly buffer by two functions specifically for Selective Fragment Recovery:
gnrc_sixlowpan_frag_rb_exists()checks if an entry with given parameters exist.gnrc_sixlowpan_frag_rb_rm_by_datagram()removes an entry by given parameters.oIn both cases datagram_size is not a search parameter as this information only exists in the first fragment and thus can't be determined for subsequent fragments without having the reassembly buffer entry first.
Testing procedure
Did not add tests yet. Will do (this is why this PR is WIP).Tests were added totests/gnrc_sixlowpan_fragso it should pass.Issues/PRs references
None