VirtualBox

Changeset 22576 in vbox


Ignore:
Timestamp:
Aug 30, 2009 8:04:02 PM (15 years ago)
Author:
vboxsync
Message:

NAT: logging, warnings

Location:
trunk/src/VBox/Devices/Network/slirp
Files:
3 edited

Legend:

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

    r21996 r22576  
    307307    DEBUG_CALL("icmp_input");
    308308    DEBUG_ARG("m = %lx", (long )m);
    309     DEBUG_ARG("m_len = %d", m->m_len);
     309    DEBUG_ARG("m_len = %d", m ? m->m_len : 0);
    310310
    311311    icmpstat.icps_received++;
  • trunk/src/VBox/Devices/Network/slirp/sbuf.c

    r21687 r22576  
    8282    DEBUG_ARG("so = %lx", (long)so);
    8383    DEBUG_ARG("m = %lx", (long)m);
    84     DEBUG_ARG("m->m_len = %d", m->m_len);
     84    DEBUG_ARG("m->m_len = %d", m ? m->m_len : 0);
    8585
    8686    STAM_COUNTER_INC(&pData->StatIOSBAppend);
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r22543 r22576  
    18411841    ehdr = mtod(m, struct ethhdr *);
    18421842    memset(ehdr->h_source, 0xff, ETH_ALEN);
    1843     ahdr = (struct ahdr *)&ehdr[1];
     1843    ahdr = (struct arphdr *)&ehdr[1];
    18441844    ahdr->ar_hrd = htons(1);
    18451845    ahdr->ar_pro = htons(ETH_P_IP);
     
    18561856    LogRel(("NAT: ARP request sent\n"));
    18571857}
     1858
    18581859/* updates the arp cache
    18591860 * @returns 0 - if has found and updated
     
    18731874    return 1;
    18741875}
     1876
    18751877void slirp_arp_cache_add(PNATState pData, uint32_t ip, const uint8_t *ether)
    18761878{
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