Skip to content

Commit a43bdc3

Browse files
hulthetgross35
authored andcommitted
Export UDP socket option consts on Android
1 parent 412ee53 commit a43bdc3

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
@@ -1289,6 +1289,15 @@ pub const SOL_ATALK: c_int = 258;
12891289
pub const SOL_NETROM: c_int = 259;
12901290
pub const SOL_ROSE: c_int = 260;
12911291

1292+
/* UDP socket options */
1293+
// include/uapi/linux/udp.h
1294+
pub const UDP_CORK: c_int = 1;
1295+
pub const UDP_ENCAP: c_int = 100;
1296+
pub const UDP_NO_CHECK6_TX: c_int = 101;
1297+
pub const UDP_NO_CHECK6_RX: c_int = 102;
1298+
pub const UDP_SEGMENT: c_int = 103;
1299+
pub const UDP_GRO: c_int = 104;
1300+
12921301
/* DCCP socket options */
12931302
pub const DCCP_SOCKOPT_PACKET_SIZE: c_int = 1;
12941303
pub const DCCP_SOCKOPT_SERVICE: c_int = 2;

0 commit comments

Comments
 (0)