package charrua-client

  1. Overview
  2. Docs
DHCP client implementation

Install

dune-project
 Dependency

Authors

Maintainers

Sources

charrua-3.1.2.tbz
sha256=1e70defcd57a803acf4e905ceae4d9e5a763e6400e4216a207fe99bc94c099af
sha512=dcb137df2b1d04d8bcaad730ba4340d9f649076fdd76e2a3797eee779c96501254339f0357693ee4a49e7c406a653889843d5a1d2f63bb43e15e45f1ea12b3e1

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.