-
Notifications
You must be signed in to change notification settings - Fork 80
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
consomme: ICMP support for things like ping #102
base: main
Are you sure you want to change the base?
Conversation
8434a11
to
0b65e9c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good minus one thing clippy is complaining about.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't merge this PR until you've removed allow(unsafe_code, undocumented_unsafe_blocks)
} | ||
} | ||
|
||
fn recv_from(socket: &mut Socket, buffer: *mut [u8]) -> std::io::Result<(usize, SockAddr)> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this take a &mut [u8]
instead of a *mut [u8]
?
// with the 'net.ip.ping_group_range' configuration, which is more | ||
// permissive. | ||
let socket_type = if cfg!(windows) { | ||
Type::RAW |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What perms are required for this on Windows?
Add the ICMP backend handler for consomme