package charrua-client
DHCP client implementation
Install
Dune Dependency
Authors
Maintainers
Sources
charrua-1.6.0.tbz
sha256=1f6f7c1211a45ebbbd56a78b12fdbceaa98efae97ac3bd6f4855da47a3a3ac34
sha512=6ea3cb92efca7c33ee9aa1411223bec9045ece9939657594ebc47ae93408c4d87e8b40812751fc86555061d91ccd338b3fbcfe6059e1dd770303329b5e527a96
doc/src/charrua-client.mirage/dhcp_ipv4.ml.html
Source file dhcp_ipv4.ml
1 2 3 4 5 6 7 8 9 10 11
open Lwt.Infix module Make(R : Mirage_crypto_rng_mirage.S) (C : Mirage_clock.MCLOCK) (Time : Mirage_time.S) (Network : Mirage_net.S) (E : Ethernet.S) (Arp : Arp.S) = struct (* for now, just wrap a static ipv4 *) module DHCP = Dhcp_client_mirage.Make(R)(Time)(Network) include Static_ipv4.Make(R)(C)(E)(Arp) let connect net ethernet arp = DHCP.connect net >>= fun dhcp -> Lwt_stream.last_new dhcp >>= fun (cidr, gateway) -> connect ~cidr ?gateway ethernet arp end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>