summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-05-09 14:23:17 +0200
committerTom Gundersen <teg@jklm.no>2014-05-09 14:41:27 +0200
commitb90b025af151eb4e07121f86495d9362e54b3455 (patch)
treef6750848b57924286b2a0e75416d624185099238 /src/network
parent7619683b46bddcf753786fd20581322da9825f99 (diff)
networkd: link - don't log errors when missing routes/addresses are dropped
We were ignoring the wrong errno.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkd-link.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index d23be9ccbf..f1f04a3de0 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -420,7 +420,7 @@ static int route_drop_handler(sd_rtnl *rtnl, sd_rtnl_message *m, void *userdata)
}
r = sd_rtnl_message_get_errno(m);
- if (r < 0 && r != -ENOENT)
+ if (r < 0 && r != -ESRCH)
log_struct_link(LOG_WARNING, link,
"MESSAGE=%s: could not drop route: %s",
link->ifname, strerror(-r),
@@ -623,7 +623,7 @@ static int address_drop_handler(sd_rtnl *rtnl, sd_rtnl_message *m, void *userdat
}
r = sd_rtnl_message_get_errno(m);
- if (r < 0 && r != -ENOENT)
+ if (r < 0 && r != -EADDRNOTAVAIL)
log_struct_link(LOG_WARNING, link,
"MESSAGE=%s: could not drop address: %s",
link->ifname, strerror(-r),