diff options
author | Paul Jakma <paul.jakma@sun.com> | 2008-09-04 13:52:07 +0100 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2008-09-04 13:52:07 +0100 |
commit | b3bc68e5a4eecd85138463ae5742c2ccaa1db4bb (patch) | |
tree | 57f3167f01485aee55ca6fb47dd9b87e0b01bd41 /ospfd/ospf_route.h | |
parent | 742c64ff34a79ad22982c433edd8d7cf32fd9cdf (diff) | |
download | quagga-b3bc68e5a4eecd85138463ae5742c2ccaa1db4bb.tar.bz2 quagga-b3bc68e5a4eecd85138463ae5742c2ccaa1db4bb.tar.xz |
[ospfd] Minor enhancements to recent self-host-routes suppression patch
* ospf_spf.c: (ospf_spf_process_stubs) Track whether
parent router vertex is the root, so that the host-route
suppression logic need only be activated for such vertices.
Move the actual logic to ospf_intra_add_stub.
* ospf_route.c: (ospf_intra_add_stub) Main test of link moved
here, notionally more appropriate.
Diffstat (limited to 'ospfd/ospf_route.h')
-rw-r--r-- | ospfd/ospf_route.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ospfd/ospf_route.h b/ospfd/ospf_route.h index 351e014d..0d37436d 100644 --- a/ospfd/ospf_route.h +++ b/ospfd/ospf_route.h @@ -140,7 +140,8 @@ extern void ospf_intra_add_transit (struct route_table *, struct vertex *, extern void ospf_intra_add_stub (struct route_table *, struct router_lsa_link *, struct vertex *, - struct ospf_area *); + struct ospf_area *, + int parent_is_root); extern int ospf_route_cmp (struct ospf *, struct ospf_route *, struct ospf_route *); |