diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-09-11 12:12:45 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-09-11 12:12:45 -0700 |
commit | a8d7a31327be482efbf6d300afbc4e767c563e42 (patch) | |
tree | a10162380b2ec8a0adc83f385692f8f1ae6b7258 /node | |
parent | c2226cf0df3dd5d50db271cd1d5254b7243dc3cd (diff) | |
download | infinitytier-a8d7a31327be482efbf6d300afbc4e767c563e42.tar.gz infinitytier-a8d7a31327be482efbf6d300afbc4e767c563e42.zip |
Integrate arp into NetconEthernetTap.
Diffstat (limited to 'node')
-rw-r--r-- | node/Constants.hpp | 10 | ||||
-rw-r--r-- | node/Switch.hpp | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/node/Constants.hpp b/node/Constants.hpp index b7aa9817..56cc95d4 100644 --- a/node/Constants.hpp +++ b/node/Constants.hpp @@ -353,4 +353,14 @@ */ #define ZT_TEST_NETWORK_ID 0xffffffffffffffffULL +/* Ethernet frame types that might be relevant to us */ +#define ZT_ETHERTYPE_IPV4 0x0800 +#define ZT_ETHERTYPE_ARP 0x0806 +#define ZT_ETHERTYPE_RARP 0x8035 +#define ZT_ETHERTYPE_ATALK 0x809b +#define ZT_ETHERTYPE_AARP 0x80f3 +#define ZT_ETHERTYPE_IPX_A 0x8137 +#define ZT_ETHERTYPE_IPX_B 0x8138 +#define ZT_ETHERTYPE_IPV6 0x86dd + #endif diff --git a/node/Switch.hpp b/node/Switch.hpp index 55e2c362..1ad8459c 100644 --- a/node/Switch.hpp +++ b/node/Switch.hpp @@ -47,16 +47,6 @@ #include "IncomingPacket.hpp" #include "Hashtable.hpp" -/* Ethernet frame types that might be relevant to us */ -#define ZT_ETHERTYPE_IPV4 0x0800 -#define ZT_ETHERTYPE_ARP 0x0806 -#define ZT_ETHERTYPE_RARP 0x8035 -#define ZT_ETHERTYPE_ATALK 0x809b -#define ZT_ETHERTYPE_AARP 0x80f3 -#define ZT_ETHERTYPE_IPX_A 0x8137 -#define ZT_ETHERTYPE_IPX_B 0x8138 -#define ZT_ETHERTYPE_IPV6 0x86dd - namespace ZeroTier { class RuntimeEnvironment; |