VirtualBox

Changeset 10963 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Jul 29, 2008 10:26:39 PM (16 years ago)
Author:
vboxsync
Message:

types: Merged PDMMAC and RTNETMAC into RTMAC.

File:
1 edited

Legend:

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

    r10960 r10963  
    2828 */
    2929
    30 #ifndef ___iprt_netprotfmt_h
    31 #define ___iprt_netprotfmt_h
     30#ifndef ___iprt_net_h
     31#define ___iprt_net_h
    3232
    3333#include <iprt/cdefs.h>
    3434#include <iprt/types.h>
    35 #include <VBox/types.h> /** @todo switch around PDMMAC and NETMAC. */
    3635#include <iprt/assert.h>
    3736
     
    4342 * @{
    4443 */
    45 
    46 /** A Ethernet MAC address. */
    47 typedef PDMMAC RTNETMAC;
    48 /** Pointer to an ethernet MAC address. */
    49 typedef RTNETMAC *PRTNETMAC;
    50 /** Pointer to a const ethernet MAC address. */
    51 typedef RTNETMAC const *PCRTNETMAC;
    5244
    5345/**
     
    8072    uint32_t Network;
    8173    /** The node ID. (Defaults to the MAC address apparently.) */
    82     RTNETMAC Node;
     74    RTMAC Node;
    8375} RTNETADDRIPX;
    8476#pragma pack(0)
     
    109101    RTNETADDRIPX Ipx;
    110102    /** MAC address view. */
    111     RTNETMAC Mac;
     103    RTMAC Mac;
    112104} RTNETADDRU;
    113105AssertCompileSize(RTNETADDRU, 16);
     
    124116typedef struct RTNETETHERHDR
    125117{
    126     RTNETMAC    MacDst;
    127     RTNETMAC    MacSrc;
     118    RTMAC       MacDst;
     119    RTMAC       MacSrc;
    128120    /** Ethernet frame type or frame size, depending on the kind of ethernet.
    129121     * This is big endian on the wire. */
     
    324316    RTNETARPHDR     Hdr;
    325317    /** The sender hardware address. */
    326     RTNETMAC        ar_sha;
     318    RTMAC           ar_sha;
    327319    /** The sender protocol address. */
    328320    RTNETADDRIPV4   ar_spa;
    329321    /** The target hardware address. */
    330     RTNETMAC        ar_tha;
     322    RTMAC           ar_tha;
    331323    /** The arget protocol address. */
    332324    RTNETADDRIPV4   ar_tpa;
     
    349341#endif
    350342
    351 
    352 
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