File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -773,7 +773,7 @@ pub enum ControlMessageOwned {
773
773
#[ cfg( target_os = "linux" ) ]
774
774
#[ cfg( feature = "net" ) ]
775
775
#[ cfg_attr( docsrs, doc( cfg( feature = "net" ) ) ) ]
776
- UdpGroSegments ( u16 ) ,
776
+ UdpGroSegments ( i32 ) ,
777
777
778
778
/// SO_RXQ_OVFL indicates that an unsigned 32 bit value
779
779
/// ancilliary msg (cmsg) should be attached to recieved
@@ -949,7 +949,7 @@ impl ControlMessageOwned {
949
949
#[ cfg( target_os = "linux" ) ]
950
950
#[ cfg( feature = "net" ) ]
951
951
( libc:: SOL_UDP , libc:: UDP_GRO ) => {
952
- let gso_size: u16 = unsafe { ptr:: read_unaligned( p as * const _) } ;
952
+ let gso_size: i32 = unsafe { ptr:: read_unaligned( p as * const _) } ;
953
953
ControlMessageOwned :: UdpGroSegments ( gso_size)
954
954
} ,
955
955
#[ cfg( any( linux_android, target_os = "fuchsia" ) ) ]
You can’t perform that action at this time.
0 commit comments