Skip to content

Commit f8d641a

Browse files
taspelundJohnTitor
authored andcommitted
solarish: Add IP TTL and IPv6 Hop Limit consts
Adds: - IPV6_HOPLIMIT (illumos + solaris) - IPV6_MINHOPCOUNT (illumos) - IP_MINTTL (illumos) Signed-off-by: Trey Aspelund <trey@oxidecomputer.com>
1 parent d1795ee commit f8d641a

4 files changed

Lines changed: 8 additions & 0 deletions

File tree

libc-test/semver/illumos.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ F_DUP2FD_CLOEXEC
33
F_DUP2FD_CLOFORK
44
F_DUP3FD
55
F_DUPFD_CLOFORK
6+
IPV6_MINHOPCOUNT
7+
IP_MINTTL
68
MSG_CMSG_CLOEXEC
79
MSG_CMSG_CLOFORK
810
O_CLOFORK

libc-test/semver/solarish.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ AIO_CANCELED
33
AIO_NOTCANCELED
44
IPV6_BOUND_IF
55
IPV6_DONTFRAG
6+
IPV6_HOPLIMIT
67
IPV6_PKTINFO
78
IPV6_RECVTCLASS
89
IPV6_TCLASS

src/unix/solarish/illumos.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ pub const B4000000: crate::speed_t = 31;
207207
// sys/systeminfo.h
208208
pub const SI_ADDRESS_WIDTH: c_int = 520;
209209

210+
// netinet/in.h
211+
pub const IP_MINTTL: c_int = 0x1c;
212+
pub const IPV6_MINHOPCOUNT: c_int = 0x2f;
213+
210214
// sys/timerfd.h
211215
pub const TFD_CLOEXEC: i32 = 0o2000000;
212216
pub const TFD_NONBLOCK: i32 = 0o4000;

src/unix/solarish/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,7 @@ pub const IPV6_MULTICAST_IF: c_int = 0x6;
882882
pub const IPV6_MULTICAST_HOPS: c_int = 0x7;
883883
pub const IPV6_MULTICAST_LOOP: c_int = 0x8;
884884
pub const IPV6_PKTINFO: c_int = 0xb;
885+
pub const IPV6_HOPLIMIT: c_int = 0xc;
885886
pub const IPV6_RECVPKTINFO: c_int = 0x12;
886887
pub const IPV6_RECVTCLASS: c_int = 0x19;
887888
pub const IPV6_DONTFRAG: c_int = 0x21;

0 commit comments

Comments
 (0)