mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-13 04:38:28 +00:00
Use network user ptr in lookup for Ethernet frame handling to eliminate map lookup.
This commit is contained in:
@ -333,9 +333,9 @@ public:
|
||||
void destroy();
|
||||
|
||||
/**
|
||||
* @return User ptr
|
||||
* @return Pointer to user PTR (modifiable user ptr used in API)
|
||||
*/
|
||||
inline void *userPtr() const throw() { return _uptr; }
|
||||
inline void **userPtr() throw() { return &_uptr; }
|
||||
|
||||
inline bool operator==(const Network &n) const throw() { return (_id == n._id); }
|
||||
inline bool operator!=(const Network &n) const throw() { return (_id != n._id); }
|
||||
|
Reference in New Issue
Block a user