diff options
author | Paul Jakma <paul.jakma@sun.com> | 2008-09-04 14:52:07 +0200 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2008-09-04 14:52:07 +0200 |
commit | b3bc68e5a4eecd85138463ae5742c2ccaa1db4bb (patch) | |
tree | 57f3167f01485aee55ca6fb47dd9b87e0b01bd41 /ospfd/ospf_route.h | |
parent | Merge commit 'remotes/jocke/delete_ghost_route' (diff) | |
download | frr-b3bc68e5a4eecd85138463ae5742c2ccaa1db4bb.tar.xz frr-b3bc68e5a4eecd85138463ae5742c2ccaa1db4bb.zip |
[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 351e014d1..0d37436db 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 *); |