From 07b91ca0967fb898e4060367d485b85f965856e2 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 21 Nov 2023 08:08:29 -0500 Subject: *: Let's use the native IFNAMSIZ instead of INTERFACE_NAMSIZ INTERFACE_NAMSIZ is just a redefine of IFNAMSIZ and IFNAMSIZ is the standard for interface name length on all platforms that FRR currently compiles on. Signed-off-by: Donald Sharp --- staticd/static_routes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'staticd/static_routes.h') diff --git a/staticd/static_routes.h b/staticd/static_routes.h index 548148b18..1231ead52 100644 --- a/staticd/static_routes.h +++ b/staticd/static_routes.h @@ -131,7 +131,7 @@ struct static_nexthop { bool nh_registered; bool nh_valid; - char ifname[INTERFACE_NAMSIZ + 1]; + char ifname[IFNAMSIZ + 1]; /* Label information */ struct static_nh_label snh_label; @@ -239,7 +239,7 @@ extern void zebra_stable_node_cleanup(struct route_table *table, * Max string return via API static_get_nh_str in size_t */ -#define NEXTHOP_STR (INET6_ADDRSTRLEN + INTERFACE_NAMSIZ + 25) +#define NEXTHOP_STR (INET6_ADDRSTRLEN + IFNAMSIZ + 25) /* * For the given nexthop, returns the string * nexthop : returns the formatted string in nexthop -- cgit v1.2.3