summaryrefslogtreecommitdiffstats
path: root/lib/if.h
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2022-05-02 18:02:31 +0200
committerRafael Zalamena <rzalamena@opensourcerouting.org>2022-05-02 18:03:19 +0200
commit79378e4d10268a2a3b950905ce4a51b80e3331ee (patch)
tree37246d51d628b32a3a388681d540d98d1789ec31 /lib/if.h
parent*: use FRR interface name definition everywhere (diff)
downloadfrr-79378e4d10268a2a3b950905ce4a51b80e3331ee.tar.xz
frr-79378e4d10268a2a3b950905ce4a51b80e3331ee.zip
lib: change FRR interface name length definition
Use the OS provided maximum name length instead of defining an arbitrary one. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'lib/if.h')
-rw-r--r--lib/if.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/if.h b/lib/if.h
index 53cd01946..1c948b875 100644
--- a/lib/if.h
+++ b/lib/if.h
@@ -103,7 +103,7 @@ enum zebra_link_type {
#define IFNAMSIZ 16
*/
-#define INTERFACE_NAMSIZ 20
+#define INTERFACE_NAMSIZ IFNAMSIZ
#define INTERFACE_HWADDR_MAX 20
typedef signed int ifindex_t;