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" {>="4.0.0"}
22 "macaddr-sexp"
23 "lwt" {>="2.4.3"}
24 "cstruct" {>="1.9.0"}
25 "cstruct-unix"
26]
27available: [ os = "macos" ]
28synopsis: "MacOS X `vmnet` NAT networking"
29description: """
30macOS 10.10 (Yosemite) introduced the somewhat undocumented `vmnet`
31framework. This exposes virtual network interfaces to userland applications.
32There are a number of advantages of this over previous implementations:
33
34- Unlike [tuntaposx](http://tuntaposx.sourceforge.net/), this is builtin
35 to MacOS X now and so is easier to package up and distribute for end users.
36- `vmnet` uses the XPC sandboxing interfaces and should make it easier to
37 drop a hard dependency on running networking applications as `root`.
38- Most significantly, `vmnet` optionally supports NATing network traffic to the
39 outside world, which was previously unsupported.
40
41These OCaml bindings are constructed against the documentation contained
42in the `<vmnet.h>` header file in Yosemite, and may not be correct due to
43the lack of any other example code. However, they do suffice to run
44[MirageOS](http://openmirage.org) applications that can connect to the
45outside world.
46
47Note the application must be configured to use DHCP: static IPs are not supported.
48"""
49url {
50 src:
51 "https://github.com/mirage/ocaml-vmnet/releases/download/v1.5.1/vmnet-v1.5.1.tbz"
52 checksum: [
53 "sha256=87568fc1714fced553843a3a534e9a92f7d328068051a815e22dded0350ea04e"
54 "sha512=be2c6b50ad6ac32e805315103eddfbe4ca77818ebe3f3c026cf3457718a76e2f67b92ab9513666912ddda0e2addbd5c9db5293d346adb3192b9bf9c8ebad6774"
55 ]
56}