VirtualBox

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


Ignore:
Timestamp:
May 5, 2009 3:02:08 PM (16 years ago)
Author:
vboxsync
Message:

NAT: UDP gaps removed (detected with VPN)

File:
1 edited

Legend:

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

    r19313 r19383  
    521521         * but I don't know the max packet size for DNS lookups
    522522         */
     523#if 0
    523524        len = M_FREEROOM(m);
    524525        /* if (so->so_fport != htons(53)) */
     
    533534            }
    534535        }
    535 
     536#else
     537        len = m->m_size - (if_maxlinkhdr + sizeof(struct udpiphdr)); /* get max free room here*/
     538#endif
    536539        m->m_len = recvfrom(so->s, m->m_data, len, 0,
    537540                            (struct sockaddr *)&addr, &addrlen);
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