Skip to content

Commit 696a696

Browse files
committed
auto merge of #21267 : danslapman/rust/master, r=alexcrichton
This patch fixes IP_ADD_MEMBERSHIP problem described here: #20381 I've tested on my ProbeR project, everything seems ok.
2 parents 89c4e37 + 89de692 commit 696a696

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/liblibc/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2206,10 +2206,10 @@ pub mod consts {
22062206
pub const IPPROTO_TCP: c_int = 6;
22072207
pub const IPPROTO_IP: c_int = 0;
22082208
pub const IPPROTO_IPV6: c_int = 41;
2209-
pub const IP_MULTICAST_TTL: c_int = 3;
2210-
pub const IP_MULTICAST_LOOP: c_int = 4;
2211-
pub const IP_ADD_MEMBERSHIP: c_int = 5;
2212-
pub const IP_DROP_MEMBERSHIP: c_int = 6;
2209+
pub const IP_MULTICAST_TTL: c_int = 10;
2210+
pub const IP_MULTICAST_LOOP: c_int = 11;
2211+
pub const IP_ADD_MEMBERSHIP: c_int = 12;
2212+
pub const IP_DROP_MEMBERSHIP: c_int = 13;
22132213
pub const IPV6_ADD_MEMBERSHIP: c_int = 5;
22142214
pub const IPV6_DROP_MEMBERSHIP: c_int = 6;
22152215
pub const IP_TTL: c_int = 4;

0 commit comments

Comments
 (0)