]> git.puffer.fish Git - matthieu/frr.git/commit
ospf6d: replace OSPF6_LSA_SIZE with ospf6_lsa_size
authorAndrew Cooks <acooks.at.bda@gmail.com>
Tue, 28 May 2024 04:07:14 +0000 (14:07 +1000)
committerAndrew Cooks <acooks.at.bda@gmail.com>
Tue, 28 May 2024 04:07:14 +0000 (14:07 +1000)
commit0dd99a673344107375378736d7355ccc542b9b70
tree4a3d1e98da1877d1f323239eaad2cfbed9922ded
parent954f2ac5819cd943d592d6bf42125146e74c6c1c
ospf6d: replace OSPF6_LSA_SIZE with ospf6_lsa_size

Dropping the macro enables better compiler type checking.

The macro was not used consistently when reading the lsa size from the
header, so this change also aims to use the replacement inline function
consistently.

Keeping the inline function has (marginal) utility in that it ensures that
the endian conversion is consistently performed.

Signed-off-by: Andrew Cooks <acooks.at.bda@gmail.com>
ospf6d/ospf6_lsa.c
ospf6d/ospf6_lsa.h
ospf6d/ospf6_message.c
ospf6d/ospf6_snmp.c
ospf6d/ospf6_spf.c