package mirage
Source file mirage_impl_ethernet.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18module Key = Mirage_key open Functoria open Mirage_impl_misc open Mirage_impl_network type ethernet = ETHERNET let ethernet = Type.v ETHERNET let etif_conf = let packages = [ package ~min:"3.0.0" ~max:"4.0.0" "ethernet" ] in let connect _ m = function | [ eth ] -> Fmt.str "%s.connect %s" m eth | _ -> failwith (connect_err "ethernet" 1) in impl ~packages ~connect "Ethernet.Make" (network @-> ethernet) let etif network = etif_conf $ network