VirtualBox

Changeset 8358 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Apr 24, 2008 1:16:01 PM (17 years ago)
Author:
vboxsync
Message:

only call slirp_set_ethaddr if we actually get a MAC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DrvNAT.cpp

    r8341 r8358  
    367367static void drvNATSetMac(PDRVNAT pData)
    368368{
    369     PDMMAC Mac;
    370369    if (pData->pConfig)
     370    {
     371        PDMMAC Mac;
    371372        pData->pConfig->pfnGetMac(pData->pConfig, &Mac);
    372     slirp_set_ethaddr(pData->pNATState, Mac.au8);
     373        slirp_set_ethaddr(pData->pNATState, Mac.au8);
     374    }
    373375}
    374376
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