diff options
author | Luiz Souza <luiz@netgate.com> | 2017-10-07 16:17:49 -0300 |
---|---|---|
committer | Luiz Souza <luiz@netgate.com> | 2017-10-07 16:21:33 -0300 |
commit | 74ffe70f496b45f72a1f37a53f81c346efd327c3 (patch) | |
tree | 007074f2d5e802f47fd1a2386e7cd7a29c999c60 | |
parent | a98357f29f6536abf7b9cd1ca69455fff49bac25 (diff) | |
download | FreeBSD-src-74ffe70f496b45f72a1f37a53f81c346efd327c3.zip FreeBSD-src-74ffe70f496b45f72a1f37a53f81c346efd327c3.tar.gz |
Increase the interface size to 64 bytes (including the terminating NULL).
(cherry picked from commit aabe6b2e2913f231f5136574a7ef665a1d48220b)
-rw-r--r-- | contrib/ntp/lib/isc/unix/ifiter_ioctl.c | 2 | ||||
-rw-r--r-- | sys/net/if.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/ntp/lib/isc/unix/ifiter_ioctl.c b/contrib/ntp/lib/isc/unix/ifiter_ioctl.c index c8e4970..9166efe 100644 --- a/contrib/ntp/lib/isc/unix/ifiter_ioctl.c +++ b/contrib/ntp/lib/isc/unix/ifiter_ioctl.c @@ -104,7 +104,7 @@ struct isc_interfaceiter { # ifdef IFNAMSIZ # define IF_NAMESIZE IFNAMSIZ # else -# define IF_NAMESIZE 16 +# define IF_NAMESIZE 64 # endif #endif #endif diff --git a/sys/net/if.h b/sys/net/if.h index 5da596a..a5e6a02 100644 --- a/sys/net/if.h +++ b/sys/net/if.h @@ -51,7 +51,7 @@ * Length of interface external name, including terminating '\0'. * Note: this is the same size as a generic device's external name. */ -#define IF_NAMESIZE 16 +#define IF_NAMESIZE 64 #if __BSD_VISIBLE #define IFNAMSIZ IF_NAMESIZE #define IF_MAXUNIT 0x7fff /* historical value */ |