1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149350

View File

@ -193,7 +193,7 @@ icmp_error(n, type, code, dest, mtu)
* Calculate length to quote from original packet and * Calculate length to quote from original packet and
* prevent the ICMP mbuf from overflowing. * 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) - icmplen = min(icmplen, M_TRAILINGSPACE(m) -
(ICMP_MINLEN + sizeof(struct ip))); (ICMP_MINLEN + sizeof(struct ip)));
if (icmplen < sizeof(struct ip)) if (icmplen < sizeof(struct ip))