VirtualBox

Changeset 107792 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Jan 15, 2025 4:15:30 PM (4 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
166931
Message:

Devices/Network/DevE1000.cpp: Convert redundant condition in if into a debug assertion, cbFrame is at least 14 bytes at this point due to a check before, bugref:3409

File:
1 edited

Legend:

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

    r106061 r107792  
    42214221
    42224222    /* Add VLAN tag */
    4223     if (cbFrame > 12 && pThis->fVTag && pSg->cbUsed + 4 <= pSg->cbAvailable)
    4224     {
     4223    if (pThis->fVTag && pSg->cbUsed + 4 <= pSg->cbAvailable)
     4224    {
     4225        Assert(cbFrame > 12);
     4226
    42254227        E1kLog3(("%s Inserting VLAN tag %08x\n",
    42264228            pThis->szPrf, RT_BE2H_U16((uint16_t)VET) | (RT_BE2H_U16(pThis->u16VTagTCI) << 16)));
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