]> git.meshlink.io Git - meshlink/commitdiff
Monitor a PFROUTE socket on *BSD and macOS.
authorGuus Sliepen <guus@meshlink.io>
Thu, 18 Jun 2020 20:41:12 +0000 (22:41 +0200)
committerGuus Sliepen <guus@meshlink.io>
Thu, 15 Apr 2021 18:30:51 +0000 (20:30 +0200)
Catta is not handling network changes correctly on *BSD and macOS. In
particular, after the initial startup, interfaces that go up and down
do not cause a callback to be generated, so MeshLink is not notified of
the changes.

To ensure MeshLink responds rapidly to network changes on these
platforms, we open a PFROUTE socket and monitor it ourself. We only
check the message type, and don't track exactly what addresses get added
or removed.


No differences found