summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/kroute.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2009-05-25 11:49:48 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2009-05-25 11:49:48 +0000
commit0b9b1fe8a5773c64750bba1ac21612adcfb86951 (patch)
tree363f7aec462e3348892559c90ecda90a7cd0746f /usr.sbin/bgpd/kroute.c
parent8930faf8045c905333e092cf7b11a9dbef81b47f (diff)
In dispatch_rtmsg_addr() don't fatal on missing multipath deletes. Not 100%
sure why it happens but it is not a fatal condition. A warning should still be logged because it is not good to miss updates.
Diffstat (limited to 'usr.sbin/bgpd/kroute.c')
-rw-r--r--usr.sbin/bgpd/kroute.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c
index cfad55a7cbe..c0a6f5edaf1 100644
--- a/usr.sbin/bgpd/kroute.c
+++ b/usr.sbin/bgpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.165 2009/02/11 20:07:04 claudio Exp $ */
+/* $OpenBSD: kroute.c,v 1.166 2009/05/25 11:49:47 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -2573,7 +2573,7 @@ dispatch_rtmsg_addr(struct rt_msghdr *rtm, struct sockaddr *rti_info[RTAX_MAX],
if ((kr = kroute_matchgw(kr, sa_in)) == NULL) {
log_warnx("dispatch_rtmsg[delete] "
"mpath route not found");
- return (-1);
+ return (0);
}
if (kroute_remove(kr) == -1)
@@ -2592,8 +2592,8 @@ dispatch_rtmsg_addr(struct rt_msghdr *rtm, struct sockaddr *rti_info[RTAX_MAX],
if ((kr6 = kroute6_matchgw(kr6, sa_in6)) ==
NULL) {
log_warnx("dispatch_rtmsg[delete] "
- "mpath route not found");
- return (-1);
+ "IPv6 mpath route not found");
+ return (0);
}
if (kroute6_remove(kr6) == -1)