summaryrefslogtreecommitdiff
path: root/sys/dist
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2008-04-08 01:03:58 +0000
committerthorpej <thorpej@NetBSD.org>2008-04-08 01:03:58 +0000
commitf5c68c0b9fc4ff7e896f0f6d757995c19351d8a7 (patch)
treeb2d38957962ebc8a6d489268c1105d29a7ebcbc7 /sys/dist
parent27b03461ec930d8ba4c9885fa97fb79a0fa310fd (diff)
Change TCP stats from a structure to an array of uint64_t's.
Note: This is ABI-compatible with the old tcpstat structure; old netstat binaries will continue to work properly.
Diffstat (limited to 'sys/dist')
-rw-r--r--sys/dist/pf/net/pf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dist/pf/net/pf.c b/sys/dist/pf/net/pf.c
index 1da6880a2ec..dfd02ff06c9 100644
--- a/sys/dist/pf/net/pf.c
+++ b/sys/dist/pf/net/pf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pf.c,v 1.47 2008/04/07 06:31:27 thorpej Exp $ */
+/* $NetBSD: pf.c,v 1.48 2008/04/08 01:03:58 thorpej Exp $ */
/* $OpenBSD: pf.c,v 1.487 2005/04/22 09:53:18 dhartmei Exp $ */
/*
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pf.c,v 1.47 2008/04/07 06:31:27 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pf.c,v 1.48 2008/04/08 01:03:58 thorpej Exp $");
#include "bpfilter.h"
#include "pflog.h"
@@ -5829,7 +5829,7 @@ pf_check_proto_cksum(struct mbuf *m, int off, int len, u_int8_t p,
#endif
switch (p) {
case IPPROTO_TCP:
- tcpstat.tcps_rcvbadsum++;
+ tcpstat[TCP_STAT_RCVBADSUM]++;
break;
case IPPROTO_UDP:
udpstat[UDP_STAT_BADSUM]++;