diff --git a/osdep/LinuxEthernetTap.cpp b/osdep/LinuxEthernetTap.cpp index 275443bd4..4abc54b92 100644 --- a/osdep/LinuxEthernetTap.cpp +++ b/osdep/LinuxEthernetTap.cpp @@ -48,6 +48,10 @@ #include #include +#ifndef IFNAMSIZ +#define IFNAMSIZ 16 +#endif + // ff:ff:ff:ff:ff:ff with no ADI static const ZeroTier::MulticastGroup _blindWildcardMulticastGroup(ZeroTier::MAC(0xff),0); diff --git a/osdep/LinuxNetLink.cpp b/osdep/LinuxNetLink.cpp index 8ee477278..421da1f63 100644 --- a/osdep/LinuxNetLink.cpp +++ b/osdep/LinuxNetLink.cpp @@ -22,6 +22,10 @@ #include #include +#ifndef IFNAMSIZ +#define IFNAMSIZ 16 +#endif + namespace ZeroTier { struct nl_route_req { diff --git a/osdep/LinuxNetLink.hpp b/osdep/LinuxNetLink.hpp index c5e08c232..22222e468 100644 --- a/osdep/LinuxNetLink.hpp +++ b/osdep/LinuxNetLink.hpp @@ -26,7 +26,7 @@ #include #include #include -#include +//#include #include "../node/InetAddress.hpp" #include "../node/MAC.hpp" @@ -132,7 +132,7 @@ private: iface_entry() { memset(this,0,sizeof(iface_entry)); } int index; - char ifacename[IFNAMSIZ]; + char ifacename[16]; // IFNAMSIZ on Linux == 16 char mac[18]; char mac_bin[6]; unsigned int mtu;