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.
- Netlink
Worker Discoverable Protocols - All of the protocols that the netlink worker connects to.
- Netlink
Worker Params - Parameters used to start the Netlink asynchronous worker.
Enums§
- NewClient
Error - The possible error types when instantiating a new client.
- Sysctl
Error - The possible error types when trying to access a sysctl.
- Sysctl
Interface Selector - 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 customNetlinkWorkerDiscoverableProtocols.