package charrua-client

  1. Overview
  2. Docs
DHCP client implementation

Install

dune-project
 Dependency

Authors

Maintainers

Sources

charrua-3.0.0.tbz
sha256=38158606cc9df794a8081f371782198e3586854eaf8ef7ce1d73a8080aa47734
sha512=443581ab33056062bbe5f456bc5836269a1325d97e1e23c63f87525de4a438500cc4e4c1e080ed560465a97669bda8fc2526b0a8b81d7abce67fb6abc8da5048

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.