Crate consomme

Source
Expand description

The Consomme user-mode TCP stack.

This crate implements a user-mode TCP stack designed for use with virtualization. The guest operating system sends Ethernet frames, and this crate parses them and distributes the data streams to individual TCP and UDP sockets.

The current implementation supports OS-backed TCP and UDP sockets, essentially causing this stack to act as a NAT implementation, providing guest OS networking by leveraging the host’s network stack.

This implementation includes a small DHCP server for address assignment.

Structs§

Access
An accessor for consomme.
ChecksumState
Specifies the checksum state for a packet being transmitted.
Consomme
A consomme instance.
ConsommeControl
Provide dynamic updates during runtime.
ConsommeState
Dynamic networking properties of a consomme endpoint.
InvalidCidr
An error indicating that the CIDR is invalid.

Enums§

ConsommeMessageError
Error type returned from some dynamic update functions like bind_port.
DropReason
The reason a packet was dropped without being handled.
Error
An error to create a consomme instance.

Constants§

MIN_MTU
The minimum MTU for receives supported by Consomme (including the Ethernet frame).

Traits§

Client
A consomme client.

Type Aliases§

ConsommeStateUpdateFn
Callback to modify network state dynamically.