Skip to content

Commit 7ca240f

Browse files
author
Tyler Lubeck
committed
Use Netif directly
1 parent a8f2fa6 commit 7ca240f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/hostnet/mux.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,11 @@ module Make (Netif: Mirage_net_lwt.S) = struct
6767
let remove t rule =
6868
Log.debug (fun f ->
6969
f "removing switch port for %s" (Ipaddr.V4.to_string rule));
70-
disconnect t;
70+
Netif.disconnect t.netif;;
7171
t.rules <- RuleMap.remove rule t.rules
7272

73+
74+
7375
let callback t buf =
7476
(* Does the packet match any of our rules? *)
7577
let open Frame in

0 commit comments

Comments
 (0)