dhcp6c subscribe to ppp ifindex

when the peer bounces ppp, s6 will restart the ppp process but not
restart the dependent services (because the service isn't considered
to have gone down)

so the dependent services need to notice when the outputs from ppp
have changed
This commit is contained in:
Daniel Barlow
2025-03-31 23:15:28 +01:00
parent 01fe2159b4
commit 53c6d506cf
3 changed files with 22 additions and 10 deletions

View File

@@ -25,6 +25,7 @@
(fn run []
(let [[state-directory lan-device] arg
dir (svc.open state-directory)]
(update-prefixes lan-device [] (or (dir:output "prefix") []) system)
(accumulate [addresses []
v (dir:events)]
(update-prefixes lan-device addresses (or (v:output "prefix") []) system))))