Skip to content
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

fix(ndisc): prevent ndisc when medium is IP. #865

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

thvdveld
Copy link
Contributor

@thvdveld thvdveld commented Dec 5, 2023

When the medium-ip feature, and medium-ethernet or medium-ieee802154 is enabled, it was possible to receive an ICMP NDISC message. This made smoltcp panic as it tried to conver the HardwareAddress::Ip to a RawHardwareAddress.

When the `medium-ip` feature, and `medium-ethernet` or `medium-ieee802154`
is enabled, it was possible to receive an ICMP NDISC message. This made
smoltcp panic as it tried to conver the HardwareAddress::Ip to a
RawHardwareAddress.
Copy link

codecov bot commented Dec 5, 2023

Codecov Report

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

Comparison is base (36a143d) 79.62% compared to head (5a3ed88) 79.63%.
Report is 2 commits behind head on main.

Files Patch % Lines
src/iface/interface/mod.rs 80.00% 2 Missing ⚠️
src/iface/interface/ipv6.rs 88.88% 1 Missing ⚠️
src/socket/dns.rs 0.00% 1 Missing ⚠️
src/socket/udp.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #865      +/-   ##
==========================================
+ Coverage   79.62%   79.63%   +0.01%     
==========================================
  Files          78       78              
  Lines       28043    28051       +8     
==========================================
+ Hits        22329    22339      +10     
+ Misses       5714     5712       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@thvdveld thvdveld added this pull request to the merge queue Dec 6, 2023
Merged via the queue into smoltcp-rs:main with commit 0e771ca Dec 6, 2023
14 checks passed
@thvdveld thvdveld deleted the prevent-ndisc-when-medium-ip branch December 6, 2023 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant