this repo has no description
1opam-version: "2.0"
2maintainer: "Anil Madhavapeddy <anil@recoil.org>"
3authors: "Anil Madhavapeddy <anil@recoil.org>"
4homepage: "https://github.com/mirage/ocaml-vmnet"
5bug-reports: "https://github.com/mirage/ocaml-vmnet/issues"
6dev-repo: "git+https://github.com/mirage/ocaml-vmnet.git"
7doc: "https://mirage.github.io/ocaml-vmnet/"
8license: "ISC"
9
10build: [
11 ["dune" "subst"] {dev}
12 [ "dune" "build" "-p" name "-j" jobs ]
13 [ "dune" "runtest" "-p" name "-j" jobs ] {with-test}
14]
15depends: [
16 "ocaml" {>="4.04"}
17 "dune"
18 "ppx_sexp_conv"
19 "sexplib" {>= "113.24.00"}
20 "lwt-dllist"
21 "macaddr"
22 "lwt" {>="2.4.3"}
23 "cstruct" {>="1.9.0"}
24 "cstruct-unix"
25]
26available: [ os = "macos" ]
27synopsis: "MacOS X `vmnet` NAT networking"
28description: """
29macOS 10.10 (Yosemite) introduced the somewhat undocumented `vmnet`
30framework. This exposes virtual network interfaces to userland applications.
31There are a number of advantages of this over previous implementations:
32
33- Unlike [tuntaposx](http://tuntaposx.sourceforge.net/), this is builtin
34 to MacOS X now and so is easier to package up and distribute for end users.
35- `vmnet` uses the XPC sandboxing interfaces and should make it easier to
36 drop a hard dependency on running networking applications as `root`.
37- Most significantly, `vmnet` optionally supports NATing network traffic to the
38 outside world, which was previously unsupported.
39
40These OCaml bindings are constructed against the documentation contained
41in the `<vmnet.h>` header file in Yosemite, and may not be correct due to
42the lack of any other example code. However, they do suffice to run
43[MirageOS](http://openmirage.org) applications that can connect to the
44outside world.
45
46Note the application must be configured to use DHCP: static IPs are not supported.
47"""
48url {
49 src:
50 "https://github.com/mirage/ocaml-vmnet/releases/download/v1.5.0/vmnet-v1.5.0.tbz"
51 checksum: [
52 "sha256=7f99ac5da95340927a222267374727ff1a8f7333c89f06818984479cbb735921"
53 "md5=1a74a48206920e1f750a90e20c812c72"
54 ]
55}