Changeset 15891 in vbox for trunk/src/VBox/Devices/Network/slirp
- Timestamp:
- Jan 12, 2009 6:30:25 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.c
r15890 r15891 1072 1072 /* Note: we add to align the IP header */ 1073 1073 1074 if (M_FREEROOM(m) < pkt_len + 2)1075 { 1076 m_inc(m, pkt_len + 2);1077 } 1078 m->m_len = pkt_len + 2;1079 memcpy(m->m_data + 2, pkt, pkt_len);1074 if (M_FREEROOM(m) < pkt_len) 1075 { 1076 m_inc(m, pkt_len); 1077 } 1078 m->m_len = pkt_len ; 1079 memcpy(m->m_data, pkt, pkt_len); 1080 1080 1081 1081 proto = ntohs(*(uint16_t *)(pkt + 12)); … … 1094 1094 * the first outgoing connection gets an incorrect timestamp. */ 1095 1095 updtime(pData); 1096 m->m_data += ETH_HLEN + 2;1097 m->m_len -= ETH_HLEN + 2;1096 m->m_data += ETH_HLEN; 1097 m->m_len -= ETH_HLEN; 1098 1098 ip_input(pData, m); 1099 1099 break;
Note:
See TracChangeset
for help on using the changeset viewer.