smoltcp-rs / smoltcp

a smol tcp/ip stack
BSD Zero Clause License
3.75k stars 421 forks source link

ieee: better handle addr for new frame version #870

Closed thvdveld closed 9 months ago

thvdveld commented 9 months ago

The standard defines when addresses and pan ids are present or not. This depends on the frame version. smoltcp supported old versions (2003 and 2006). However, newer versions are more complicated. This adds better handling for new versions.

codecov[bot] commented 9 months ago

Codecov Report

Attention: 34 lines in your changes are missing coverage. Please review.

Comparison is base (481246d) 79.63% compared to head (26d949a) 79.58%.

Files Patch % Lines
src/wire/ieee802154.rs 70.09% 32 Missing :warning:
src/iface/interface/sixlowpan.rs 77.77% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #870 +/- ## ========================================== - Coverage 79.63% 79.58% -0.06% ========================================== Files 78 78 Lines 28074 28120 +46 ========================================== + Hits 22358 22380 +22 - Misses 5716 5740 +24 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.