summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill <will@glozer.net>2020-05-01 14:29:46 +0900
committerWill <will@glozer.net>2020-05-01 14:29:46 +0900
commita87514135645c4104c62a9c8028c657ae7dcc48e (patch)
tree12f87b7dc3b93a6e763da4e55c6c60c0d56ed229
parent32184239e093bf205baed1e91395e3b3f2dfe82a (diff)
downloadrust-libc-a87514135645c4104c62a9c8028c657ae7dcc48e.tar.gz
define IPV6_CHECKSUM for freebsd and macos
-rw-r--r--src/unix/bsd/apple/mod.rs1
-rw-r--r--src/unix/bsd/freebsdlike/mod.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs
index 485cf17f78..2d70d713ea 100644
--- a/src/unix/bsd/apple/mod.rs
+++ b/src/unix/bsd/apple/mod.rs
@@ -2249,6 +2249,7 @@ pub const IP_PKTINFO: ::c_int = 26;
pub const IP_RECVTOS: ::c_int = 27;
pub const IPV6_JOIN_GROUP: ::c_int = 12;
pub const IPV6_LEAVE_GROUP: ::c_int = 13;
+pub const IPV6_CHECKSUM: ::c_int = 26;
pub const IPV6_RECVTCLASS: ::c_int = 35;
pub const IPV6_TCLASS: ::c_int = 36;
pub const IPV6_PKTINFO: ::c_int = 46;
diff --git a/src/unix/bsd/freebsdlike/mod.rs b/src/unix/bsd/freebsdlike/mod.rs
index b10f60f18b..e2281314d4 100644
--- a/src/unix/bsd/freebsdlike/mod.rs
+++ b/src/unix/bsd/freebsdlike/mod.rs
@@ -757,6 +757,7 @@ pub const IP_DROP_MEMBERSHIP: ::c_int = 13;
pub const IP_RECVIF: ::c_int = 20;
pub const IPV6_JOIN_GROUP: ::c_int = 12;
pub const IPV6_LEAVE_GROUP: ::c_int = 13;
+pub const IPV6_CHECKSUM: ::c_int = 26;
pub const IPV6_RECVPKTINFO: ::c_int = 36;
pub const IPV6_PKTINFO: ::c_int = 46;
pub const IPV6_RECVTCLASS: ::c_int = 57;