Skip to content

Commit ed7d40d

Browse files
devnexentgross35
authored andcommitted
redox add new netinet constants
(backport <rust-lang#3586>) (cherry picked from commit 50bbf3a)
1 parent 3b1de89 commit ed7d40d

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

libc-test/semver/redox.txt

+12
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,19 @@ EUSERS
9696
EXFULL
9797
FIONREAD
9898
IMAXBEL
99+
IPPROTO_ICMP
100+
IPPROTO_IDP
101+
IPPROTO_IGMP
102+
IPPROTO_IP
103+
IPPROTO_IPV6
104+
IPPROTO_MAX
105+
IPPROTO_PUP
106+
IPPROTO_TCP
107+
IPPROTO_UDP
99108
IPV6_ADD_MEMBERSHIP
100109
IPV6_DROP_MEMBERSHIP
110+
IP_RECVTOS
111+
IP_TOS
101112
IUCLC
102113
IUTF8
103114
MADV_DONTNEED
@@ -129,6 +140,7 @@ SIGPWR
129140
SIGSTKFLT
130141
SOCK_CLOEXEC
131142
SOCK_NONBLOCK
143+
SOCK_RAW
132144
SO_BSDCOMPAT
133145
SO_DOMAIN
134146
SO_NO_CHECK

src/unix/redox/mod.rs

+7
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,13 @@ pub const IP_MULTICAST_TTL: ::c_int = 33;
585585
pub const IP_MULTICAST_LOOP: ::c_int = 34;
586586
pub const IP_ADD_MEMBERSHIP: ::c_int = 35;
587587
pub const IP_DROP_MEMBERSHIP: ::c_int = 36;
588+
pub const IP_TOS: ::c_int = 1;
589+
pub const IP_RECVTOS: ::c_int = 2;
590+
pub const IPPROTO_IGMP: ::c_int = 2;
591+
pub const IPPROTO_PUP: ::c_int = 12;
592+
pub const IPPROTO_IDP: ::c_int = 22;
588593
pub const IPPROTO_RAW: ::c_int = 255;
594+
pub const IPPROTO_MAX: ::c_int = 255;
589595
// }
590596

591597
// netinet/tcp.h
@@ -810,6 +816,7 @@ pub const SO_PROTOCOL: ::c_int = 38;
810816
pub const SO_DOMAIN: ::c_int = 39;
811817
pub const SOCK_STREAM: ::c_int = 1;
812818
pub const SOCK_DGRAM: ::c_int = 2;
819+
pub const SOCK_RAW: ::c_int = 3;
813820
pub const SOCK_NONBLOCK: ::c_int = 0o4_000;
814821
pub const SOCK_CLOEXEC: ::c_int = 0o2_000_000;
815822
pub const SOCK_SEQPACKET: ::c_int = 5;

0 commit comments

Comments
 (0)