chiark / gitweb /
networkd: properly track addresses when first added
authorTom Gundersen <teg@jklm.no>
Thu, 3 Jul 2014 20:47:51 +0000 (22:47 +0200)
committerTom Gundersen <teg@jklm.no>
Thu, 3 Jul 2014 20:55:05 +0000 (22:55 +0200)
commit4958aee4977f325be19f0e1e4b424922c3cada5f
tree29fdfb0dd66be1deb4a23ea52cec9263299fa6e5
parent393c0c5e64d0cb85ce14f25a06fa8958c9e119e7
networkd: properly track addresses when first added

When doing a NEWADDR, the reply we get back is the NEWADDR itself, rather
than just an empty ack (unlike how NEWLINK works). For this reason, the
process that did the NEWADDR does not get the broadcast message.

We were only listening for broadcast messages, and hence not tracking the
addresses we added ourselves. This went unnoticed as the kernel will usually
send NEWADDR messages from time to time anyway, so things would mostly work,
but in the worst case we would not notice that a routable address was available
and consider ourselves offline.
src/network/networkd-link.c