summaryrefslogtreecommitdiff
path: root/zebra/rt_socket.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@openbsd.org>2018-10-24 16:14:15 -0300
committerGitHub <noreply@github.com>2018-10-24 16:14:15 -0300
commit8b6ca2b09f394251e900ecfd6d136df33d5b0d59 (patch)
tree86a7d05aa2d7b481c556c11ddc17e3d20ac77340 /zebra/rt_socket.c
parent6fbac6cff50611985ce67a36ba69848f697beba3 (diff)
parent560e313664699c02714ea6aed726e289107f749d (diff)
Merge pull request #3234 from donaldsharp/bsd_install_failure
zebra: Notice when a route fails to install on *bsd
Diffstat (limited to 'zebra/rt_socket.c')
-rw-r--r--zebra/rt_socket.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/zebra/rt_socket.c b/zebra/rt_socket.c
index e8d0b71605..c49dc7bab2 100644
--- a/zebra/rt_socket.c
+++ b/zebra/rt_socket.c
@@ -245,9 +245,12 @@ static int kernel_rtm_ipv4(int cmd, const struct prefix *p,
} /* for (ALL_NEXTHOPS(...))*/
/* If there was no useful nexthop, then complain. */
- if (nexthop_num == 0 && IS_ZEBRA_DEBUG_KERNEL)
- zlog_debug("%s: No useful nexthops were found in RIB entry %p",
- __func__, re);
+ if (nexthop_num == 0) {
+ if (IS_ZEBRA_DEBUG_KERNEL)
+ zlog_debug("%s: No useful nexthops were found in RIB entry %p",
+ __func__, re);
+ return 1;
+ }
return 0; /*XXX*/
}
@@ -374,7 +377,7 @@ static int kernel_rtm_ipv6(int cmd, const struct prefix *p,
if (nexthop_num == 0) {
if (IS_ZEBRA_DEBUG_KERNEL)
zlog_debug("kernel_rtm_ipv6(): No useful nexthop.");
- return 0;
+ return 1;
}
return 0; /*XXX*/