Changeset 50015 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Dec 31, 2013 2:57:28 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/ip_icmp.c
r50014 r50015 725 725 m->m_data -= shlen + RT_OFFSETOF(struct icmp, icmp_ip); /* _m_: shifts m_data to the start of ICMP header */ 726 726 m->m_len += s_ip_len + shlen + RT_OFFSETOF(struct icmp, icmp_ip); /* _m_: m_len counts bytes in IP payload */ 727 727 728 /** 729 * It asserts if calculation above is wrong. 730 */ 731 Assert(icp == mtod(m, struct icmp*)); 732 728 733 icp->icmp_cksum = 0; 729 734 icp->icmp_cksum = cksum(m, m->m_len); … … 743 748 m->m_data -= hlen; 744 749 m->m_len += hlen; 750 751 /** 752 * paranoid. if something goes wrong previous assert should be triggered. 753 */ 754 Assert(ip == mtod(m, struct ip*)); 745 755 (void) ip_output0(pData, (struct socket *)NULL, m, 1); 746 756
Note:
See TracChangeset
for help on using the changeset viewer.