Skip to content

Commit a1ccd0d

Browse files
committedFeb 17, 2024
redox add new netinet constants
1 parent f5c4427 commit a1ccd0d

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-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

+12
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,18 @@ 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_IP: ::c_int = 0;
591+
pub const IPPROTO_ICMP: ::c_int = 1;
592+
pub const IPPROTO_IGMP: ::c_int = 2;
593+
pub const IPPROTO_TCP: ::c_int = 6;
594+
pub const IPPROTO_PUP: ::c_int = 12;
595+
pub const IPPROTO_UDP: ::c_int = 17;
596+
pub const IPPROTO_IDP: ::c_int = 22;
597+
pub const IPPROTO_IPV6: ::c_int = 41;
588598
pub const IPPROTO_RAW: ::c_int = 255;
599+
pub const IPPROTO_MAX: ::c_int = 255;
589600
// }
590601

591602
// netinet/tcp.h
@@ -810,6 +821,7 @@ pub const SO_PROTOCOL: ::c_int = 38;
810821
pub const SO_DOMAIN: ::c_int = 39;
811822
pub const SOCK_STREAM: ::c_int = 1;
812823
pub const SOCK_DGRAM: ::c_int = 2;
824+
pub const SOCK_RAW: ::c_int = 3;
813825
pub const SOCK_NONBLOCK: ::c_int = 0o4_000;
814826
pub const SOCK_CLOEXEC: ::c_int = 0o2_000_000;
815827
pub const SOCK_SEQPACKET: ::c_int = 5;

0 commit comments

Comments
 (0)