summaryrefslogtreecommitdiffstats
path: root/babeld
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2022-05-02 18:00:12 +0200
committerRafael Zalamena <rzalamena@opensourcerouting.org>2022-05-02 18:00:12 +0200
commit3682bd90f3c57657c3e04dffd9810b109ba6c5f3 (patch)
treeec53a33cbca63055bd7b82aa6a110051e9c695f4 /babeld
parentpbrd: fix interface compare usage (diff)
downloadfrr-3682bd90f3c57657c3e04dffd9810b109ba6c5f3.tar.xz
frr-3682bd90f3c57657c3e04dffd9810b109ba6c5f3.zip
*: use FRR interface name definition everywhere
Don't rely on the OS interface name length definition and use the FRR definition instead. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'babeld')
-rw-r--r--babeld/babeld.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/babeld/babeld.c b/babeld/babeld.c
index a1e00bfb8..dfdc924cb 100644
--- a/babeld/babeld.c
+++ b/babeld/babeld.c
@@ -31,6 +31,7 @@ THE SOFTWARE.
#include "plist.h"
#include "lib_errors.h"
#include "network.h"
+#include "if.h"
#include "babel_main.h"
#include "babeld.h"
@@ -251,7 +252,7 @@ babel_get_myid(void)
/* We failed to get a global EUI64 from the interfaces we were given.
Let's try to find an interface with a MAC address. */
for(i = 1; i < 256; i++) {
- char buf[IF_NAMESIZE], *ifname;
+ char buf[INTERFACE_NAMSIZ], *ifname;
unsigned char eui[8];
ifname = if_indextoname(i, buf);
if(ifname == NULL)