VirtualBox

Changeset 49920 in vbox for trunk/src


Ignore:
Timestamp:
Dec 16, 2013 8:02:46 AM (11 years ago)
Author:
vboxsync
Message:

VBoxNetServices: moves bool operator== (const RTMAC&, const RTMAC&) to utils header.

Location:
trunk/src/VBox/NetworkServices
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/DHCP/Config.cpp

    r49918 r49920  
    10531053}
    10541054
    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 
    10641055/* Client */
    10651056Client::Client()
  • trunk/src/VBox/NetworkServices/NetLib/cpp/utils.h

    r49820 r49920  
    1919# define _NETLIB_CPP_UTILS_H_
    2020
     21/* less operator for IPv4 addresess */
    2122static bool operator <(const RTNETADDRIPV4& a, const RTNETADDRIPV4& b)
    2223{
     
    2425}
    2526
     27/*  Compares MAC addresses */
     28static 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}
    2634#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette