diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-25 02:24:27 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-25 02:24:27 +0000 |
commit | 5ccc261513acf225981dd21bea202fea8c25ed3c (patch) | |
tree | 817ad5ca8a8f2c02263474767fefa2215acce29e /usr.sbin/bgpd/rde.c | |
parent | 9971e57c7c66ae0dbf17d2524c5ca10d12325449 (diff) |
kill IMSG_KROUTE_ADD as well. just send KROUTE_CHANGE requests.
Diffstat (limited to 'usr.sbin/bgpd/rde.c')
-rw-r--r-- | usr.sbin/bgpd/rde.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c index c73b2fdc027..c761cbc1869 100644 --- a/usr.sbin/bgpd/rde.c +++ b/usr.sbin/bgpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.28 2003/12/24 23:48:06 henning Exp $ */ +/* $OpenBSD: rde.c,v 1.29 2003/12/25 02:24:26 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -515,10 +515,7 @@ rde_send_kroute(struct prefix *new, struct prefix *old) if (old == NULL && new == NULL) return; - if (old == NULL) { - type = IMSG_KROUTE_ADD; - p = new; - } else if (new == NULL || new->aspath->state == NEXTHOP_UNREACH) { + if (new == NULL || new->aspath->state == NEXTHOP_UNREACH) { type = IMSG_KROUTE_DELETE; p = old; } else { |