Skip to content

Commit 065b22c

Browse files
committed
Auto merge of #2168 - mullvad:add-ip-bound-if, r=JohnTitor
Add IP_BOUND_IF for Apple To allow for binding a socket to an interface or querying a socket to see which interface it's bound to, `IP_BOUND_IF` must be used - I've added it to `libc`. I've added it as an apple-wide constant (both for macOS and iOS), but I'm not sure if it's the same value on iOS.
2 parents d3468b2 + 9434d79 commit 065b22c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libc-test/semver/apple.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@ IPV6_RECVPKTINFO
487487
IPV6_RECVTCLASS
488488
IPV6_TCLASS
489489
IP_HDRINCL
490+
IP_BOUND_IF
490491
IP_PKTINFO
491492
IP_RECVDSTADDR
492493
IP_RECVIF

src/unix/bsd/apple/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2432,6 +2432,7 @@ pub const IP_RECVDSTADDR: ::c_int = 7;
24322432
pub const IP_ADD_MEMBERSHIP: ::c_int = 12;
24332433
pub const IP_DROP_MEMBERSHIP: ::c_int = 13;
24342434
pub const IP_RECVIF: ::c_int = 20;
2435+
pub const IP_BOUND_IF: ::c_int = 25;
24352436
pub const IP_PKTINFO: ::c_int = 26;
24362437
pub const IP_RECVTOS: ::c_int = 27;
24372438
pub const IPV6_JOIN_GROUP: ::c_int = 12;

0 commit comments

Comments
 (0)