VirtualBox

Ignore:
Timestamp:
Apr 7, 2014 4:12:55 PM (11 years ago)
Author:
vboxsync
Message:

NAT: Update function comment for icmp_error to reflect r93155 (it was
already out of sync with the code after r91460).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/ip_icmp.c

    r50980 r50986  
    600600 * It is reported as the bad ip packet.  The header should
    601601 * 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.
    606609 *
    607610 * @note This function will free msrc!
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette