Skip to content

Commit

Permalink
Use Netif directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Lubeck committed Aug 3, 2017
1 parent a8f2fa6 commit 7ca240f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hostnet/mux.ml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@ module Make (Netif: Mirage_net_lwt.S) = struct
let remove t rule =
Log.debug (fun f ->
f "removing switch port for %s" (Ipaddr.V4.to_string rule));
disconnect t;
Netif.disconnect t.netif;;
t.rules <- RuleMap.remove rule t.rules



let callback t buf =
(* Does the packet match any of our rules? *)
let open Frame in
Expand Down

0 comments on commit 7ca240f

Please sign in to comment.