diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-05 15:05:42 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-05 15:05:42 +0000 |
commit | 93e775d9e7a6334656688cf499b5da371fe21128 (patch) | |
tree | 7acb3f21b7411fd891eb97bb6fd797a64acf172a /sys/netinet/ip_icmp.c | |
parent | 491e52ecb74edd522c9c87a25be161ff6ebe419f (diff) |
ICMP_MASKLEN -> icmpstat.icps_badlen++; koji@math.human.nagoya-u.ac.jp
Diffstat (limited to 'sys/netinet/ip_icmp.c')
-rw-r--r-- | sys/netinet/ip_icmp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c index 80604ee6fac..511c364e810 100644 --- a/sys/netinet/ip_icmp.c +++ b/sys/netinet/ip_icmp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_icmp.c,v 1.6 1997/02/11 22:23:23 kstailey Exp $ */ +/* $OpenBSD: ip_icmp.c,v 1.7 1997/06/05 15:05:41 deraadt Exp $ */ /* $NetBSD: ip_icmp.c,v 1.19 1996/02/13 23:42:22 christos Exp $ */ /* @@ -348,8 +348,10 @@ icmp_input(m, va_alist) * We are not able to respond with all ones broadcast * unless we receive it over a point-to-point interface. */ - if (icmplen < ICMP_MASKLEN) + if (icmplen < ICMP_MASKLEN) { + icmpstat.icps_badlen++; break; + } if (ip->ip_dst.s_addr == INADDR_BROADCAST || ip->ip_dst.s_addr == INADDR_ANY) icmpdst.sin_addr = ip->ip_src; |