diff options
author | andre <andre@FreeBSD.org> | 2005-08-21 15:18:00 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2005-08-21 15:18:00 +0000 |
commit | 685b6138c1b7ab9901672008eeba1460ae0089d4 (patch) | |
tree | 3b658b96a9db6c1760627e401c7c6afbbc3e32e0 /sys/netinet/ip_icmp.c | |
parent | 11e9c09778f14d8940ca3e370836b6bb52af63de (diff) | |
download | FreeBSD-src-685b6138c1b7ab9901672008eeba1460ae0089d4.zip FreeBSD-src-685b6138c1b7ab9901672008eeba1460ae0089d4.tar.gz |
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
Diffstat (limited to 'sys/netinet/ip_icmp.c')
-rw-r--r-- | sys/netinet/ip_icmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c index 265562e..a6d04af 100644 --- a/sys/netinet/ip_icmp.c +++ b/sys/netinet/ip_icmp.c @@ -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)) |