Use network user ptr in lookup for Ethernet frame handling to eliminate map lookup.
This commit is contained in:
parent
83ef98a9dc
commit
d6f0f1a82a
5 changed files with 27 additions and 25 deletions
|
@ -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); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue