Skip to content

Commit 948f2ab

Browse files
committed
Add BSD IP_RECVTOS definitions
1 parent 076edb2 commit 948f2ab

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,6 +1573,7 @@ pub const IP_HDRINCL: ::c_int = 2;
15731573
pub const IP_ADD_MEMBERSHIP: ::c_int = 12;
15741574
pub const IP_DROP_MEMBERSHIP: ::c_int = 13;
15751575
pub const IP_PKTINFO: ::c_int = 26;
1576+
pub const IP_RECVTOS: ::c_int = 27;
15761577
pub const IPV6_JOIN_GROUP: ::c_int = 12;
15771578
pub const IPV6_LEAVE_GROUP: ::c_int = 13;
15781579
pub const IPV6_RECVTCLASS: ::c_int = 35;

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ pub const IP_RECVDSTADDR: ::c_int = 7;
664664
pub const IP_SENDSRCADDR: ::c_int = IP_RECVDSTADDR;
665665
pub const IP_ADD_MEMBERSHIP: ::c_int = 12;
666666
pub const IP_DROP_MEMBERSHIP: ::c_int = 13;
667+
pub const IP_RECVTOS: ::c_int = 68;
667668
pub const IPV6_JOIN_GROUP: ::c_int = 12;
668669
pub const IPV6_LEAVE_GROUP: ::c_int = 13;
669670
pub const IPV6_RECVPKTINFO: ::c_int = 36;

0 commit comments

Comments
 (0)