summaryrefslogtreecommitdiffstats
path: root/staticd/static_routes.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-11-21 14:08:29 +0100
committerDonald Sharp <sharpd@nvidia.com>2023-11-21 14:08:29 +0100
commit07b91ca0967fb898e4060367d485b85f965856e2 (patch)
treea19cca0d1c7d874a89735783660f495a56596f7b /staticd/static_routes.h
parentMerge pull request #14710 from teletajp/fix_show_ospf_gr_helper_cmd (diff)
downloadfrr-07b91ca0967fb898e4060367d485b85f965856e2.tar.xz
frr-07b91ca0967fb898e4060367d485b85f965856e2.zip
*: 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 <sharpd@nvidia.com>
Diffstat (limited to 'staticd/static_routes.h')
-rw-r--r--staticd/static_routes.h4
1 files changed, 2 insertions, 2 deletions
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