diff options
| author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2022-05-02 13:00:12 -0300 | 
|---|---|---|
| committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2022-05-02 13:00:12 -0300 | 
| commit | 3682bd90f3c57657c3e04dffd9810b109ba6c5f3 (patch) | |
| tree | ec53a33cbca63055bd7b82aa6a110051e9c695f4 /babeld | |
| parent | 024e37fd875c98aa5254b9bc0f17b685b42ea6fd (diff) | |
*: 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.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/babeld/babeld.c b/babeld/babeld.c index a1e00bfb85..dfdc924cbd 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)  | 
