Skip to content

Commit 2c9abc2

Browse files
committed
Export UDP_SEGMENT and UDP_GRO consts on Android
1 parent 7f3d696 commit 2c9abc2

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

libc-test/semver/android.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3096,6 +3096,8 @@ TUN_F_USO4
30963096
TUN_F_USO6
30973097
TUN_PKT_STRIP
30983098
TUN_TX_TIMESTAMP
3099+
UDP_GRO
3100+
UDP_SEGMENT
30993101
UINPUT_MAX_NAME_SIZE
31003102
UINPUT_VERSION
31013103
UIO_MAXIOV

src/unix/linux_like/android/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,6 +1289,11 @@ 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_SEGMENT: c_int = 103;
1295+
pub const UDP_GRO: c_int = 104;
1296+
12921297
/* DCCP socket options */
12931298
pub const DCCP_SOCKOPT_PACKET_SIZE: c_int = 1;
12941299
pub const DCCP_SOCKOPT_SERVICE: c_int = 2;

0 commit comments

Comments
 (0)