Changeset 23005 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Sep 14, 2009 2:07:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/ip_input.c
r22984 r23005 203 203 } 204 204 ip = mtod(m, struct ip *); 205 hlen = ip->ip_ len;205 hlen = ip->ip_hl << 2; 206 206 } 207 207 else … … 490 490 q->m_nextpkt = NULL; 491 491 m_cat(pData, m, q); 492 493 m->m_len += (ip->ip_hl << 2); 494 m->m_data -= (ip->ip_hl << 2); 495 ip = mtod(m, struct ip *); /*update ip pointer */ 492 496 } 493 497 … … 497 501 * Make header visible. 498 502 */ 499 #if 0 500 ip->ip_len = (ip->ip_hl << 2) + next; 501 #else 503 502 504 ip->ip_len = next; 503 #endif504 505 ip->ip_src = fp->ipq_src; 505 506 ip->ip_dst = fp->ipq_dst; … … 508 509 RTMemFree(fp); 509 510 510 m->m_len += (ip->ip_hl << 2); 511 m->m_data -= (ip->ip_hl << 2); 511 Assert((ip->ip_len == next)); 512 512 /* some debugging cruft by sklower, below, will go away soon */ 513 513 #if 0
Note:
See TracChangeset
for help on using the changeset viewer.