summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-10-22 17:46:35 +0200
committerTom Gundersen <teg@jklm.no>2015-11-11 15:42:38 +0100
commitcb53894d3b6e90edaee4219fe716850d01242f46 (patch)
treeb3b8f88db29f2836235b465349098673e342bed4 /src/network
parentb69015efd2752fd2719beec85496221304130b0b (diff)
sd-ndisc: notify user on STOP
Also, stop the state machine when we get into a broken state, rather than just notify the user.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkd-ndisc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/network/networkd-ndisc.c b/src/network/networkd-ndisc.c
index 33e692f97f..50661c65f7 100644
--- a/src/network/networkd-ndisc.c
+++ b/src/network/networkd-ndisc.c
@@ -37,6 +37,7 @@ static void ndisc_router_handler(sd_ndisc *nd, int event, void *userdata) {
return;
switch(event) {
+ case SD_NDISC_EVENT_STOP:
case SD_NDISC_EVENT_ROUTER_ADVERTISMENT_NONE:
return;
@@ -51,10 +52,7 @@ static void ndisc_router_handler(sd_ndisc *nd, int event, void *userdata) {
break;
default:
- if (event < 0)
- log_link_warning_errno(link, event, "IPv6 Neighbor Discover error: %m");
- else
- log_link_warning(link, "IPv6 Neighbor Discovery unknown event: %d", event);
+ log_link_warning(link, "IPv6 Neighbor Discovery unknown event: %d", event);
break;
}