Skip to content

Commit 3d0b15b

Browse files
authored
Merge pull request #3586 from devnexen/redox_upd3
redox add new netinet constants
2 parents 43ad680 + 50bbf3a commit 3d0b15b

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,6 +96,17 @@ EUSERS
9696
EXFULL
9797
FIONREAD
9898
IMAXBEL
99+
IP_RECVTOS
100+
IP_TOS
101+
IPPROTO_ICMP
102+
IPPROTO_IDP
103+
IPPROTO_IGMP
104+
IPPROTO_IP
105+
IPPROTO_IPV6
106+
IPPROTO_MAX
107+
IPPROTO_PUP
108+
IPPROTO_TCP
109+
IPPROTO_UDP
99110
IPV6_ADD_MEMBERSHIP
100111
IPV6_DROP_MEMBERSHIP
101112
IUCLC
@@ -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)