Changeset 50986 in vbox for trunk/src/VBox/Devices/Network/slirp
- Timestamp:
- Apr 7, 2014 4:12:55 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/ip_icmp.c
r50980 r50986 600 600 * It is reported as the bad ip packet. The header should 601 601 * be fully correct and in host byte order. 602 * ICMP fragmentation is illegal. All machines must accept 576 bytes in one 603 * packet. The maximum payload is 576-20(ip hdr)-8(icmp hdr)=548 604 * @note: implementation note: MSIZE is 256 bytes (minimal buffer), m_getjcl we allocate two mbufs on: clust_zone 605 * and mbuf_zone. the maximum payload 256 - 14 (Ethernet header) - 20 (IPv4 hdr) - 8 (ICMPv4 header) = 214 602 * ICMP fragmentation is illegal. 603 * 604 * @note: implementation note: MSIZE is 256 bytes (minimal buffer). 605 * We always truncate original payload to 8 bytes required by the RFC, 606 * so the largest possible datagram is 14 (ethernet) + 20 (ip) + 607 * 8 (icmp) + 60 (max original ip with options) + 8 (original payload) 608 * = 110 bytes which fits into sinlge mbuf. 606 609 * 607 610 * @note This function will free msrc!
Note:
See TracChangeset
for help on using the changeset viewer.