VirtualBox

Changeset 26598 in vbox


Ignore:
Timestamp:
Feb 17, 2010 4:52:50 AM (15 years ago)
Author:
vboxsync
Message:

NAT: read no more than available space in the mbuf.

File:
1 edited

Legend:

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

    r26495 r26598  
    645645
    646646        len = sizeof(struct udpiphdr) + ETH_HLEN;
     647        if (n > (if_mtu - len))
     648        {
     649            n = if_mtu - len; /* can't read than we can put in the mbuf*/
     650        }
    647651        len += n;
    648652
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