VirtualBox

Changeset 14243 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Nov 17, 2008 10:15:31 AM (16 years ago)
Author:
vboxsync
Message:

IP fragmentation seems works fine
todo: fix the checksum calculation

File:
1 edited

Legend:

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

    r14232 r14243  
    514514     */
    515515    ipstat.ips_fragments++;
    516     m->m_data = (void *)ip;
     516    m->m_data = (caddr_t)ip;
    517517
    518518    /* Previous ip_reass() started here. */
     
    521521     * would confuse code below.
    522522     */
     523#if 0
    523524    m->m_data += hlen;
    524525    m->m_len -= hlen;
     526#endif
    525527
    526528    /*
     
    646648     */
    647649    m = q;
     650#if 0
    648651    t = m->m_next;
    649652    m->m_next = NULL;
    650653    m_cat(pData, m, t);
     654#endif
    651655    nq = q->m_nextpkt;
    652656    q->m_nextpkt = NULL;
     
    668672    nipq--;
    669673    free(fp);
     674
    670675    m->m_len += (ip->ip_hl << 2);
     676#if 0
    671677    m->m_data -= (ip->ip_hl << 2);
     678#endif
    672679    /* some debugging cruft by sklower, below, will go away soon */
    673680#if 0
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