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