diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-04-04 12:40:14 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-04-04 12:40:14 +0000 |
commit | ff449fbaf76f9e200630f64f05524e73058046ca (patch) | |
tree | 13e27ef33e94749af010064efd3fe631f962acaa /usr.sbin/ospfd | |
parent | ea27feeee6fff295d71bde16420ac3a90d64f0a5 (diff) |
There is no need to originate inter-area routes to the backbone.
Inter-area routes are already comming from the backbone so readding them
is wrong.
OK norby@
Diffstat (limited to 'usr.sbin/ospfd')
-rw-r--r-- | usr.sbin/ospfd/rde.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ospfd/rde.c b/usr.sbin/ospfd/rde.c index 15c68217057..bce41d99c5d 100644 --- a/usr.sbin/ospfd/rde.c +++ b/usr.sbin/ospfd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.61 2007/03/30 14:12:55 claudio Exp $ */ +/* $OpenBSD: rde.c,v 1.62 2007/04/04 12:40:13 claudio Exp $ */ /* * Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org> @@ -1051,6 +1051,9 @@ rde_summary_update(struct rt_node *rte, struct area *area) /* no need for summary LSA in the originating area */ if (rte->area.s_addr == area->id.s_addr) return; + /* no need to originate inter-area routes to the backbone */ + if (rte->p_type == PT_INTER_AREA && area->id.s_addr == INADDR_ANY) + return; /* TODO nexthop check, nexthop part of area -> no summary */ if (rte->cost >= LS_INFINITY) return; |