Skip to content

Commit de5dd39

Browse files
authored
Remove netlink protocol constants that are actually socket options (#1336)
#1252
1 parent 33c0619 commit de5dd39

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

src/net/types.rs

-40
Original file line numberDiff line numberDiff line change
@@ -1110,46 +1110,6 @@ pub mod netlink {
11101110
/// `NETLINK_INET_DIAG`
11111111
#[cfg(linux_kernel)]
11121112
pub const INET_DIAG: Protocol = Protocol(new_raw_protocol(c::NETLINK_INET_DIAG as _));
1113-
/// `NETLINK_ADD_MEMBERSHIP`
1114-
#[cfg(linux_kernel)]
1115-
pub const ADD_MEMBERSHIP: Protocol = Protocol(new_raw_protocol(c::NETLINK_ADD_MEMBERSHIP as _));
1116-
/// `NETLINK_DROP_MEMBERSHIP`
1117-
#[cfg(linux_kernel)]
1118-
pub const DROP_MEMBERSHIP: Protocol =
1119-
Protocol(new_raw_protocol(c::NETLINK_DROP_MEMBERSHIP as _));
1120-
/// `NETLINK_PKTINFO`
1121-
#[cfg(linux_kernel)]
1122-
pub const PKTINFO: Protocol = Protocol(new_raw_protocol(c::NETLINK_PKTINFO as _));
1123-
/// `NETLINK_BROADCAST_ERROR`
1124-
#[cfg(linux_kernel)]
1125-
pub const BROADCAST_ERROR: Protocol =
1126-
Protocol(new_raw_protocol(c::NETLINK_BROADCAST_ERROR as _));
1127-
/// `NETLINK_NO_ENOBUFS`
1128-
#[cfg(linux_kernel)]
1129-
pub const NO_ENOBUFS: Protocol = Protocol(new_raw_protocol(c::NETLINK_NO_ENOBUFS as _));
1130-
/// `NETLINK_RX_RING`
1131-
#[cfg(linux_kernel)]
1132-
pub const RX_RING: Protocol = Protocol(new_raw_protocol(c::NETLINK_RX_RING as _));
1133-
/// `NETLINK_TX_RING`
1134-
#[cfg(linux_kernel)]
1135-
pub const TX_RING: Protocol = Protocol(new_raw_protocol(c::NETLINK_TX_RING as _));
1136-
/// `NETLINK_LISTEN_ALL_NSID`
1137-
#[cfg(linux_kernel)]
1138-
pub const LISTEN_ALL_NSID: Protocol =
1139-
Protocol(new_raw_protocol(c::NETLINK_LISTEN_ALL_NSID as _));
1140-
/// `NETLINK_LIST_MEMBERSHIPS`
1141-
#[cfg(linux_kernel)]
1142-
pub const LIST_MEMBERSHIPS: Protocol =
1143-
Protocol(new_raw_protocol(c::NETLINK_LIST_MEMBERSHIPS as _));
1144-
/// `NETLINK_CAP_ACK`
1145-
#[cfg(linux_kernel)]
1146-
pub const CAP_ACK: Protocol = Protocol(new_raw_protocol(c::NETLINK_CAP_ACK as _));
1147-
/// `NETLINK_EXT_ACK`
1148-
#[cfg(linux_kernel)]
1149-
pub const EXT_ACK: Protocol = Protocol(new_raw_protocol(c::NETLINK_EXT_ACK as _));
1150-
/// `NETLINK_GET_STRICT_CHK`
1151-
#[cfg(linux_kernel)]
1152-
pub const GET_STRICT_CHK: Protocol = Protocol(new_raw_protocol(c::NETLINK_GET_STRICT_CHK as _));
11531113

11541114
/// A Netlink socket address.
11551115
///

0 commit comments

Comments
 (0)