mirror of
https://github.com/ziglang/zig.git
synced 2025-12-22 22:23:10 +00:00
linux: add UDP socket options
This commit is contained in:
parent
bbd13ab961
commit
aa5c6c027c
@ -3622,6 +3622,30 @@ pub const TCP = struct {
|
|||||||
pub const REPAIR_OFF_NO_WP = -1;
|
pub const REPAIR_OFF_NO_WP = -1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const UDP = struct {
|
||||||
|
/// Never send partially complete segments
|
||||||
|
pub const CORK = 1;
|
||||||
|
/// Set the socket to accept encapsulated packets
|
||||||
|
pub const ENCAP = 100;
|
||||||
|
/// Disable sending checksum for UDP6X
|
||||||
|
pub const NO_CHECK6_TX = 101;
|
||||||
|
/// Disable accepting checksum for UDP6
|
||||||
|
pub const NO_CHECK6_RX = 102;
|
||||||
|
/// Set GSO segmentation size
|
||||||
|
pub const SEGMENT = 103;
|
||||||
|
/// This socket can receive UDP GRO packets
|
||||||
|
pub const GRO = 104;
|
||||||
|
};
|
||||||
|
|
||||||
|
pub const UDP_ENCAP = struct {
|
||||||
|
pub const ESPINUDP_NON_IKE = 1;
|
||||||
|
pub const ESPINUDP = 2;
|
||||||
|
pub const L2TPINUDP = 3;
|
||||||
|
pub const GTP0 = 4;
|
||||||
|
pub const GTP1U = 5;
|
||||||
|
pub const RXRPC = 6;
|
||||||
|
};
|
||||||
|
|
||||||
pub const PF = struct {
|
pub const PF = struct {
|
||||||
pub const UNSPEC = 0;
|
pub const UNSPEC = 0;
|
||||||
pub const LOCAL = 1;
|
pub const LOCAL = 1;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user