Changeset 21385 in vbox for trunk/src/VBox/Devices/Network/slirp
- Timestamp:
- Jul 8, 2009 10:00:30 AM (16 years ago)
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/ip_icmp.c
r20961 r21385 529 529 { 530 530 int new_m_size; 531 m _adj(m, if_maxlinkhdr);531 m->m_data += if_maxlinkhdr; 532 532 new_m_size = sizeof(struct ip) + ICMP_MINLEN + msrc->m_len + ICMP_MAXDATALEN; 533 533 if (new_m_size>m->m_size) -
trunk/src/VBox/Devices/Network/slirp/ip_output.c
r20164 r21385 201 201 goto sendorfree; 202 202 } 203 m _adj(m, if_maxlinkhdr);203 m->m_data += if_maxlinkhdr; 204 204 mhip = mtod(m, struct ip *); 205 205 *mhip = *ip; -
trunk/src/VBox/Devices/Network/slirp/mbuf.c
r20164 r21385 188 188 m_adj(struct mbuf *m, int len) 189 189 { 190 int mlen = m->m_len; 190 191 if (m == NULL) 191 192 return; … … 202 203 m->m_len -= len; 203 204 } 205 Assert(m->m_len > 0); 204 206 } 205 207 -
trunk/src/VBox/Devices/Network/slirp/socket.c
r21049 r21385 576 576 } 577 577 /* adjust both parameters to maks M_FREEROOM calculate correct */ 578 m _adj(m, if_maxlinkhdr + sizeof(struct udphdr) + sizeof(struct ip));578 m->m_data += if_maxlinkhdr + sizeof(struct udphdr) + sizeof(struct ip); 579 579 580 580 /*
Note:
See TracChangeset
for help on using the changeset viewer.