Skip to content

Commit 7bab394

Browse files
committed
Add IPv6 CMSG options to Fuchsia
1 parent 4042ce2 commit 7bab394

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

libc-test/semver/fuchsia.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,9 @@ IPPROTO_TP
377377
IPPROTO_UDPLITE
378378
IPV6_ADD_MEMBERSHIP
379379
IPV6_DROP_MEMBERSHIP
380+
IPV6_RECVPKTINFO
381+
IPV6_RECVTCLASS
382+
IPV6_TCLASS
380383
IP_FREEBIND
381384
IP_TOS
382385
IP_RECVTOS
@@ -1228,6 +1231,7 @@ idtype_t
12281231
if_freenameindex
12291232
if_nameindex
12301233
ifaddrs
1234+
in6_pktinfo
12311235
initgroups
12321236
ino64_t
12331237
input_absinfo

src/fuchsia/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,11 @@ s_no_extra_traits! {
974974
pub sigev_notify_attributes: *mut pthread_attr_t,
975975
pub __pad: [::c_char; 56 - 3 * 8 /* 8 == sizeof(long) */],
976976
}
977+
978+
pub struct in6_pktinfo {
979+
pub ipi6_addr: ::in6_addr,
980+
pub ipi6_ifindex: ::c_int,
981+
}
977982
}
978983

979984
cfg_if! {
@@ -1788,6 +1793,9 @@ pub const IPV6_MULTICAST_LOOP: ::c_int = 19;
17881793
pub const IPV6_ADD_MEMBERSHIP: ::c_int = 20;
17891794
pub const IPV6_DROP_MEMBERSHIP: ::c_int = 21;
17901795
pub const IPV6_V6ONLY: ::c_int = 26;
1796+
pub const IPV6_RECVPKTINFO: ::c_int = 49;
1797+
pub const IPV6_RECVTCLASS: ::c_int = 66;
1798+
pub const IPV6_TCLASS: ::c_int = 67;
17911799

17921800
pub const TCP_NODELAY: ::c_int = 1;
17931801
pub const TCP_MAXSEG: ::c_int = 2;

0 commit comments

Comments
 (0)