VirtualBox

Changeset 38937 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 5, 2011 6:56:51 AM (13 years ago)
Author:
vboxsync
Message:

Long comments like this goes in the commit message. Keep the code clean.

File:
1 edited

Legend:

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

    r38936 r38937  
    14721472                pDstTab->aIfs[iIfDst].pIf            = pIf;
    14731473                pDstTab->aIfs[iIfDst].fReplaceDstMac = fExact;
    1474                 /*
    1475                  * We need to compare an updated destination address against host's address.
    1476                  * If we compare the address extracted from the packet it will match host's MAC
    1477                  * and will be passed up the stack which will cause duplicates if IP forwarding
    1478                  * is enabled on the host (see #5905).
    1479                  */
     1474                intnetR0BusyIncIf(pIf);
     1475
    14801476                if (fExact)
    1481                     pDstMacAddr = &pIf->MacAddr;
    1482                 intnetR0BusyIncIf(pIf);
     1477                    pDstMacAddr = &pIf->MacAddr; /* Avoids duplicates being sent to the host. */
    14831478            }
    14841479        }
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