notes about brctl, could potentially be replaced by ip
This commit is contained in:
parent
6206e8681a
commit
34817a2090
|
@ -146,6 +146,8 @@ let create_tap bridge =
|
|||
in
|
||||
let tap = find_n 0 in
|
||||
Bos.OS.Cmd.run Bos.Cmd.(v "ip" % "tuntap" % "add" % "mode" % "tap" % tap) >>= fun () ->
|
||||
(* TODO maybe: ip link set $tap master $bridge -- no brctl *)
|
||||
(* TODO also needed? ip link set dev $tap up -- or is it auto-up? *)
|
||||
Bos.OS.Cmd.run Bos.Cmd.(v "brctl" % "addif" % bridge % tap) >>= fun () ->
|
||||
Ok tap
|
||||
|
||||
|
|
Loading…
Reference in a new issue