Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Mnet_cliSourceMnet_cli is a simple helper to aggregate few options which are usable for unikernels with Cmdliner.
ipv4 defines the --ipv4 option. This option is required and allows you to assign a static IPv4 address to a unikernel.
ipv4_gateway defines the --ipv4-gateway option. This option is optional and allows you to define a gateway (an exit point when a packet is destined for a node outside the link-local network).
ipv6 defines the --ipv6 option. This option is optional and allows you to define how the static IPv6 address is generated (see IPv6.mode).
ipv6_gateway defines the --ipv6-gateway option. This option is optional and allows you to define a gateway (an exit point when a packet is destined for a node outside the link-local network).
val setup :
?max:int option ->
string ->
(Mnet.stack * Mnet.TCP.state * Mnet.UDP.state) Mkernel.arg Cmdliner.Term.tsetup aggregates ipv4, ipv4_gateway, ipv6 and ipv6_gateway to be able to create a mnet Mnet.stack (via Mnet.stack).
setup_logs setups logs.