VirtualBox

Ignore:
Timestamp:
Dec 16, 2013 8:02:46 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
91305
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.

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