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
tclass is the IPv6 counterpart to IPv4's tos field.
We can implement IPv6 methods just like Socket::tos and Socket::set_tos
Socket::tos
Socket::set_tos
pub fn set_tclass(&self, tclass: u32) -> io::Result<()> { unsafe { setsockopt(self.as_raw(), sys::IPPROTO_IPV6, sys::IPV6_TCLASS, tclass as c_int) } } pub fn tclass(&self) -> io::Result<u32> { unsafe { getsockopt::<c_int>(self.as_raw(), sys::IPPROTO_IPV6, sys::IPV6_TCLASS).map(|tclass| tclass as u32) } }
IPV6_CLASS option is defined in RFC3542.
The text was updated successfully, but these errors were encountered:
Same as #418 (comment), prs are welcome 👍
Sorry, something went wrong.
We support Socket::(set_)tclass_v6 since 43f286c, so closing.
Socket::(set_)tclass_v6
No branches or pull requests
tclass is the IPv6 counterpart to IPv4's tos field.
We can implement IPv6 methods just like
Socket::tos
andSocket::set_tos
IPV6_CLASS option is defined in RFC3542.
The text was updated successfully, but these errors were encountered: