diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-11-22 09:13:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-22 09:13:58 +0200 |
| commit | b84476e0bb46ea7f6d6b6d180f06602b27a34ecd (patch) | |
| tree | 0e3c7fbed0b2af64511696af62793143feae782b /lib/if.h | |
| parent | 01af05fbd55edf444d2e39d9de44f5aef2b37719 (diff) | |
| parent | 07b91ca0967fb898e4060367d485b85f965856e2 (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.h | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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). |
