VirtualBox

Ignore:
Timestamp:
Sep 18, 2015 1:43:11 AM (9 years ago)
Author:
vboxsync
Message:

VBoxNetFlt/darwin: Cosmetics - fSrc (packet source) is not a bitmask,
use plain equality test instead of bitwise test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/darwin/VBoxNetFlt-darwin.cpp

    r57358 r57816  
    634634     * to a buffer containing all zeros and pray that works for all frames...
    635635     */
    636     if (pSG->cbTotal < 60 && (fSrc & INTNETTRUNKDIR_HOST))
     636    if (pSG->cbTotal < 60 && (fSrc == INTNETTRUNKDIR_HOST))
    637637    {
    638638        AssertReturnVoid(iSeg < cSegs);
     
    903903     * ASSUMES this only applies to outbound IP packets.
    904904     */
    905     if (    (fSrc & INTNETTRUNKDIR_HOST)
     905    if (    (fSrc == INTNETTRUNKDIR_HOST)
    906906        &&  eProtocol == PF_INET)
    907907    {
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