File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -464,6 +464,14 @@ pub enum ControlMessageOwned {
464
464
) ) ]
465
465
Ipv4RecvDstAddr ( libc:: in_addr ) ,
466
466
467
+ /// UDP Generic Receive Offload (GRO) allows receiving multiple UDP
468
+ /// packets from a single sender.
469
+ /// Fixed-size payloads are following one by one in a receive buffer.
470
+ /// This Control Message indicates the size of all smaller packets,
471
+ /// except, maybe, the last one.
472
+ ///
473
+ /// `UdpGroSegment` socket option should be enabled on a socket
474
+ /// to allow receiving GRO packets.
467
475
#[ cfg( target_os = "linux" ) ]
468
476
UdpGroSegments ( u16 ) ,
469
477
@@ -626,7 +634,14 @@ pub enum ControlMessage<'a> {
626
634
) ) ]
627
635
AlgSetAeadAssoclen ( & ' a u32 ) ,
628
636
629
- ///Gso UDP
637
+ /// UDP GSO makes it possible for applications to generate network packets
638
+ /// for a virtual MTU much greater than the real one.
639
+ /// The length of the send data no longer matches the expected length on
640
+ /// the wire.
641
+ /// The size of the datagram payload as it should appear on the wire may be
642
+ /// passed through this control message.
643
+ /// Send buffer should consist of multiple fixed-size wire payloads
644
+ /// following one by one, and the last, possibly smaller one.
630
645
#[ cfg( target_os = "linux" ) ]
631
646
UdpGsoSegments ( & ' a u16 ) ,
632
647
}
You can’t perform that action at this time.
0 commit comments