- Timestamp:
- Dec 16, 2013 8:02:46 AM (11 years ago)
- Location:
- trunk/src/VBox/NetworkServices
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/DHCP/Config.cpp
r49918 r49920 1053 1053 } 1054 1054 1055 /* Utility */1056 bool operator== (const RTMAC& lhs, const RTMAC& rhs)1057 {1058 return ( lhs.au16[0] == rhs.au16[0]1059 && lhs.au16[1] == rhs.au16[1]1060 && lhs.au16[2] == rhs.au16[2]);1061 }1062 1063 1064 1055 /* Client */ 1065 1056 Client::Client() -
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.