-
Notifications
You must be signed in to change notification settings - Fork 302
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
MacOS misaligned pointer dereference
in DataLinkReceiver
with invalid interface
#641
Comments
Relevant line that causes the error libpnet/pnet_datalink/src/bpf.rs Line 416 in 87f362d
|
I am also experiencing this issue on MacOS. For me, as far as I can tell, it appears to be specific to the loopback interface. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am attempting to run the example at https://github.com/libpnet/libpnet/blob/main/examples/arp_packet.rs on MacOS but am getting a misaligned pointer error:
I was testing with interface name
lo0
so this is probably not an interface that has any useful data anyway, but I would expect this to fail with an error rather than catching a misaligned read.Compiling in release mode actually seems to make this do the right thing, I get an
Err("failure")
instead.The text was updated successfully, but these errors were encountered: