Changeset 22576 in vbox
- Timestamp:
- Aug 30, 2009 8:04:02 PM (15 years ago)
- 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 307 307 DEBUG_CALL("icmp_input"); 308 308 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); 310 310 311 311 icmpstat.icps_received++; -
trunk/src/VBox/Devices/Network/slirp/sbuf.c
r21687 r22576 82 82 DEBUG_ARG("so = %lx", (long)so); 83 83 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); 85 85 86 86 STAM_COUNTER_INC(&pData->StatIOSBAppend); -
trunk/src/VBox/Devices/Network/slirp/slirp.c
r22543 r22576 1841 1841 ehdr = mtod(m, struct ethhdr *); 1842 1842 memset(ehdr->h_source, 0xff, ETH_ALEN); 1843 ahdr = (struct a hdr *)&ehdr[1];1843 ahdr = (struct arphdr *)&ehdr[1]; 1844 1844 ahdr->ar_hrd = htons(1); 1845 1845 ahdr->ar_pro = htons(ETH_P_IP); … … 1856 1856 LogRel(("NAT: ARP request sent\n")); 1857 1857 } 1858 1858 1859 /* updates the arp cache 1859 1860 * @returns 0 - if has found and updated … … 1873 1874 return 1; 1874 1875 } 1876 1875 1877 void slirp_arp_cache_add(PNATState pData, uint32_t ip, const uint8_t *ether) 1876 1878 {
Note:
See TracChangeset
for help on using the changeset viewer.