VirtualBox

Changeset 32745 in vbox


Ignore:
Timestamp:
Sep 24, 2010 6:32:57 AM (14 years ago)
Author:
vboxsync
Message:

NAT: Don't let exceed the bounds of mbuf selecting corresponding mbuf zone.

File:
1 edited

Legend:

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

    r32744 r32745  
    752752
    753753        size = MCLBYTES;
    754         if (len < MSIZE)
     754        if (len + if_maxlinkhdr < MSIZE)
    755755            size = MCLBYTES;
    756         else if (len < MCLBYTES)
     756        else if (len + if_maxlinkhdr < MCLBYTES)
    757757            size = MCLBYTES;
    758         else if (len < MJUM9BYTES)
     758        else if (len + if_maxlinkhdr < MJUM9BYTES)
    759759            size = MJUM9BYTES;
    760         else if (len < MJUM16BYTES)
     760        else if (len + if_maxlinkhdr < MJUM16BYTES)
    761761            size = MJUM16BYTES;
    762762        else
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