package charrua-client

  1. Overview
  2. Docs
DHCP client implementation

Install

dune-project
 Dependency

Authors

Maintainers

Sources

charrua-2.1.1.tbz
sha256=5c6ad4b357037c4a0424d9db0a55f539ce639d02993e660e8c2879c5a11dee58
sha512=82a0ad98fdb27472b6506dce9756338e1f68a3f993560917505504a7b05471fa8af73228db1304f9fe2281a7b2ca16730588ca2e5aab9d04ffdd42ecb5a67452

doc/charrua-client.mirage/Dhcp_client_mirage/Make/index.html

Module Dhcp_client_mirage.MakeSource

Parameters

Signature

Sourcetype t = (Ipaddr.V4.Prefix.t * Ipaddr.V4.t option) Lwt_stream.t
Sourceval connect : ?options:Dhcp_wire.dhcp_option list -> ?requests:Dhcp_wire.option_code list -> Network.t -> t Lwt.t

connect ~options ~requests net attempts to use net to obtain a valid DHCP lease containing the DHCP option codes listed in request. If request is not specified, connect uses the default values provided by the upstream Dhcp_client implementation, which are a small set useful in establishing ipv4 connectivity. The list of options will be transmitted as client options. connect does not time out; it will terminate on send/receive errors or when a lease is obtained.