summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/kroute.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-12-26 00:14:05 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-12-26 00:14:05 +0000
commitef01dd9f7485bb065b90d3072b55347b6e03dffb (patch)
treed36d64420edfd1d83891ae769f397657edd69f37 /usr.sbin/bgpd/kroute.c
parent29105c423c718cf455430c13c0b1185bea48edda (diff)
finally marry rde and kroute parts of the nexthop verification:
handle IMSG_NEXTHOP_ADD and send IMSG_NEXTHOP_UPDATE when appropriate
Diffstat (limited to 'usr.sbin/bgpd/kroute.c')
-rw-r--r--usr.sbin/bgpd/kroute.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c
index 1e1d7ff375d..4fb03b809b8 100644
--- a/usr.sbin/bgpd/kroute.c
+++ b/usr.sbin/bgpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.23 2003/12/26 00:12:23 henning Exp $ */
+/* $OpenBSD: kroute.c,v 1.24 2003/12/26 00:14:04 henning Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -468,10 +468,8 @@ kroute_remove(struct kroute_node *kr)
*/
bzero(&nh, sizeof(nh));
kroute_validate_nexthop(s->nexthop, &nh);
-#if 0
if (nh.valid == 0) /* no alternate route */
send_nexthop_update(&nh);
-#endif
}
free(kr);
@@ -515,9 +513,7 @@ kroute_nexthop_check(in_addr_t key)
}
} else
kroute_validate_nexthop(key, &nh);
-#if 0
send_nexthop_update(&nh);
-#endif
}
void