summaryrefslogtreecommitdiffstats
path: root/isisd/isisd.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-08-06 22:43:46 +0200
committerRenato Westphal <renato@opensourcerouting.org>2019-08-21 06:04:03 +0200
commit363be4dd90bd8c0b9f6f045f0cf2391f1e456229 (patch)
treeb5b6fc4952faa61fdc91bf964598a7681c6128dd /isisd/isisd.h
parentisisd: reuse the nexthop lookup functions to avoid code duplication (diff)
downloadfrr-363be4dd90bd8c0b9f6f045f0cf2391f1e456229.tar.xz
frr-363be4dd90bd8c0b9f6f045f0cf2391f1e456229.zip
isisd: unify isis_nexthop and isis_nexthop6 into a single struct
This unification allows us to write code that works for both IPv4 and IPv6, reducing duplication. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'isisd/isisd.h')
-rw-r--r--isisd/isisd.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/isisd/isisd.h b/isisd/isisd.h
index f8486ae0d..393b1d67c 100644
--- a/isisd/isisd.h
+++ b/isisd/isisd.h
@@ -69,8 +69,7 @@ struct isis {
uint32_t router_id; /* Router ID from zebra */
struct list *area_list; /* list of IS-IS areas */
struct list *init_circ_list;
- struct list *nexthops; /* IPv4 next hops from this IS */
- struct list *nexthops6; /* IPv6 next hops from this IS */
+ struct list *nexthops; /* IP next hops from this IS */
uint8_t max_area_addrs; /* maximumAreaAdresses */
struct area_addr *man_area_addrs; /* manualAreaAddresses */
uint32_t debugs; /* bitmap for debug */