Skip to content

Commit 1b4ef50

Browse files
author
Gleb Pomykalov
committed
Add Linux UDP constants
1 parent 1d9e5fb commit 1b4ef50

File tree

1 file changed

+8
-0
lines changed
  • src/unix/linux_like/linux

1 file changed

+8
-0
lines changed

src/unix/linux_like/linux/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2322,6 +2322,14 @@ pub const ALG_SET_AEAD_AUTHSIZE: ::c_int = 5;
23222322
pub const ALG_OP_DECRYPT: ::c_int = 0;
23232323
pub const ALG_OP_ENCRYPT: ::c_int = 1;
23242324

2325+
// include/uapi/linux/udp.h
2326+
pub const UDP_CORK: ::c_int = 1;
2327+
pub const UDP_ENCAP: ::c_int = 100;
2328+
pub const UDP_NO_CHECK6_TX: ::c_int = 101;
2329+
pub const UDP_NO_CHECK6_RX: ::c_int = 102;
2330+
pub const UDP_SEGMENT: ::c_int = 103;
2331+
pub const UDP_GRO: ::c_int = 104;
2332+
23252333
// include/uapi/linux/mman.h
23262334
pub const MAP_SHARED_VALIDATE: ::c_int = 0x3;
23272335

0 commit comments

Comments
 (0)