Skip to content

Commit f635588

Browse files
hulthetgross35
authored andcommitted
Export UDP socket option consts on Android
(backport <#4619>) (cherry picked from commit a43bdc3)
1 parent 7085e0f commit f635588

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

libc-test/semver/android.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3096,6 +3096,12 @@ TUN_F_USO4
30963096
TUN_F_USO6
30973097
TUN_PKT_STRIP
30983098
TUN_TX_TIMESTAMP
3099+
UDP_CORK
3100+
UDP_ENCAP
3101+
UDP_GRO
3102+
UDP_NO_CHECK6_RX
3103+
UDP_NO_CHECK6_TX
3104+
UDP_SEGMENT
30993105
UINPUT_MAX_NAME_SIZE
31003106
UINPUT_VERSION
31013107
UIO_MAXIOV

src/unix/linux_like/android/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,6 +1323,15 @@ pub const SOL_ATALK: c_int = 258;
13231323
pub const SOL_NETROM: c_int = 259;
13241324
pub const SOL_ROSE: c_int = 260;
13251325

1326+
/* UDP socket options */
1327+
// include/uapi/linux/udp.h
1328+
pub const UDP_CORK: c_int = 1;
1329+
pub const UDP_ENCAP: c_int = 100;
1330+
pub const UDP_NO_CHECK6_TX: c_int = 101;
1331+
pub const UDP_NO_CHECK6_RX: c_int = 102;
1332+
pub const UDP_SEGMENT: c_int = 103;
1333+
pub const UDP_GRO: c_int = 104;
1334+
13261335
/* DCCP socket options */
13271336
pub const DCCP_SOCKOPT_PACKET_SIZE: c_int = 1;
13281337
pub const DCCP_SOCKOPT_SERVICE: c_int = 2;

0 commit comments

Comments
 (0)