]> git.proxmox.com Git - mirror_frr.git/commit - ospfd/ospf_lsa.h
ospfd: Add ospf_lsa_new_and_data function and abstract away
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 21 Aug 2018 00:41:37 +0000 (20:41 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 21 Aug 2018 00:41:37 +0000 (20:41 -0400)
commit5b3d4186defcf9faa15fce45703ee8c5a80f74db
tree9d5bbdd64223747a6cb6b28ecc9259a605643528
parent164ab8625e05ddc4f21d7da9fe1f20f50899e13e
ospfd: Add ospf_lsa_new_and_data function and abstract away

In all but one instance we were following this pattern
with ospf_lsa_new:

ospf_lsa_new()
ospf_lsa_data_new()

so let's create a ospf_lsa_new_and_data to abstract
this bit of fun and cleanup all the places where
it assumes these function calls can fail.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
ospfd/ospf_apiserver.c
ospfd/ospf_ext.c
ospfd/ospf_flood.c
ospfd/ospf_lsa.c
ospfd/ospf_lsa.h
ospfd/ospf_packet.c
ospfd/ospf_ri.c
ospfd/ospf_te.c