From 53a99994c8211b2ea394f4eadbede636873b2908 Mon Sep 17 00:00:00 2001 From: Romain Calascibetta Date: Tue, 22 Mar 2022 12:17:50 +0100 Subject: [PATCH] [new release] mirage-vnetif and mirage-vnetif-stack (0.6.0) CHANGES: - add option for capturing packets directly on the interface (mirage/mirage-vnetif#30, @MagnusS) - add option for unlocking a mutex when the interface is in listen mode (mirage/mirage-vnetif#30, @MagnusS) - add package mirage-vnetif-stack to provide a preassembled ipv4 stack (mirage/mirage-vnetif#30, @MagnusS) - add initial connect test for the vnetif-stack (mirage/mirage-vnetif#30, @MagnusS) - clean up opam dependencies (mirage/mirage-vnetif#30, @MagnusS) - drop mirage protocols and adapt to arp, ipaddr, tcpip interface changes (mirage/mirage-vnetif#33, @MisterDA) --- .../mirage-vnetif-stack.0.6.0/opam | 56 +++++++++++++++++++ .../mirage-vnetif/mirage-vnetif.0.6.0/opam | 44 +++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 packages/mirage-vnetif-stack/mirage-vnetif-stack.0.6.0/opam create mode 100644 packages/mirage-vnetif/mirage-vnetif.0.6.0/opam diff --git a/packages/mirage-vnetif-stack/mirage-vnetif-stack.0.6.0/opam b/packages/mirage-vnetif-stack/mirage-vnetif-stack.0.6.0/opam new file mode 100644 index 000000000000..fc2f4db5cef9 --- /dev/null +++ b/packages/mirage-vnetif-stack/mirage-vnetif-stack.0.6.0/opam @@ -0,0 +1,56 @@ +opam-version: "2.0" +maintainer: "Magnus Skjegstad " +authors: "Magnus Skjegstad " +homepage: "https://github.com/mirage/mirage-vnetif" +bug-reports: "https://github.com/mirage/mirage-vnetif/issues/" +dev-repo: "git+https://github.com/mirage/mirage-vnetif.git" +doc: "https://mirage.github.io/mirage-vnetif/" +license: "ISC" + +build: [ + ["dune" "subst"] {pinned} + ["dune" "build" "-p" name "-j" jobs] + ["dune" "build" "@test/vnetif-stack/runtest" "-p" name "-j" jobs] {with-test} +] + +depends: [ + "ocaml" {>= "4.06.0"} + "dune" {>= "1.9"} + "result" {>= "1.5"} + "lwt" + "mirage-time" {>= "2.0.0"} + "mirage-clock" {>= "3.0.0"} + "mirage-net" {>= "3.0.0"} + "mirage-random" + "mirage-vnetif" {= version} + "tcpip" {>= "7.0.0"} + "ethernet" + "cstruct" {>="6.0.0"} + "ipaddr" {>= "5.0.0"} + "macaddr" + "mirage-profile" + "arp" {>= "3.0.0"} + "duration" + "logs" + "mirage-time-unix" {with-test} + "mirage-clock-unix" {with-test} + "mirage-random-test" {with-test} + "alcotest" {>= "1.5.0" & with-test} + "alcotest-lwt" {with-test} +] +tags: ["org:mirage"] +synopsis: "Vnetif implementation of mirage-stack for Mirage TCP/IP" +description: """ +Provides Vnetif_stack, a mirage-stack implementation using Vnetif and the +Mirage TCP/IP stack. The virtual stack can be used to test and record Mirage +TCP/IP connections over a virtual network interface, as a process or VM. +""" +url { + src: + "https://github.com/mirage/mirage-vnetif/releases/download/v0.6.0/mirage-vnetif-0.6.0.tbz" + checksum: [ + "sha256=306b898fc7c1ac196df12879a55221293663bf1952163ff56d3e4669bc923191" + "sha512=231ef03990a7992d300644a1bc7723d56cc86791dc9e33096975a5b0c41aaadd72bd85d0dfc0f72e8c901303d2586d85dd96d542ddb6483291dcc5bd8d4453b6" + ] +} +x-commit-hash: "f941f44297ca5466995900e1a4ae175de659c4e4" diff --git a/packages/mirage-vnetif/mirage-vnetif.0.6.0/opam b/packages/mirage-vnetif/mirage-vnetif.0.6.0/opam new file mode 100644 index 000000000000..e4f8f7af43c1 --- /dev/null +++ b/packages/mirage-vnetif/mirage-vnetif.0.6.0/opam @@ -0,0 +1,44 @@ +opam-version: "2.0" +maintainer: "Magnus Skjegstad " +authors: "Magnus Skjegstad " +homepage: "https://github.com/mirage/mirage-vnetif" +bug-reports: "https://github.com/mirage/mirage-vnetif/issues/" +dev-repo: "git+https://github.com/mirage/mirage-vnetif.git" +doc: "https://mirage.github.io/mirage-vnetif/" +license: "ISC" + +build: [ + ["dune" "subst"] {pinned} + ["dune" "build" "-p" name "-j" jobs] +] + +depends: [ + "ocaml" {>= "4.06.0"} + "dune" {>= "1.9"} + "result" {>= "1.5"} + "lwt" + "mirage-net" {>= "3.0.0"} + "cstruct" {>="6.0.0"} + "ipaddr" {>= "3.0.0"} + "macaddr" + "mirage-profile" + "duration" + "logs" +] +tags: ["org:mirage"] +synopsis: "Virtual network interface and software switch for Mirage" +description: """ +Provides the module `Vnetif` which can be used as a replacement for the regular +`Netif` implementation in Xen and Unix. Stacks built using `Vnetif` are +connected to a software switch that allows the stacks to communicate as if they +were connected to the same LAN. +""" +url { + src: + "https://github.com/mirage/mirage-vnetif/releases/download/v0.6.0/mirage-vnetif-0.6.0.tbz" + checksum: [ + "sha256=306b898fc7c1ac196df12879a55221293663bf1952163ff56d3e4669bc923191" + "sha512=231ef03990a7992d300644a1bc7723d56cc86791dc9e33096975a5b0c41aaadd72bd85d0dfc0f72e8c901303d2586d85dd96d542ddb6483291dcc5bd8d4453b6" + ] +} +x-commit-hash: "f941f44297ca5466995900e1a4ae175de659c4e4"