Skip to content

Commit a8a817a

Browse files
committed
Auto merge of #1252 - vi:ORIGDSTADDR, r=gnzlbg
Add IP[V6]_[RECV]ORIGDSTADDR for Linux and Android
2 parents 810b8c6 + 4d0694c commit a8a817a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/unix/notbsd/android/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,6 +1266,10 @@ pub const SFD_NONBLOCK: ::c_int = O_NONBLOCK;
12661266
pub const SOCK_NONBLOCK: ::c_int = O_NONBLOCK;
12671267

12681268
pub const SO_ORIGINAL_DST: ::c_int = 80;
1269+
pub const IP_ORIGDSTADDR : ::c_int = 20;
1270+
pub const IP_RECVORIGDSTADDR : ::c_int = IP_ORIGDSTADDR;
1271+
pub const IPV6_ORIGDSTADDR : ::c_int = 74;
1272+
pub const IPV6_RECVORIGDSTADDR : ::c_int = IPV6_ORIGDSTADDR;
12691273
pub const IUTF8: ::tcflag_t = 0x00004000;
12701274
pub const CMSPAR: ::tcflag_t = 0o10000000000;
12711275
pub const O_TMPFILE: ::c_int = 0o20000000 | O_DIRECTORY;

src/unix/notbsd/linux/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,6 +1331,10 @@ pub const FALLOC_FL_UNSHARE_RANGE: ::c_int = 0x40;
13311331
pub const ENOATTR: ::c_int = ::ENODATA;
13321332

13331333
pub const SO_ORIGINAL_DST: ::c_int = 80;
1334+
pub const IP_ORIGDSTADDR : ::c_int = 20;
1335+
pub const IP_RECVORIGDSTADDR : ::c_int = IP_ORIGDSTADDR;
1336+
pub const IPV6_ORIGDSTADDR : ::c_int = 74;
1337+
pub const IPV6_RECVORIGDSTADDR : ::c_int = IPV6_ORIGDSTADDR;
13341338
pub const IUTF8: ::tcflag_t = 0x00004000;
13351339
pub const CMSPAR: ::tcflag_t = 0o10000000000;
13361340

0 commit comments

Comments
 (0)