diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-10-16 21:36:20 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-10-16 21:36:20 +0000 |
commit | 989ccb786dd3b361e85f895797fc2b34a0dcb0a4 (patch) | |
tree | ff63367fddc2d70a35ae69d7581a60751ea4b3a9 /usr.sbin | |
parent | 49fbe4d9d3641355bbf4191729d0cd71cee8d2f4 (diff) |
Oups, unbreak there were some LINK_TYPE_STUB_NET left in the code.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ospf6d/rde_spf.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/usr.sbin/ospf6d/rde_spf.c b/usr.sbin/ospf6d/rde_spf.c index e5c46f1e018..daa0aa8123c 100644 --- a/usr.sbin/ospf6d/rde_spf.c +++ b/usr.sbin/ospf6d/rde_spf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_spf.c,v 1.3 2007/10/16 13:01:07 norby Exp $ */ +/* $OpenBSD: rde_spf.c,v 1.4 2007/10/16 21:36:19 claudio Exp $ */ /* * Copyright (c) 2005 Esben Norby <norby@openbsd.org> @@ -81,9 +81,6 @@ spf_calc(struct area *area) case LSA_TYPE_ROUTER: rtr_link = get_rtr_link(v, i); switch (rtr_link->type) { - case LINK_TYPE_STUB_NET: - /* skip */ - continue; case LINK_TYPE_POINTTOPOINT: case LINK_TYPE_VIRTUAL: /* find router LSA */ @@ -193,9 +190,6 @@ rt_calc(struct vertex *v, struct area *area, struct ospfd_conf *conf) for (i = 0; i < lsa_num_links(v); i++) { rtr_link = get_rtr_link(v, i); - if (rtr_link->type != LINK_TYPE_STUB_NET) - continue; - addr.s_addr = rtr_link->id; adv_rtr.s_addr = htonl(v->adv_rtr); @@ -433,9 +427,6 @@ calc_nexthop(struct vertex *dst, struct vertex *parent) rtr_link->data); } break; - case LINK_TYPE_STUB_NET: - break; - default: fatalx("calc_nexthop: invalid link " "type"); |