summaryrefslogtreecommitdiff
path: root/lib/if.h
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 /lib/if.h
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 'lib/if.h')
-rw-r--r--lib/if.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/if.h b/lib/if.h
index 868766d645..e932057583 100644
--- a/lib/if.h
+++ b/lib/if.h
@@ -88,8 +88,6 @@ enum zebra_link_type {
FreeBSD define value in /usr/include/net/if.h.
#define IFNAMSIZ 16
*/
-
-#define INTERFACE_NAMSIZ IFNAMSIZ
#define INTERFACE_HWADDR_MAX 20
typedef signed int ifindex_t;
@@ -218,7 +216,7 @@ struct interface {
To delete, just set ifindex to IFINDEX_INTERNAL to indicate that the
interface does not exist in the kernel.
*/
- char name[INTERFACE_NAMSIZ];
+ char name[IFNAMSIZ];
/* Interface index (should be IFINDEX_INTERNAL for non-kernel or
deleted interfaces).