package mirage
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
The MirageOS library operating system
Install
dune-project
Dependency
Authors
Maintainers
Sources
mirage-4.0.0.tbz
sha256=f804161872de6cf20699364f09d03370ed06aafffb12f1d586190832c73a194d
sha512=75c1c1cac4c6f862c0055381c7ced123785193234b40da8a8e238cb289cba1a4494378587c4edf2ed872aee7fbfc756f84087941c1037ac19cbd1733ff6cca6a
doc/src/mirage.impl/mirage_impl_network.ml.html
Source file mirage_impl_network.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51open Functoria module Key = Mirage_key type network = NETWORK let network = Type.v NETWORK let all_networks = ref [] let network_conf (intf : string Key.key) = let key = Key.v intf in let keys = [ key ] in let packages_v = Key.match_ Key.(value target) @@ function | `Unix -> [ package ~min:"3.0.0" ~max:"4.0.0" "mirage-net-unix" ] | `MacOSX -> [ package ~min:"1.8.0" ~max:"2.0.0" "mirage-net-macosx" ] | `Xen -> [ package ~min:"2.1.0" ~max:"3.0.0" "mirage-net-xen" ] | `Qubes -> [ package ~min:"2.1.0" ~max:"3.0.0" "mirage-net-xen"; Mirage_impl_qubesdb.pkg; ] | #Mirage_key.mode_solo5 -> [ package ~min:"0.8.0" ~max:"0.9.0" "mirage-net-solo5" ] in let connect _ modname _ = (* @samoht: why not just use the args paramater? *) Fmt.str "%s.connect %a" modname Key.serialize_call key in let configure i = all_networks := Key.get (Info.context i) intf :: !all_networks; Action.ok () in impl ~keys ~packages_v ~connect ~configure "Netif" network let netif ?group dev = network_conf @@ Key.interface ?group dev let default_network = match_impl Key.(value target) [ (`Unix, netif "tap0"); (`MacOSX, netif "tap0"); (* On Solo5 targets, a single default network is customarily * named just 'service' *) (`Hvt, netif "service"); (`Spt, netif "service"); (`Virtio, netif "service"); (`Muen, netif "service"); (`Genode, netif "service"); ] ~default:(netif "0")
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>