From 93e775d9e7a6334656688cf499b5da371fe21128 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 5 Jun 1997 15:05:42 +0000 Subject: ICMP_MASKLEN -> icmpstat.icps_badlen++; koji@math.human.nagoya-u.ac.jp --- sys/netinet/ip_icmp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys') 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; -- cgit v1.2.3