From 2ea1f6b67369a6daf88e977de595f38b7637e7e5 Mon Sep 17 00:00:00 2001 From: thorpej Date: Fri, 25 Oct 1996 07:41:35 +0000 Subject: [PATCH] Add the `toolong' count to the IP stats display. --- usr.bin/netstat/inet.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c index 70b6e4e6e8b3..3671091f45cf 100644 --- a/usr.bin/netstat/inet.c +++ b/usr.bin/netstat/inet.c @@ -1,4 +1,4 @@ -/* $NetBSD: inet.c,v 1.17 1996/10/08 01:18:10 explorer Exp $ */ +/* $NetBSD: inet.c,v 1.18 1996/10/25 07:41:35 thorpej Exp $ */ /* * Copyright (c) 1983, 1988, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "from: @(#)inet.c 8.4 (Berkeley) 4/20/94"; #else -static char *rcsid = "$NetBSD: inet.c,v 1.17 1996/10/08 01:18:10 explorer Exp $"; +static char *rcsid = "$NetBSD: inet.c,v 1.18 1996/10/25 07:41:35 thorpej Exp $"; #endif #endif /* not lint */ @@ -301,6 +301,7 @@ ip_stats(off, name) p(ips_badsum, "\t%lu bad header checksum%s\n"); p(ips_toosmall, "\t%lu with size smaller than minimum\n"); p(ips_tooshort, "\t%lu with data size < data length\n"); + p(ips_toolong, "\t%lu with length > max ip packet size\n"); p(ips_badhlen, "\t%lu with header length < data size\n"); p(ips_badlen, "\t%lu with data length < header length\n"); p(ips_badoptions, "\t%lu with bad options\n");