Skip to content

Commit 5d2c3a4

Browse files
committed
Auto merge of #2200 - aym-v:aym/expose-tos-and-recv-tos-fuschia, r=Amanieu
fuschia: add IP_TOS and IP_RECVTOS APIs Needed to enable fuschia support on rust-lang/socket2#224 See [the fuschia header](https://cs.opensource.google/fuchsia/fuchsia/+/master:zircon/third_party/ulib/musl/include/netinet/in.h;l=181;bpv=1;bpt=1) for reference
2 parents 392d28c + 9458a0e commit 5d2c3a4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

libc-test/semver/fuchsia.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,8 @@ IPPROTO_UDPLITE
372372
IPV6_ADD_MEMBERSHIP
373373
IPV6_DROP_MEMBERSHIP
374374
IP_FREEBIND
375+
IP_TOS
376+
IP_RECVTOS
375377
IP_HDRINCL
376378
IP_TRANSPARENT
377379
ITIMER_PROF

src/fuchsia/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1768,8 +1768,10 @@ pub const SCM_TIMESTAMP: ::c_int = SO_TIMESTAMP;
17681768
pub const SOCK_RAW: ::c_int = 3;
17691769
pub const SOCK_RDM: ::c_int = 4;
17701770

1771+
pub const IP_TOS: ::c_int = 1;
17711772
pub const IP_TTL: ::c_int = 2;
17721773
pub const IP_HDRINCL: ::c_int = 3;
1774+
pub const IP_RECVTOS: ::c_int = 13;
17731775
pub const IP_FREEBIND: ::c_int = 15;
17741776
pub const IP_TRANSPARENT: ::c_int = 19;
17751777
pub const IP_MULTICAST_IF: ::c_int = 32;

0 commit comments

Comments
 (0)