From a8d7a31327be482efbf6d300afbc4e767c563e42 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 11 Sep 2015 12:12:45 -0700 Subject: Integrate arp into NetconEthernetTap. --- node/Constants.hpp | 10 ++++++++++ node/Switch.hpp | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'node') 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; -- cgit v1.2.3