This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
15
unikernel/duniverse/mirage/lib/devices/ethernet.ml
Normal file
15
unikernel/duniverse/mirage/lib/devices/ethernet.ml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
open Functoria.DSL
|
||||
|
||||
type ethernet = ETHERNET
|
||||
|
||||
let ethernet = typ ETHERNET
|
||||
|
||||
let ethif_conf =
|
||||
let packages = [ package ~min:"3.0.0" ~max:"4.0.0" "ethernet" ] in
|
||||
let connect _ m = function
|
||||
| [ eth ] -> code ~pos:__POS__ "%s.connect %s" m eth
|
||||
| _ -> Misc.connect_err "etif" 1
|
||||
in
|
||||
impl ~packages ~connect "Ethernet.Make" (Network.network @-> ethernet)
|
||||
|
||||
let ethif network = ethif_conf $ network
|
||||
Loading…
Add table
Add a link
Reference in a new issue