mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-27 14:29:53 +00:00
Linux build fixes.
This commit is contained in:
parent
250f0ef9db
commit
6b67cb0e2a
@ -48,6 +48,10 @@
|
|||||||
#include <utility>
|
#include <utility>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#ifndef IFNAMSIZ
|
||||||
|
#define IFNAMSIZ 16
|
||||||
|
#endif
|
||||||
|
|
||||||
// ff:ff:ff:ff:ff:ff with no ADI
|
// ff:ff:ff:ff:ff:ff with no ADI
|
||||||
static const ZeroTier::MulticastGroup _blindWildcardMulticastGroup(ZeroTier::MAC(0xff),0);
|
static const ZeroTier::MulticastGroup _blindWildcardMulticastGroup(ZeroTier::MAC(0xff),0);
|
||||||
|
|
||||||
|
@ -22,6 +22,10 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <linux/if_tun.h>
|
#include <linux/if_tun.h>
|
||||||
|
|
||||||
|
#ifndef IFNAMSIZ
|
||||||
|
#define IFNAMSIZ 16
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace ZeroTier {
|
namespace ZeroTier {
|
||||||
|
|
||||||
struct nl_route_req {
|
struct nl_route_req {
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
#include <asm/types.h>
|
#include <asm/types.h>
|
||||||
#include <linux/rtnetlink.h>
|
#include <linux/rtnetlink.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <linux/if.h>
|
//#include <linux/if.h>
|
||||||
|
|
||||||
#include "../node/InetAddress.hpp"
|
#include "../node/InetAddress.hpp"
|
||||||
#include "../node/MAC.hpp"
|
#include "../node/MAC.hpp"
|
||||||
@ -132,7 +132,7 @@ private:
|
|||||||
iface_entry()
|
iface_entry()
|
||||||
{ memset(this,0,sizeof(iface_entry)); }
|
{ memset(this,0,sizeof(iface_entry)); }
|
||||||
int index;
|
int index;
|
||||||
char ifacename[IFNAMSIZ];
|
char ifacename[16]; // IFNAMSIZ on Linux == 16
|
||||||
char mac[18];
|
char mac[18];
|
||||||
char mac_bin[6];
|
char mac_bin[6];
|
||||||
unsigned int mtu;
|
unsigned int mtu;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user