Skip to content

Commit fe51348

Browse files
author
Bryant Mairs
committed
Replace ip(v6)_mreq structs with libc equivalent
1 parent 18e746c commit fe51348

File tree

2 files changed

+4
-49
lines changed

2 files changed

+4
-49
lines changed

src/sys/socket/mod.rs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ use sys::uio::IoVec;
1212

1313
mod addr;
1414
mod ffi;
15-
mod multicast;
1615
pub mod sockopt;
1716

1817
/*
@@ -36,20 +35,16 @@ pub use ::sys::socket::addr::netlink::NetlinkAddr;
3635
pub use libc::{
3736
in_addr,
3837
in6_addr,
38+
ip_mreq,
39+
ipv6_mreq,
40+
sa_family_t,
3941
sockaddr,
4042
sockaddr_in,
4143
sockaddr_in6,
44+
sockaddr_storage,
4245
sockaddr_un,
43-
sa_family_t,
4446
};
4547

46-
pub use self::multicast::{
47-
ip_mreq,
48-
ipv6_mreq,
49-
};
50-
51-
pub use libc::sockaddr_storage;
52-
5348
/// These constants are used to specify the communication semantics
5449
/// when creating a socket with [`socket()`](fn.socket.html)
5550
#[derive(Clone, Copy, PartialEq, Eq, Debug)]

src/sys/socket/multicast.rs

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)