Crate netstack3_core
source ·Expand description
A networking stack.
Modules
- Execution contexts.
- Common data structures.
- The device layer.
- Custom error types for the netstack.
- The Internet Protocol, versions 4 and 6.
- General-purpose socket utilities common to device layer and IP layer sockets.
- Useful synchronization primitives.
- The transport layer.
Macros
- Map an expression over either version of one or more addresses.
Structs
- Stack counters for export outside of core.
- The state associated with the network stack.
- A builder for
StackState
. - The synchronized context.
- The identifier for any timer event.
Enums
- A common type returned by functions that perform bounded amounts of work.
Traits
- A marker trait for all the types stored in core objects that are specified by bindings.
- Visitor for stack counters.
- A type representing an instant in time.
- The non-synchronized context for the stack.
- A context trait determining the types to be used for reference notifications.
Functions
- Set the IP address and subnet for a device.
- Delete an IP address on a device.
- Get all IPv4 and IPv6 address/subnet pairs configured on a device
- Gets the routing metric for the device.
- Handles a generic timer event.
- Provides access to stack counters via a visitor.
- Selects the device to use for gateway routes when the device was unspecified by the client. This can be used to construct an
Entry
from anAddableEntry
the same way that the core routing table does. - Set the routes in the routing table.