diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-07-07 19:36:57 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-07-07 19:36:57 -0400 |
| commit | e2a2d33f8f12e7227b35c0cc77f8cc091f32a440 (patch) | |
| tree | 0d194f6b217495f9719e9f279c4fd061f7b2fa6d /node/Utils.cpp | |
| parent | c68ab6b70f9c34bde38c2e38dee1e5b155097a6a (diff) | |
| download | infinitytier-e2a2d33f8f12e7227b35c0cc77f8cc091f32a440.tar.gz infinitytier-e2a2d33f8f12e7227b35c0cc77f8cc091f32a440.zip | |
Filter code, work in progress, wont build yet
Diffstat (limited to 'node/Utils.cpp')
| -rw-r--r-- | node/Utils.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/node/Utils.cpp b/node/Utils.cpp index 7e55d26b..b9db07b9 100644 --- a/node/Utils.cpp +++ b/node/Utils.cpp @@ -283,31 +283,6 @@ std::string Utils::base64Decode(const char *data,unsigned int len) return out.substr(0,outLen); } -const char *Utils::etherTypeName(const unsigned int etherType) -{ - static char tmp[6]; - switch(etherType) { - case ZT_ETHERTYPE_IPV4: - return "IPV4"; - case ZT_ETHERTYPE_ARP: - return "ARP"; - case ZT_ETHERTYPE_RARP: - return "RARP"; - case ZT_ETHERTYPE_ATALK: - return "ATALK"; - case ZT_ETHERTYPE_AARP: - return "AARP"; - case ZT_ETHERTYPE_IPX_A: - return "IPX_A"; - case ZT_ETHERTYPE_IPX_B: - return "IPX_B"; - case ZT_ETHERTYPE_IPV6: - return "IPV6"; - } - sprintf(tmp,"%.4x",etherType); - return tmp; // technically not thread safe, but we're only going to see this in debugging if ever -} - std::string Utils::hex(const void *data,unsigned int len) { std::string r; |
