summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2007-04-04 12:40:14 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2007-04-04 12:40:14 +0000
commitff449fbaf76f9e200630f64f05524e73058046ca (patch)
tree13e27ef33e94749af010064efd3fe631f962acaa /usr.sbin/ospfd
parentea27feeee6fff295d71bde16420ac3a90d64f0a5 (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.c5
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;