package charrua-client

  1. Overview
  2. Docs
DHCP client implementation

Install

dune-project
 Dependency

Authors

Maintainers

Sources

charrua-3.1.1.tbz
sha256=8fcd4a51a10eeb600989585847fb373c2f5187bef8019455091eea3751a7f405
sha512=0629cd497d9f234821279ac58ce707ca303b36093f887af9cb462139f3bd21ae0e9a80dd9375f7d5ad22eca7517c7e9c77193c616871da5bd68b3e456550f1e4

doc/charrua-client.mirage/Dhcp_ipv4/index.html

Module Dhcp_ipv4Source

Sourcemodule type S = sig ... end
Sourcemodule type With_lease = sig ... end
Sourcemodule Make (Network : Mirage_net.S) (Ethernet : Ethernet.S) (Arp : Arp.S) : sig ... end

Make(N)(E)(A) instantiates a device that exposes a Mirage_net.S interface as well as a Tcpip.Ip.S interface with ipv4. On connection it either requests a DHCP lease or sets up a static IPv4 address. The exposed Mirage_net.S interface is N but with incoming dhcp messages filtered out. It is expected that E and A are instantiated with N.

Sourcemodule Proj_net (T : S) : sig ... end

Projection of the Mirage_net.S device.

Sourcemodule Proj_ipv4 (T : S) : sig ... end

Projection of the IPv4 Tcpip.Ip.S device.

Sourcemodule Proj_lease (T : With_lease) : sig ... end

Projection of the DHCP lease as a device.