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.lwt/Dhcp_client_lwt/Make/index.html

Module Dhcp_client_lwt.MakeSource

Parameters

module Net : Mirage_net.S

Signature

Sourcetype lease = Dhcp_wire.pkt
Sourceval connect : ?renew:bool -> ?xid:Cstruct.uint32 -> ?options:Dhcp_wire.dhcp_option list -> ?requests:Dhcp_wire.option_code list -> Net.t -> t Lwt.t

connect ~renew ~xid ~options ~requests net starts a DHCP client communicating over the network interface net. The client will attempt to get a DHCP lease at least once, and will return any leases obtained in the stream returned by connect. If renew is true, which it is by default, the client will attempt to renew the lease according to the logic in RFC2131. If renew is false, the client will cancel its listener and end the stream once the first lease has been obtained. The options are the DHCP options sent by the client in the DHCP DISCOVER and DHCP REQUEST. The requests will be transmitted as DHCP parameter request also in the DHCP DISCOVER and DHCP REQUEST.