Skip to content

Commit 1faa23d

Browse files
SteveLauCJohnTitor
authored andcommitted
feat: IP_RECVTTL/IPV6_RECVHOPLIMIT for FreeBSD/DragonFly
1 parent b31af9e commit 1faa23d

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

libc-test/semver/dragonfly.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ IPV6_DONTFRAG
501501
IP_HDRINCL
502502
IP_RECVDSTADDR
503503
IP_RECVIF
504+
IP_RECVTTL
504505
IP_SENDSRCADDR
505506
IP_TOS
506507
ITIMER_PROF
@@ -1592,3 +1593,4 @@ xucred
15921593
eaccess
15931594
dirname
15941595
basename
1596+
IPV6_RECVHOPLIMIT

libc-test/semver/freebsd.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ IP_RECVIF
576576
IP_RECVORIGDSTADDR
577577
IP_DONTFRAG
578578
IP_RECVTOS
579+
IP_RECVTTL
579580
IP_RSS_LISTEN_BUCKET
580581
IP_SENDSRCADDR
581582
IP_TOS
@@ -2251,3 +2252,4 @@ closefrom
22512252
close_range
22522253
eventfd_read
22532254
eventfd_write
2255+
IPV6_RECVHOPLIMIT

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,8 @@ pub const IP_SENDSRCADDR: ::c_int = IP_RECVDSTADDR;
970970
pub const IP_ADD_MEMBERSHIP: ::c_int = 12;
971971
pub const IP_DROP_MEMBERSHIP: ::c_int = 13;
972972
pub const IP_RECVIF: ::c_int = 20;
973+
pub const IP_RECVTTL: ::c_int = 65;
974+
pub const IPV6_RECVHOPLIMIT: ::c_int = 37;
973975
pub const IPV6_JOIN_GROUP: ::c_int = 12;
974976
pub const IPV6_LEAVE_GROUP: ::c_int = 13;
975977
pub const IPV6_CHECKSUM: ::c_int = 26;

0 commit comments

Comments
 (0)