package charrua-client

  1. Overview
  2. Docs
DHCP client implementation

Install

dune-project
 Dependency

Authors

Maintainers

Sources

charrua-2.1.0.tbz
sha256=53a6be65499aa901b5db6a3c0494c21b5bc3fe2098c6e56826d3b55c49ed2b99
sha512=37d171014c755f7fc2465fd0124f5a80cb377c3a493883a38afdd2e583bf2022bec410842e5c7425b7945c3be408a55e9153a498c0f5f211dd1baa2c44fd5d6f

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.