Skip to content

Conversation

@Le-Maz
Copy link
Contributor

@Le-Maz Le-Maz commented Sep 1, 2025

This PR removes the unconditional assert_eq!(out_buf_len, 6) when retrieving a MAC address via SendARP on Windows.

I encountered an error with a virtual network adapter that a zero was set as MAC length, which caused a panic at runtime. With this change, the assertion is instead a part of the if statement checking for errors.

@shellrow shellrow linked an issue Sep 5, 2025 that may be closed by this pull request
@shellrow
Copy link
Owner

shellrow commented Sep 5, 2025

Thanks for the fix!

@shellrow shellrow merged commit f0789cf into shellrow:main Sep 5, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

netdev panics if an interface w/o MAC address is connected to Windows

2 participants