diff options
author | alex <alex@FreeBSD.org> | 1998-07-18 23:27:15 +0000 |
---|---|---|
committer | alex <alex@FreeBSD.org> | 1998-07-18 23:27:15 +0000 |
commit | 22c2ae2a77d8f1014a1953a1d3c66767e6ae9685 (patch) | |
tree | 34ccc83c78cdf97d6a86d337b53e41e363c8c86e /sys/netinet | |
parent | 77ec90992fd1d73a7b596890af1bda2f4a68a562 (diff) | |
download | FreeBSD-src-22c2ae2a77d8f1014a1953a1d3c66767e6ae9685.zip FreeBSD-src-22c2ae2a77d8f1014a1953a1d3c66767e6ae9685.tar.gz |
Don't log ICMP type and subtype for non-zero offset packet fragments.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_fw.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/netinet/ip_fw.c b/sys/netinet/ip_fw.c index ec1a608..a243916 100644 --- a/sys/netinet/ip_fw.c +++ b/sys/netinet/ip_fw.c @@ -12,7 +12,7 @@ * * This software is provided ``AS IS'' without any warranties of any kind. * - * $Id: ip_fw.c,v 1.91 1998/07/02 05:49:08 julian Exp $ + * $Id: ip_fw.c,v 1.92 1998/07/06 03:20:13 julian Exp $ */ /* @@ -359,7 +359,10 @@ ipfw_report(struct ip_fw *f, struct ip *ip, printf(":%d", ntohs(udp->uh_dport)); break; case IPPROTO_ICMP: - printf("ICMP:%u.%u ", icmp->icmp_type, icmp->icmp_code); + if ((ip->ip_off & IP_OFFMASK) == 0) + printf("ICMP:%u.%u ", icmp->icmp_type, icmp->icmp_code); + else + printf("ICMP "); print_ip(ip->ip_src); printf(" "); print_ip(ip->ip_dst); |