Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions networkd/network_monitor_thread.ml
Original file line number Diff line number Diff line change
Expand Up @@ -249,15 +249,14 @@ let signal_networking_change () =

let ip_watcher () =
let cmd = Network_utils.iproute2 in
(* Only monitor IPv6 addresses at the moment *)
let args = ["-6"; "monitor"; "address"] in
let args = ["monitor"; "address"] in
let readme, writeme = Unix.pipe () in
Mutex.execute watcher_m (fun () ->
watcher_pid := Some (Forkhelpers.safe_close_and_exec ~env:(Unix.environment ()) None (Some writeme) None [] cmd args)
);
Unix.close writeme;
let in_channel = Unix.in_channel_of_descr readme in
debug "Started IPv6 watcher thread";
debug "Started IP watcher thread";
let rec loop () =
let line = input_line in_channel in
(* Do not send events for link-local IPv6 addresses *)
Expand Down