platform: remove padding for IP address lifetimes
authorThomas Haller <thaller@redhat.com>
Tue, 15 Mar 2016 16:29:58 +0000 (17:29 +0100)
committerThomas Haller <thaller@redhat.com>
Tue, 15 Mar 2016 17:28:43 +0000 (18:28 +0100)
commit6cb73224652e4b59f9c2d6e91e61b6e61a76c4a6
tree42ba72285ace4875e7ce4a254319194ec60f35ca
parentca5da5d80f3a21847bb807021e2e40d25bca50d0
platform: remove padding for IP address lifetimes

We used to pad the lifetime since the beginning (commit
f121995fad93eda886b2a34a8d79a45a5688b917).

However, there is not race involved, since our platform cache
is in sync with the messages from kernel (which didn't used to
be the case).

Also, when receiving a RA with a zero preferred time, we must
not extend the address lifetime by 5 seconds, but instead deprecate
the address immediately.

https://bugzilla.gnome.org/show_bug.cgi?id=763513
src/nm-core-utils.c
src/nm-core-utils.h
src/platform/nm-platform.c