We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
libc::sysctl
Hi, sysctl is missing. I am using this function to get the MTU of the interface. May I ask to add this function?
sysctl
The text was updated successfully, but these errors were encountered:
Are you using Linux? If so, the sysctl function is deprecated, and the Linux maintainers suggest you use the /proc/sys interface instead.
Sorry, something went wrong.
I am using MacOS, and I need something like
let mut mib = [CTL_NET, AF_ROUTE, 0, AF_UNSPEC, NET_RT_IFLIST, idx as i32]; let mut len: size_t = 0; if rustix::sysctl(mib.as_mut_ptr(), 6, null_mut(), &mut len, null_mut(), 0) < 0 { return Err(io::Error::last_os_error()); }
No branches or pull requests
Hi,
sysctl
is missing. I am using this function to get the MTU of the interface. May I ask to add this function?The text was updated successfully, but these errors were encountered: