We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c08f39 commit 987ac01Copy full SHA for 987ac01
src/sys/socket/mod.rs
@@ -773,7 +773,7 @@ pub enum ControlMessageOwned {
773
#[cfg(target_os = "linux")]
774
#[cfg(feature = "net")]
775
#[cfg_attr(docsrs, doc(cfg(feature = "net")))]
776
- UdpGroSegments(u16),
+ UdpGroSegments(i32),
777
778
/// SO_RXQ_OVFL indicates that an unsigned 32 bit value
779
/// ancilliary msg (cmsg) should be attached to recieved
@@ -949,7 +949,7 @@ impl ControlMessageOwned {
949
950
951
(libc::SOL_UDP, libc::UDP_GRO) => {
952
- let gso_size: u16 = unsafe { ptr::read_unaligned(p as *const _) };
+ let gso_size: i32 = unsafe { ptr::read_unaligned(p as *const _) };
953
ControlMessageOwned::UdpGroSegments(gso_size)
954
},
955
#[cfg(any(linux_android, target_os = "fuchsia"))]
0 commit comments