Skip to content

Commit 122ca90

Browse files
committed
Auto merge of #1578 - fatpelt:master, r=gnzlbg
- add ssm struct and setsockopt constants Signed-off-by: patrick felt <patrick.felt@sling.com>
2 parents 7f33bcb + 2cb9eec commit 122ca90

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

libc-test/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2481,6 +2481,7 @@ fn test_linux(target: &str) {
24812481
true
24822482
}
24832483
"ipv6_mreq"
2484+
| "ip_mreq_source"
24842485
| "sockaddr_in6"
24852486
| "sockaddr_ll"
24862487
| "in_pktinfo"

src/unix/linux_like/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ s! {
2424
pub imr_interface: in_addr,
2525
}
2626

27+
pub struct ip_mreq_source {
28+
pub imr_multiaddr: in_addr,
29+
pub imr_interface: in_addr,
30+
pub imr_sourceaddr: in_addr,
31+
}
32+
2733
pub struct sockaddr {
2834
pub sa_family: sa_family_t,
2935
pub sa_data: [::c_char; 14],
@@ -810,6 +816,8 @@ pub const IP_RECVTOS: ::c_int = 13;
810816
pub const IP_RECVERR: ::c_int = 11;
811817
pub const IP_ADD_MEMBERSHIP: ::c_int = 35;
812818
pub const IP_DROP_MEMBERSHIP: ::c_int = 36;
819+
pub const IP_ADD_SOURCE_MEMBERSHIP: ::c_int = 39;
820+
pub const IP_DROP_SOURCE_MEMBERSHIP: ::c_int = 40;
813821
pub const IP_TRANSPARENT: ::c_int = 19;
814822
pub const IPV6_UNICAST_HOPS: ::c_int = 16;
815823
pub const IPV6_MULTICAST_IF: ::c_int = 17;

0 commit comments

Comments
 (0)