Skip to content

Commit

Permalink
Merge pull request #34 from mirage/prepare-v0.6.0
Browse files Browse the repository at this point in the history
Prepare v0.6.0
  • Loading branch information
dinosaure authored Mar 23, 2022
2 parents 418074f + 5913b93 commit 0afcaaf
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 46 deletions.
72 changes: 36 additions & 36 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
name: Main workflow

on:
pull_request:
push:
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON

jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- windows-latest
ocaml-compiler:
- 4.13.x

runs-on: ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}

- run: opam install . --deps-only --with-test

- run: opam exec -- dune build

- run: opam exec -- dune runtest
name: Main workflow

on:
pull_request:
push:
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON

jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- windows-latest
ocaml-compiler:
- 4.13.x

runs-on: ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}

- run: opam install . --deps-only --with-test

- run: opam exec -- dune build

- run: opam exec -- dune runtest
15 changes: 8 additions & 7 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
### unreleased
### v0.6.0 (2022-03-22)

- add option for capturing packets directly on the interface
- add option for unlocking a mutex when the interface is in listen mode
- add package mirage-vnetif-stack to provide a preassembled ipv4 stack
- add initial connect test for the vnetif-stack
- clean up opam dependencies
- add option for capturing packets directly on the interface (#30, @MagnusS)
- add option for unlocking a mutex when the interface is in listen mode (#30, @MagnusS)
- add package mirage-vnetif-stack to provide a preassembled ipv4 stack (#30, @MagnusS)
- add initial connect test for the vnetif-stack (#30, @MagnusS)
- clean up opam dependencies (#30, @MagnusS)
- drop mirage protocols and adapt to arp, ipaddr, tcpip interface
changes (#33 @MisterDA)
changes (#33, @MisterDA)
- restore old behavior of `mirage-vnetif` to avoid breaking changes (f0b8341, @dinosaure)

### v0.5.0 (2019-10-30)

Expand Down
2 changes: 1 addition & 1 deletion mirage-vnetif-stack.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ doc: "https://mirage.github.io/mirage-vnetif/"
license: "ISC"

build: [
["dune" "subst"] {pinned}
["dune" "subst"] {dev}
["dune" "build" "-p" name "-j" jobs]
["dune" "build" "@test/vnetif-stack/runtest" "-p" name "-j" jobs] {with-test}
]
Expand Down
2 changes: 1 addition & 1 deletion mirage-vnetif.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ doc: "https://mirage.github.io/mirage-vnetif/"
license: "ISC"

build: [
["dune" "subst"] {pinned}
["dune" "subst"] {dev}
["dune" "build" "-p" name "-j" jobs]
]

Expand Down
2 changes: 1 addition & 1 deletion src/vnetif/vnetif.ml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module Make (B : BACKEND) = struct
flush_on_disconnect : bool;
}

let connect ?size_limit ?flush_on_disconnect:(flush_on_disconnect=true) ?monitor_fn ?unlock_on_listen backend =
let connect ?size_limit ?flush_on_disconnect:(flush_on_disconnect=false) ?monitor_fn ?unlock_on_listen backend =
match (B.register backend) with
| Error _ -> Lwt.fail_with "vnetif: error while registering to backend"
| Ok id ->
Expand Down

0 comments on commit 0afcaaf

Please sign in to comment.