summaryrefslogtreecommitdiff
path: root/staticd
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-11-22 09:13:58 +0200
committerGitHub <noreply@github.com>2023-11-22 09:13:58 +0200
commitb84476e0bb46ea7f6d6b6d180f06602b27a34ecd (patch)
tree0e3c7fbed0b2af64511696af62793143feae782b /staticd
parent01af05fbd55edf444d2e39d9de44f5aef2b37719 (diff)
parent07b91ca0967fb898e4060367d485b85f965856e2 (diff)
Merge pull request #14850 from donaldsharp/IFNAMSIZ_GET_YOUR_SHIT_TOGETHER
*: Let's use the native IFNAMSIZ instead of INTERFACE_NAMSIZ
Diffstat (limited to 'staticd')
-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 548148b187..1231ead526 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