Skip to content

Commit c899a79

Browse files
committed
Auto merge of #1581 - baloo:baloo/linux/ipv6, r=gnzlbg
adds IPV6_ consts for linux
2 parents 122ca90 + 0eb1462 commit c899a79

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

src/unix/linux_like/android/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1490,11 +1490,11 @@ pub const IP_ORIGDSTADDR: ::c_int = 20;
14901490
pub const IP_RECVORIGDSTADDR: ::c_int = IP_ORIGDSTADDR;
14911491
pub const IPV6_ORIGDSTADDR: ::c_int = 74;
14921492
pub const IPV6_RECVORIGDSTADDR: ::c_int = IPV6_ORIGDSTADDR;
1493-
pub const IPV6_FLOWINFO: ::c_int = 11;
14941493
pub const IPV6_FLOWLABEL_MGR: ::c_int = 32;
14951494
pub const IPV6_FLOWINFO_SEND: ::c_int = 33;
14961495
pub const IPV6_FLOWINFO_FLOWLABEL: ::c_int = 0x000fffff;
14971496
pub const IPV6_FLOWINFO_PRIORITY: ::c_int = 0x0ff00000;
1497+
14981498
pub const IUTF8: ::tcflag_t = 0x00004000;
14991499
pub const CMSPAR: ::tcflag_t = 0o10000000000;
15001500
pub const O_TMPFILE: ::c_int = 0o20000000 | O_DIRECTORY;

src/unix/linux_like/linux/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1562,11 +1562,11 @@ pub const IP_ORIGDSTADDR: ::c_int = 20;
15621562
pub const IP_RECVORIGDSTADDR: ::c_int = IP_ORIGDSTADDR;
15631563
pub const IPV6_ORIGDSTADDR: ::c_int = 74;
15641564
pub const IPV6_RECVORIGDSTADDR: ::c_int = IPV6_ORIGDSTADDR;
1565-
pub const IPV6_FLOWINFO: ::c_int = 11;
15661565
pub const IPV6_FLOWLABEL_MGR: ::c_int = 32;
15671566
pub const IPV6_FLOWINFO_SEND: ::c_int = 33;
15681567
pub const IPV6_FLOWINFO_FLOWLABEL: ::c_int = 0x000fffff;
15691568
pub const IPV6_FLOWINFO_PRIORITY: ::c_int = 0x0ff00000;
1569+
15701570
pub const IUTF8: ::tcflag_t = 0x00004000;
15711571
pub const CMSPAR: ::tcflag_t = 0o10000000000;
15721572

src/unix/linux_like/mod.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,13 +819,29 @@ pub const IP_DROP_MEMBERSHIP: ::c_int = 36;
819819
pub const IP_ADD_SOURCE_MEMBERSHIP: ::c_int = 39;
820820
pub const IP_DROP_SOURCE_MEMBERSHIP: ::c_int = 40;
821821
pub const IP_TRANSPARENT: ::c_int = 19;
822+
pub const IPV6_ADDRFORM: ::c_int = 1;
823+
pub const IPV6_2292PKTINFO: ::c_int = 2;
824+
pub const IPV6_2292HOPOPTS: ::c_int = 3;
825+
pub const IPV6_2292DSTOPTS: ::c_int = 4;
826+
pub const IPV6_2292RTHDR: ::c_int = 5;
827+
pub const IPV6_2292PKTOPTIONS: ::c_int = 6;
828+
pub const IPV6_CHECKSUM: ::c_int = 7;
829+
pub const IPV6_2292HOPLIMIT: ::c_int = 8;
830+
pub const IPV6_NEXTHOP: ::c_int = 9;
831+
pub const IPV6_FLOWINFO: ::c_int = 11;
822832
pub const IPV6_UNICAST_HOPS: ::c_int = 16;
823833
pub const IPV6_MULTICAST_IF: ::c_int = 17;
824834
pub const IPV6_MULTICAST_HOPS: ::c_int = 18;
825835
pub const IPV6_MULTICAST_LOOP: ::c_int = 19;
826836
pub const IPV6_ADD_MEMBERSHIP: ::c_int = 20;
827837
pub const IPV6_DROP_MEMBERSHIP: ::c_int = 21;
838+
pub const IPV6_ROUTER_ALERT: ::c_int = 22;
839+
pub const IPV6_MTU_DISCOVER: ::c_int = 23;
840+
pub const IPV6_MTU: ::c_int = 24;
841+
pub const IPV6_RECVERR: ::c_int = 25;
828842
pub const IPV6_V6ONLY: ::c_int = 26;
843+
pub const IPV6_JOIN_ANYCAST: ::c_int = 27;
844+
pub const IPV6_LEAVE_ANYCAST: ::c_int = 28;
829845
pub const IPV6_RECVPKTINFO: ::c_int = 49;
830846
pub const IPV6_PKTINFO: ::c_int = 50;
831847
pub const IPV6_RECVTCLASS: ::c_int = 66;

0 commit comments

Comments
 (0)