Crate rtnetlink[][src]

Modules

constants

Structs

AddressBuffer
AddressCacheInfo
AddressHeader
AddressMessage
DefaultNla
ErrorBuffer
ErrorMessage
LinkBuffer
LinkFlags
LinkHeader

High level representation of RTM_GETLINK, RTM_SETLINK, RTM_NEWLINK and RTM_DELLING messages headers.

LinkIcmp6Stats
LinkInet6CacheInfo
LinkInet6DevConf
LinkInet6Stats
LinkInetDevConf
LinkMap
LinkMessage
LinkStats
NetlinkBuffer

A raw Netlink buffer that provides getters and setter for the various header fields, and to retrieve the payloads.

NetlinkFlags

Represent the flags field in a netlink packet header.

NetlinkHeader

A Netlink header representation. For more details about the meaning of the fields, see man 7 netlink

NetlinkMessage
NlaBuffer
NlasIterator

An iterator that iteratates over nlas without decoding them. This is useful when looking for specific nlas.

RouteBuffer
RouteCacheInfo
RouteFlags
RouteHeader
RouteMessage
RouteMfcStats

Enums

AddressNla
Error

The error type for the netlink packet parser

LinkAfInet6Nla
LinkAfInetNla
LinkAfSpecNla
LinkInfo
LinkInfoBridge
LinkInfoData
LinkInfoKind
LinkInfoVlan
LinkLayerType
LinkNla
LinkState
RouteKind

Route type

RouteMetricsNla
RouteNla
RouteProtocol

Route origin

RouteScope

Distance to the destination

RouteTable

Routing table

RtnlMessage

Constants

ADDRESS_HEADER_LEN
LINK_HEADER_LEN
NETLINK_HEADER_LEN

Length of a Netlink packet header

ROUTE_HEADER_LEN

Traits

Emitable

A type that implements Emitable can be serialized.

Nla
Parseable

A Parseable type can be used to deserialize data into the target type T for which it is implemented.

Type Definitions

AckMessage
LinkStats32
LinkStats64
Result