diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-11-04 10:38:04 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-11-04 10:38:04 +0000 |
commit | ec401e892fd44ba50870a3927d327ad6d9a9874d (patch) | |
tree | 19bdbf5bb071037c2d4644a430e05a6d2a7a6b74 | |
parent | 1bea9349bc5147718cc3c2b0c012bb1c9ecff4cf (diff) |
Use >= instead of == to compare cost with LS_INFINITY. While there fix a typo.
-rw-r--r-- | usr.sbin/ospfd/rde.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ospfd/rde.c b/usr.sbin/ospfd/rde.c index 7926690a7e1..357720229b5 100644 --- a/usr.sbin/ospfd/rde.c +++ b/usr.sbin/ospfd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.31 2005/10/19 21:43:20 claudio Exp $ */ +/* $OpenBSD: rde.c,v 1.32 2005/11/04 10:38:03 claudio Exp $ */ /* * Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org> @@ -1048,8 +1048,8 @@ 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; - /* TODO nexthop check, nexthop part of aera -> no summary */ - if (rte->cost == LS_INFINITY) + /* TODO nexthop check, nexthop part of area -> no summary */ + if (rte->cost >= LS_INFINITY) return; /* TODO AS border router specific checks */ /* TODO inter-area network route stuff */ |