Skip to content

Commit bd8a43c

Browse files
committed
Auto merge of #21267 - danslapman: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 dcaeb6a + 89de692 commit bd8a43c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/liblibc/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -2207,10 +2207,10 @@ pub mod consts {
22072207
pub const IPPROTO_TCP: c_int = 6;
22082208
pub const IPPROTO_IP: c_int = 0;
22092209
pub const IPPROTO_IPV6: c_int = 41;
2210-
pub const IP_MULTICAST_TTL: c_int = 3;
2211-
pub const IP_MULTICAST_LOOP: c_int = 4;
2212-
pub const IP_ADD_MEMBERSHIP: c_int = 5;
2213-
pub const IP_DROP_MEMBERSHIP: c_int = 6;
2210+
pub const IP_MULTICAST_TTL: c_int = 10;
2211+
pub const IP_MULTICAST_LOOP: c_int = 11;
2212+
pub const IP_ADD_MEMBERSHIP: c_int = 12;
2213+
pub const IP_DROP_MEMBERSHIP: c_int = 13;
22142214
pub const IPV6_ADD_MEMBERSHIP: c_int = 5;
22152215
pub const IPV6_DROP_MEMBERSHIP: c_int = 6;
22162216
pub const IP_TTL: c_int = 4;

0 commit comments

Comments
 (0)