Enum Protocol

Source
pub enum Protocol {
Show 21 variants Route = 0, Unused = 1, UserSock = 2, Firewall = 3, SockDiag = 4, NfLog = 5, Xfrm = 6, SELinux = 7, ISCSI = 8, Audit = 9, FibLookup = 10, Connector = 11, Netfilter = 12, Ip6Fw = 13, Decnet = 14, KObjectUevent = 15, Generic = 16, ScsiTransport = 18, Ecryptfs = 19, Rdma = 20, Crypto = 21,
}
Expand description

List of netlink protocols

Variants§

§

Route = 0

Receives routing and link updates and may be used to modify the routing tables (both IPv4 and IPv6), IP addresses, link parameters, neighbor setups, queueing disciplines, traffic classes and packet classifiers (see rtnetlink(7)).

§

Unused = 1

§

UserSock = 2

Reserved for user-mode socket protocols.

§

Firewall = 3

Transport IPv4 packets from netfilter to user space. Used by ip_queue kernel module. After a long period of being declared obsolete (in favor of the more advanced nfnetlink_queue feature), it was removed in Linux 3.5.

§

SockDiag = 4

Query information about sockets of various protocol families from the kernel (see sock_diag(7)).

§

NfLog = 5

Netfilter/iptables ULOG.

§

Xfrm = 6

IPsec.

§

SELinux = 7

SELinux event notifications.

§

ISCSI = 8

Open-iSCSI.

§

Audit = 9

Auditing.

§

FibLookup = 10

Access to FIB lookup from user space.

§

Connector = 11

Kernel connector. See Documentation/connector/* in the Linux kernel source tree for further information.

§

Netfilter = 12

Netfilter subsystem.

§

Ip6Fw = 13

Transport IPv6 packets from netfilter to user space. Used by ip6_queue kernel module.

§

Decnet = 14

DECnet routing messages.

§

KObjectUevent = 15

Kernel messages to user space.

§

Generic = 16

Generic netlink family for simplified netlink usage.

§

ScsiTransport = 18

SCSI transpots

§

Ecryptfs = 19

§

Rdma = 20

Infiniband RDMA.

§

Crypto = 21

Netlink interface to request information about ciphers registered with the kernel crypto API as well as allow configuration of the kernel crypto API.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.