]> git.proxmox.com Git - mirror_frr.git/commit - lib/if.h
bgpd, lib, zebra: Fix if_update function to represent what it does
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 29 Jun 2017 13:09:23 +0000 (09:09 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 29 Jun 2017 13:09:23 +0000 (09:09 -0400)
commit16895dbf7314117dc0f5c909de4764fca4a539d2
tree02e9b5acac6f675add11f14b89d211bc7c98df48
parent3127371595cd10e6da89ceb2c387a26ee3ff83f7
bgpd, lib, zebra: Fix if_update function to represent what it does

The if_update function was taking the interface name as
input and reapplying it, using strncpy to reapply the name.
This has several issues.  strncpy should not be used
to copy memory in place.  The second issue is that
the interface name is not actually changing when we
update interface to be in the new vrf.

Since every usage of if_update was just reapplying the same
name the interface actually had, just remove that part of
the function and rename it to if_update_to_new_vrf
to represent what it is actually doing.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_zebra.c
lib/if.c
lib/if.h
zebra/if_netlink.c
zebra/interface.c