diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2019-03-22 15:50:15 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2019-03-22 15:50:15 -0700 |
| commit | 2966eac64f549bb5f5f79ddace14dd0bc59c3270 (patch) | |
| tree | 3df91e2845fd99619a74cf1308296970b548c47b /node/Path.hpp | |
| parent | d5303560556cfae45c07214d1c0379d8a048fa3d (diff) | |
| download | infinitytier-2966eac64f549bb5f5f79ddace14dd0bc59c3270.tar.gz infinitytier-2966eac64f549bb5f5f79ddace14dd0bc59c3270.zip | |
Get rid of ZT_FAST_MEMCPY because this is not really needed.
Diffstat (limited to 'node/Path.hpp')
| -rw-r--r-- | node/Path.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node/Path.hpp b/node/Path.hpp index 1c3e5d3c..e1e65cb4 100644 --- a/node/Path.hpp +++ b/node/Path.hpp @@ -77,10 +77,10 @@ public: _k[1] = (uint64_t)reinterpret_cast<const struct sockaddr_in *>(&r)->sin_port; _k[2] = (uint64_t)l; } else if (r.ss_family == AF_INET6) { - ZT_FAST_MEMCPY(_k,reinterpret_cast<const struct sockaddr_in6 *>(&r)->sin6_addr.s6_addr,16); + memcpy(_k,reinterpret_cast<const struct sockaddr_in6 *>(&r)->sin6_addr.s6_addr,16); _k[2] = ((uint64_t)reinterpret_cast<const struct sockaddr_in6 *>(&r)->sin6_port << 32) ^ (uint64_t)l; } else { - ZT_FAST_MEMCPY(_k,&r,std::min(sizeof(_k),sizeof(InetAddress))); + memcpy(_k,&r,std::min(sizeof(_k),sizeof(InetAddress))); _k[2] += (uint64_t)l; } } |
