diff options
author | Andrew Cooks <acooks.at.bda@gmail.com> | 2024-05-21 02:39:47 +0200 |
---|---|---|
committer | Andrew Cooks <acooks.at.bda@gmail.com> | 2024-05-28 06:06:25 +0200 |
commit | 954f2ac5819cd943d592d6bf42125146e74c6c1c (patch) | |
tree | 54d38ba35fb9174ca9c717089a701681b79a2401 /ospf6d/ospf6_spf.c | |
parent | ospf6d: replace OSPF6_LSA_HEADER_END macro (diff) | |
download | frr-954f2ac5819cd943d592d6bf42125146e74c6c1c.tar.xz frr-954f2ac5819cd943d592d6bf42125146e74c6c1c.zip |
ospf6d: replace OSPF6_LSA_END with ospf6_lsa_end
Replacing the macro with an inline function enables better type
checking.
No functional change.
Signed-off-by: Andrew Cooks <acooks.at.bda@gmail.com>
Diffstat (limited to 'ospf6d/ospf6_spf.c')
-rw-r--r-- | ospf6d/ospf6_spf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ospf6d/ospf6_spf.c b/ospf6d/ospf6_spf.c index 93120df99..7d6dcf8e3 100644 --- a/ospf6d/ospf6_spf.c +++ b/ospf6d/ospf6_spf.c @@ -207,7 +207,7 @@ static char *ospf6_lsdesc_backlink(struct ospf6_lsa *lsa, caddr_t lsdesc, ? sizeof(struct ospf6_router_lsdesc) : sizeof(struct ospf6_network_lsdesc)); for (backlink = ospf6_lsa_header_end(lsa->header) + 4; - backlink + size <= OSPF6_LSA_END(lsa->header); backlink += size) { + backlink + size <= ospf6_lsa_end(lsa->header); backlink += size) { assert(!(OSPF6_LSA_IS_TYPE(NETWORK, lsa) && VERTEX_IS_TYPE(NETWORK, v))); @@ -511,7 +511,7 @@ void ospf6_spf_calculation(uint32_t router_id, ? sizeof(struct ospf6_router_lsdesc) : sizeof(struct ospf6_network_lsdesc)); for (lsdesc = ospf6_lsa_header_end(v->lsa->header) + 4; - lsdesc + size <= OSPF6_LSA_END(v->lsa->header); + lsdesc + size <= ospf6_lsa_end(v->lsa->header); lsdesc += size) { lsa = ospf6_lsdesc_lsa(lsdesc, v); if (lsa == NULL) |