Changeset 19759 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- May 16, 2009 6:55:09 AM (16 years ago)
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/ip_input.c
r17191 r19759 293 293 */ 294 294 ipstat.ips_fragments++; 295 m->m_hdr.header = ip;296 295 297 296 /* Previous ip_reass() started here. */ … … 328 327 } 329 328 330 #define GETIP(m) ((struct ip*)( (m)->m_hdr.header))329 #define GETIP(m) ((struct ip*)(MBUF_IP_HEADER(m))) 331 330 332 331 -
trunk/src/VBox/Devices/Network/slirp/mbuf.h
r19525 r19759 74 74 caddr_t mh_data; /* Location of data */ 75 75 int mh_len; /* Amount of data in this mbuf */ 76 void *header; /*XXX: in real BSD sources this field lays in pkthdr structure*/77 76 }; 78 77 … … 147 146 #define MBUF_HEAD(m) ((caddr_t)(((m)->m_flags & M_EXT) ? (m)->m_ext : (m)->m_dat)) 148 147 148 #define MBUF_IP_HEADER(m) (caddr_t)(MBUF_HEAD(m) + if_maxlinkhdr) 149 149 150 #endif
Note:
See TracChangeset
for help on using the changeset viewer.