]> git.puffer.fish Git - matthieu/frr.git/commit
*: convert `struct interface->connected` to DLIST
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 22 Nov 2023 18:05:41 +0000 (19:05 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 22 Nov 2023 22:00:30 +0000 (23:00 +0100)
commit8b23c0b0bd3470babe8702f54a47bb223f471b14
tree07e92fbef506de160930385036fd69901b59e6a6
parentaf22ff0bd5c5340ca377a7c727057465e7e16bb9
*: convert `struct interface->connected` to DLIST

Replace `struct list *` with `DLIST(if_connected, ...)`.

NB: while converting this, I found multiple places using connected
prefixes assuming they were IPv4 without checking:

- vrrpd/vrrp.c: vrrp_socket()
- zebra/irdp_interface.c: irdp_get_prefix(), irdp_if_start(),
  irdp_advert_off()

(these fixes are really hard to split off into separate commits as that
would require going back and reapplying the change but with the old list
handling)

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
39 files changed:
.clang-format
babeld/babel_interface.c
babeld/babel_interface.h
bgpd/bgp_network.c
bgpd/bgp_zebra.c
bgpd/bgpd.c
eigrpd/eigrp_network.c
isisd/isis_circuit.c
isisd/isis_sr.c
ldpd/ldp_zebra.c
lib/bfd.c
lib/if.c
lib/if.h
nhrpd/nhrp_interface.c
ospf6d/ospf6_asbr.c
ospf6d/ospf6_interface.c
ospfd/ospf_interface.c
ospfd/ospf_snmp.c
ospfd/ospfd.c
pimd/pim_hello.c
pimd/pim_iface.c
pimd/pim_igmp_mtrace.c
pimd/pim_pim.c
pimd/pim_tlv.c
pimd/pim_zebra.c
ripd/rip_interface.c
ripd/ripd.c
ripngd/ripng_interface.c
ripngd/ripngd.c
tools/checkpatch.pl
vrrpd/vrrp.c
vrrpd/vrrp_zebra.c
zebra/connected.c
zebra/interface.c
zebra/irdp_interface.c
zebra/irdp_main.c
zebra/zapi_msg.c
zebra/zebra_evpn.c
zebra/zebra_nb_config.c