[feature] Fix #1095 Implement full IPv4 header and fragmentation#1108
[feature] Fix #1095 Implement full IPv4 header and fragmentation#1108aaronddavies wants to merge 8 commits into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1108 +/- ##
==========================================
+ Coverage 81.28% 81.62% +0.34%
==========================================
Files 81 81
Lines 24838 25306 +468
==========================================
+ Hits 20189 20656 +467
- Misses 4649 4650 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thanks for the PR! I'm concerned adding all these fields and options to
This is a nice bug fix. could you send a PR with just this change? |
|
@Dirbaio thank you for the review and feedback! That's a good point and I will get the bugfix into a separate PR. I will also look at carrying around the original bytes without augmenting the repr. |
Opened #1116. |
9cfc3a3 to
0025017
Compare
0025017 to
1d5392d
Compare
Fixes #1095.
Changes to operational code:
Ipv4Reprstruct so that they are no longer dropped when message traffic goes through smoltcp. (TODO - this is being updated to pass the bytes to raw sockets only, and not augment theRepr.)options. This implemented as a fixed size byte array to theIPv4Reprstruct. The header length field determines how many bytes of the options array are to be included when emitting from the struct. Bench tests showed that a the raw array had better performance than usingOption<[u8]>. (TODO - see above.)Changes to unit tests:
IpvXstruct repr (TODO - see above, this will no longer be necessary.)Reference:
Bench tests before & after