diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2003-12-23 18:52:47 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2003-12-23 18:52:47 +0000 |
commit | 1f4a8fad443737a5d51d3ae41ad7377c7014a8fc (patch) | |
tree | 4e99b18bae0066d95540416d7911fd37498b7b04 /usr.sbin/bgpd/rde_decide.c | |
parent | e304c541d2e903bbe4b30f587adb22c24ef49288 (diff) |
In case of exit the RDE need to tell the parent to remove all still active
prefixes from the kernel routing table. This is done with a simple table
walk. OK henning@
Diffstat (limited to 'usr.sbin/bgpd/rde_decide.c')
-rw-r--r-- | usr.sbin/bgpd/rde_decide.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde_decide.c b/usr.sbin/bgpd/rde_decide.c index 53b629a2126..8b7584777a5 100644 --- a/usr.sbin/bgpd/rde_decide.c +++ b/usr.sbin/bgpd/rde_decide.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_decide.c,v 1.2 2003/12/23 15:59:02 claudio Exp $ */ +/* $OpenBSD: rde_decide.c,v 1.3 2003/12/23 18:52:46 claudio Exp $ */ /* * Copyright (c) 2003 Claudio Jeker <claudio@openbsd.org> @@ -211,7 +211,7 @@ prefix_evaluate(struct prefix *p, struct pt_entry *pte) */ rde_send_kroute(xp, pte->active); - if (xp != NULL || xp->aspath->state == NEXTHOP_UNREACH) + if (xp == NULL || xp->aspath->state == NEXTHOP_UNREACH) pte->active = NULL; else { pte->active = xp; |