Use network user ptr in lookup for Ethernet frame handling to eliminate map lookup.

This commit is contained in:
Adam Ierymenko 2016-01-12 11:34:22 -08:00
parent 83ef98a9dc
commit d6f0f1a82a
5 changed files with 27 additions and 25 deletions

View file

@ -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); }