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:
parent
e875dfb826
commit
bb10780f9f
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user