VirtualBox

Changeset 10962 in vbox


Ignore:
Timestamp:
Jul 29, 2008 10:24:13 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33832
Message:

iprt/types.h: Added RTMAC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/types.h

    r10944 r10962  
    12531253typedef const RTRECT *PCRTRECT;
    12541254
     1255
     1256/**
     1257 * Ethernet MAC address.
     1258 *
     1259 * The first 24 bits make up the Organisationally Unique Identifier (OUI),
     1260 * where the first bit (little endian) indicates multicast (set) / unicast,
     1261 * and the second bit indicates locally (set) / global administered. If all
     1262 * bits are set, it's a broadcast.
     1263 */
     1264typedef union RTMAC
     1265{
     1266    /** @todo add a bitfield view of this stuff. */
     1267    /** 8-bit view. */
     1268    uint8_t     au8[6];
     1269    /** 16-bit view. */
     1270    uint16_t    au16[3];
     1271} RTMAC;
     1272/** Pointer to a MAC address. */
     1273typedef RTMAC *PRTMAC;
     1274/** Pointer to a readonly MAC address. */
     1275typedef const RTMAC *PCRTMAC;
     1276
    12551277/** @} */
    12561278
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