Skip to content

Commit 263c191

Browse files
authored
Merge pull request rust-lang#3543 from SteveLauC/socket_flags_freebsd
feat: IPV6_RECVHOPLIMIT & IP_RECVTTL for FreeBSD
2 parents aff5a87 + a839ecc commit 263c191

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

libc-test/semver/freebsd.txt

+2
Original file line numberDiff line numberDiff line change
@@ -2251,3 +2251,5 @@ closefrom
22512251
close_range
22522252
eventfd_read
22532253
eventfd_write
2254+
IP_RECVTTL
2255+
IPV6_RECVHOPLIMIT

src/unix/bsd/freebsdlike/freebsd/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -3609,6 +3609,8 @@ pub const IP_RSS_LISTEN_BUCKET: ::c_int = 26;
36093609
pub const IP_ORIGDSTADDR: ::c_int = 27;
36103610
pub const IP_RECVORIGDSTADDR: ::c_int = IP_ORIGDSTADDR;
36113611

3612+
pub const IP_RECVTTL: ::c_int = 65;
3613+
pub const IPV6_RECVHOPLIMIT: ::c_int = 37;
36123614
pub const IP_DONTFRAG: ::c_int = 67;
36133615
pub const IP_RECVTOS: ::c_int = 68;
36143616

0 commit comments

Comments
 (0)