package mnet-cli

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Mnet_cliSource

Mnet_cli is a simple helper to aggregate few options which are usable for unikernels with Cmdliner.

Sourceval ipv4 : Ipaddr.V4.Prefix.t Cmdliner.Term.t

ipv4 defines the --ipv4 option. This option is required and allows you to assign a static IPv4 address to a unikernel.

Sourceval ipv4_gateway : Ipaddr.V4.t option Cmdliner.Term.t

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).

Sourceval ipv6 : Mnet.IPv6.mode Cmdliner.Term.t

ipv6 defines the --ipv6 option. This option is optional and allows you to define how the static IPv6 address is generated (see IPv6.mode).

Sourceval ipv6_gateway : Ipaddr.V6.t option Cmdliner.Term.t

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).

Sourceval setup : ?max:int option -> string -> (Mnet.stack * Mnet.TCP.state * Mnet.UDP.state) Mkernel.arg Cmdliner.Term.t

setup aggregates ipv4, ipv4_gateway, ipv6 and ipv6_gateway to be able to create a mnet Mnet.stack (via Mnet.stack).

Sourceval setup_logs : bool Cmdliner.Term.t

setup_logs setups logs.