Crate netlink

Crate netlink 

Source
Expand description

An implementation of Linux’s Netlink API for Fuchsia.

Netlink is a socket-based API provided by Linux that user space applications can use to interact with the kernel. The API is split up into several protocol families each offering different functionality. This crate targets the implementation of families related to networking.

Modules§

interfaces
A module for managing RTM_LINK and RTM_ADDR information by generating RTM_LINK and RTM_ADDR Netlink messages based on events received from Netstack’s interface watcher.
messaging
A module for managing message passing between Netlink and its clients.
multicast_groups
A module for managing Netlink multicast group memberships.
protocol_family
A module for managing protocol-specific aspects of Netlink.
routes
A module for managing RTM_ROUTE information by receiving RTM_ROUTE Netlink messages and maintaining route table state from Netstack.

Structs§

Errno
Represents a Error number, aka errno.
Netlink
The implementation of the Netlink protocol suite.
NetlinkWorkerDiscoverableProtocols
All of the protocols that the netlink worker connects to.
NetlinkWorkerParams
Parameters used to start the Netlink asynchronous worker.

Enums§

NewClientError
The possible error types when instantiating a new client.
SysctlError
The possible error types when trying to access a sysctl.
SysctlInterfaceSelector
Selects the interface for the sysctl.

Constants§

NETLINK_LOG_TAG
The tag added to all logs generated by this crate.

Functions§

run_netlink_worker
The worker encompassing all asynchronous Netlink work.
run_netlink_worker_with_protocols
Same as run_netlink_worker(), but allows to pass custom NetlinkWorkerDiscoverableProtocols.