VirtualBox

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


Ignore:
Timestamp:
Jan 26, 2017 1:59:10 PM (8 years ago)
Author:
vboxsync
Message:

NAT: ip_input - cosmetic: be consistent about using mlen.

File:
1 edited

Legend:

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

    r63562 r65455  
    141141    hlen = ip->ip_hl << 2;
    142142    if (   hlen < sizeof(struct ip)
    143         || hlen > m->m_len)
     143        || hlen > mlen)
    144144    {
    145145        /* min header length */
     
    185185    /* Should drop packet if mbuf too long? hmmm... */
    186186    if (mlen > ip->ip_len)
    187         m_adj(m, ip->ip_len - m->m_len);
     187        m_adj(m, ip->ip_len - mlen);
    188188
    189189    /* source must be unicast */
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