Skip to content

Commit 917a20c

Browse files
committed
Move IPV6_FLOW... constants to the linux and android sub-modules
1 parent 0a9511e commit 917a20c

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

src/unix/notbsd/android/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,6 +1363,11 @@ pub const IP_ORIGDSTADDR : ::c_int = 20;
13631363
pub const IP_RECVORIGDSTADDR : ::c_int = IP_ORIGDSTADDR;
13641364
pub const IPV6_ORIGDSTADDR : ::c_int = 74;
13651365
pub const IPV6_RECVORIGDSTADDR : ::c_int = IPV6_ORIGDSTADDR;
1366+
pub const IPV6_FLOWINFO: ::c_int = 11;
1367+
pub const IPV6_FLOWLABEL_MGR: ::c_int = 32;
1368+
pub const IPV6_FLOWINFO_SEND: ::c_int = 33;
1369+
pub const IPV6_FLOWINFO_FLOWLABEL: ::c_int = 0x000fffff;
1370+
pub const IPV6_FLOWINFO_PRIORITY: ::c_int = 0x0ff00000;
13661371
pub const IUTF8: ::tcflag_t = 0x00004000;
13671372
pub const CMSPAR: ::tcflag_t = 0o10000000000;
13681373
pub const O_TMPFILE: ::c_int = 0o20000000 | O_DIRECTORY;

src/unix/notbsd/linux/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,6 +1416,11 @@ pub const IP_ORIGDSTADDR : ::c_int = 20;
14161416
pub const IP_RECVORIGDSTADDR : ::c_int = IP_ORIGDSTADDR;
14171417
pub const IPV6_ORIGDSTADDR : ::c_int = 74;
14181418
pub const IPV6_RECVORIGDSTADDR : ::c_int = IPV6_ORIGDSTADDR;
1419+
pub const IPV6_FLOWINFO: ::c_int = 11;
1420+
pub const IPV6_FLOWLABEL_MGR: ::c_int = 32;
1421+
pub const IPV6_FLOWINFO_SEND: ::c_int = 33;
1422+
pub const IPV6_FLOWINFO_FLOWLABEL: ::c_int = 0x000fffff;
1423+
pub const IPV6_FLOWINFO_PRIORITY: ::c_int = 0x0ff00000;
14191424
pub const IUTF8: ::tcflag_t = 0x00004000;
14201425
pub const CMSPAR: ::tcflag_t = 0o10000000000;
14211426

src/unix/notbsd/mod.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -800,24 +800,18 @@ pub const IP_RECVTOS: ::c_int = 13;
800800
pub const IP_ADD_MEMBERSHIP: ::c_int = 35;
801801
pub const IP_DROP_MEMBERSHIP: ::c_int = 36;
802802
pub const IP_TRANSPARENT: ::c_int = 19;
803-
pub const IPV6_FLOWINFO: ::c_int = 11;
804803
pub const IPV6_UNICAST_HOPS: ::c_int = 16;
805804
pub const IPV6_MULTICAST_IF: ::c_int = 17;
806805
pub const IPV6_MULTICAST_HOPS: ::c_int = 18;
807806
pub const IPV6_MULTICAST_LOOP: ::c_int = 19;
808807
pub const IPV6_ADD_MEMBERSHIP: ::c_int = 20;
809808
pub const IPV6_DROP_MEMBERSHIP: ::c_int = 21;
810809
pub const IPV6_V6ONLY: ::c_int = 26;
811-
pub const IPV6_FLOWLABEL_MGR: ::c_int = 32;
812-
pub const IPV6_FLOWINFO_SEND: ::c_int = 33;
813810
pub const IPV6_RECVPKTINFO: ::c_int = 49;
814811
pub const IPV6_PKTINFO: ::c_int = 50;
815812
pub const IPV6_RECVTCLASS: ::c_int = 66;
816813
pub const IPV6_TCLASS: ::c_int = 67;
817814

818-
pub const IPV6_FLOWINFO_FLOWLABEL: ::c_int = 0x000fffff;
819-
pub const IPV6_FLOWINFO_PRIORITY: ::c_int = 0x0ff00000;
820-
821815
pub const TCP_NODELAY: ::c_int = 1;
822816
pub const TCP_MAXSEG: ::c_int = 2;
823817
pub const TCP_CORK: ::c_int = 3;

0 commit comments

Comments
 (0)