]> git.proxmox.com Git - mirror_frr.git/commit
lib: nuke the if_*_by_name_len() functions
authorRenato Westphal <renato@opensourcerouting.org>
Tue, 3 Oct 2017 01:05:57 +0000 (22:05 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 10 Oct 2017 12:01:24 +0000 (09:01 -0300)
commitbcc245799be7e90d912bd8d2774465fd9d407707
tree3a8ec12a5c12e310b8a799908816db231c340785
parente56ab0e97122d35d3f8d21faf820a90eb1953948
lib: nuke the if_*_by_name_len() functions

Make use of strnlen() and strlcpy() so we can get rid of these
convoluted if_*_by_name_len() functions.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
13 files changed:
eigrpd/eigrp_zebra.c
lib/if.c
lib/if.h
lib/zclient.c
ospf6d/ospf6_top.c
ospfd/ospf_interface.c
ospfd/ospf_vty.c
ospfd/ospf_zebra.c
pimd/pim_iface.c
zebra/if_ioctl.c
zebra/if_ioctl_solaris.c
zebra/if_netlink.c
zebra/kernel_socket.c