Commit correct version of the change and note the name of the new

sysctl: net.inet.icmp.quotelen and defaults to 8 bytes.

Pointy hat to:	andre
This commit is contained in:
Andre Oppermann 2005-08-21 15:18:00 +00:00
parent e875dfb826
commit bb10780f9f

View File

@ -193,7 +193,7 @@ icmp_error(n, type, code, dest, mtu)
* Calculate length to quote from original packet and
* prevent the ICMP mbuf from overflowing.
*/
icmplen = min(oiplen + max(8, icmp_quote), oip->ip_len);
icmplen = min(oiplen + max(8, icmp_quotelen), oip->ip_len);
icmplen = min(icmplen, M_TRAILINGSPACE(m) -
(ICMP_MINLEN + sizeof(struct ip)));
if (icmplen < sizeof(struct ip))