Skip to content

Commit

Permalink
Auto merge of #2823 - brunowonka:fuchsia, r=JohnTitor
Browse files Browse the repository at this point in the history
Add IPv6 CMSG options to Fuchsia
  • Loading branch information
bors committed Jun 21, 2022
2 parents f292633 + f2b3a45 commit 9dc2b72
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libc-test/semver/fuchsia.txt
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@ IPPROTO_TP
IPPROTO_UDPLITE
IPV6_ADD_MEMBERSHIP
IPV6_DROP_MEMBERSHIP
IPV6_RECVPKTINFO
IPV6_RECVTCLASS
IPV6_TCLASS
IP_FREEBIND
IP_TOS
IP_RECVTOS
Expand Down Expand Up @@ -1228,6 +1231,7 @@ idtype_t
if_freenameindex
if_nameindex
ifaddrs
in6_pktinfo
initgroups
ino64_t
input_absinfo
Expand Down
8 changes: 8 additions & 0 deletions src/fuchsia/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,11 @@ s! {
pub c_ispeed: ::speed_t,
pub c_ospeed: ::speed_t,
}

pub struct in6_pktinfo {
pub ipi6_addr: ::in6_addr,
pub ipi6_ifindex: ::c_uint,
}
}

s_no_extra_traits! {
Expand Down Expand Up @@ -1788,6 +1793,9 @@ pub const IPV6_MULTICAST_LOOP: ::c_int = 19;
pub const IPV6_ADD_MEMBERSHIP: ::c_int = 20;
pub const IPV6_DROP_MEMBERSHIP: ::c_int = 21;
pub const IPV6_V6ONLY: ::c_int = 26;
pub const IPV6_RECVPKTINFO: ::c_int = 49;
pub const IPV6_RECVTCLASS: ::c_int = 66;
pub const IPV6_TCLASS: ::c_int = 67;

pub const TCP_NODELAY: ::c_int = 1;
pub const TCP_MAXSEG: ::c_int = 2;
Expand Down

0 comments on commit 9dc2b72

Please sign in to comment.