Module Name: src Committed By: knakahara Date: Thu Aug 6 07:38:54 UTC 2020
Modified Files: src/usr.bin/netstat: inet.c inet6.c Log Message: add missing {IP,IP6}_STAT_NOIPSEC to netstat. To generate a diff of this commit: cvs rdiff -u -r1.110 -r1.111 src/usr.bin/netstat/inet.c cvs rdiff -u -r1.74 -r1.75 src/usr.bin/netstat/inet6.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/netstat/inet.c diff -u src/usr.bin/netstat/inet.c:1.110 src/usr.bin/netstat/inet.c:1.111 --- src/usr.bin/netstat/inet.c:1.110 Sun Aug 18 04:14:40 2019 +++ src/usr.bin/netstat/inet.c Thu Aug 6 07:38:54 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: inet.c,v 1.110 2019/08/18 04:14:40 kamil Exp $ */ +/* $NetBSD: inet.c,v 1.111 2020/08/06 07:38:54 knakahara Exp $ */ /* * Copyright (c) 1983, 1988, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "from: @(#)inet.c 8.4 (Berkeley) 4/20/94"; #else -__RCSID("$NetBSD: inet.c,v 1.110 2019/08/18 04:14:40 kamil Exp $"); +__RCSID("$NetBSD: inet.c,v 1.111 2020/08/06 07:38:54 knakahara Exp $"); #endif #endif /* not lint */ @@ -622,6 +622,7 @@ ip_stats(u_long off, const char *name) p(IP_STAT_CANTFORWARD, "\t%" PRIu64 " packet%s not forwardable\n"); p(IP_STAT_REDIRECTSENT, "\t%" PRIu64 " redirect%s sent\n"); p(IP_STAT_NOGIF, "\t%" PRIu64 " packet%s no matching gif found\n"); + p(IP_STAT_NOIPSEC, "\t%" PRIu64 " packet%s no matching ipsecif found\n"); p(IP_STAT_LOCALOUT, "\t%" PRIu64 " packet%s sent from this host\n"); p(IP_STAT_RAWOUT, "\t%" PRIu64 " packet%s sent with fabricated ip header\n"); p(IP_STAT_ODROPPED, "\t%" PRIu64 " output packet%s dropped due to no bufs, etc.\n"); Index: src/usr.bin/netstat/inet6.c diff -u src/usr.bin/netstat/inet6.c:1.74 src/usr.bin/netstat/inet6.c:1.75 --- src/usr.bin/netstat/inet6.c:1.74 Thu Apr 23 00:24:16 2020 +++ src/usr.bin/netstat/inet6.c Thu Aug 6 07:38:54 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: inet6.c,v 1.74 2020/04/23 00:24:16 joerg Exp $ */ +/* $NetBSD: inet6.c,v 1.75 2020/08/06 07:38:54 knakahara Exp $ */ /* BSDI inet.c,v 2.3 1995/10/24 02:19:29 prb Exp */ /* @@ -64,7 +64,7 @@ #if 0 static char sccsid[] = "@(#)inet.c 8.4 (Berkeley) 4/20/94"; #else -__RCSID("$NetBSD: inet6.c,v 1.74 2020/04/23 00:24:16 joerg Exp $"); +__RCSID("$NetBSD: inet6.c,v 1.75 2020/08/06 07:38:54 knakahara Exp $"); #endif #endif /* not lint */ @@ -724,6 +724,7 @@ ip6_stats(u_long off, const char *name) p(IP6_STAT_EXTHDRTOOLONG, "\t%llu packet%s whose headers are not continuous\n"); p(IP6_STAT_NOGIF, "\t%llu tunneling packet%s that can't find gif\n"); + p(IP6_STAT_NOIPSEC, "\t%llu tunneling packet%s that can't find ipsecif\n"); p(IP6_STAT_TOOMANYHDR, "\t%llu packet%s discarded due to too many headers\n");