diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-29 18:23:08 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-31 13:47:03 -0400 |
| commit | ae87977c35c5e63ac2640de06ed2783759f2dfdd (patch) | |
| tree | 9c483db4fec3777095ae5523d812bc45548c0e74 /zebra/interface.c | |
| parent | 72a1b201d3acc71a5cb4c7a06ed91ef30e21ee11 (diff) | |
zebra: Refactor connected_up_ipv[4|6]
The connected_up_ipv[4|6] functions were almost identical.
Combine the forces for the goodness of mankind
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/interface.c')
| -rw-r--r-- | zebra/interface.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/zebra/interface.c b/zebra/interface.c index 5668590fdc..354e9177ae 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -527,18 +527,13 @@ static void if_install_connected(struct interface *ifp) struct listnode *node; struct listnode *next; struct connected *ifc; - struct prefix *p; if (ifp->connected) { for (ALL_LIST_ELEMENTS(ifp->connected, node, next, ifc)) { if (CHECK_FLAG(ifc->conf, ZEBRA_IFC_REAL)) zebra_interface_address_add_update(ifp, ifc); - p = ifc->address; - if (p->family == AF_INET) - connected_up_ipv4(ifp, ifc); - else if (p->family == AF_INET6) - connected_up_ipv6(ifp, ifc); + connected_up(ifp, ifc); } } } |
