VirtualBox

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


Ignore:
Timestamp:
Dec 31, 2013 5:59:37 AM (11 years ago)
Author:
vboxsync
Message:

NAT/misc.c: slirp_ext_m_get: no need check cbMin against MSIZE and MCLBYTES assigning size to MCLBYTES in both cases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/misc.c

    r45089 r50016  
    496496    size_t size = MCLBYTES;
    497497    LogFlowFunc(("ENTER: cbMin:%d, ppvBuf:%p, pcbBuf:%p\n", cbMin, ppvBuf, pcbBuf));
    498     if (cbMin < MSIZE)
    499         size = MCLBYTES;
    500     else if (cbMin < MCLBYTES)
     498
     499    if (cbMin < MCLBYTES)
    501500        size = MCLBYTES;
    502501    else if (cbMin < MJUM9BYTES)
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