Changeset 49920 in vbox for trunk/src/VBox/NetworkServices/NetLib/cpp
- Timestamp:
- Dec 16, 2013 8:02:46 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 91305
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/NetLib/cpp/utils.h
r49820 r49920 19 19 # define _NETLIB_CPP_UTILS_H_ 20 20 21 /* less operator for IPv4 addresess */ 21 22 static bool operator <(const RTNETADDRIPV4& a, const RTNETADDRIPV4& b) 22 23 { … … 24 25 } 25 26 27 /* Compares MAC addresses */ 28 static bool operator== (const RTMAC& lhs, const RTMAC& rhs) 29 { 30 return ( lhs.au16[0] == rhs.au16[0] 31 && lhs.au16[1] == rhs.au16[1] 32 && lhs.au16[2] == rhs.au16[2]); 33 } 26 34 #endif
Note:
See TracChangeset
for help on using the changeset viewer.