git: e0f97bd73c2e - main - sysutils/pftop: Fix STATES display
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 10 Jan 2023 21:56:20 UTC
The branch main has been updated by grembo: URL: https://cgit.FreeBSD.org/ports/commit/?id=e0f97bd73c2e38fd3a4cf500b3f80f3166b0feca commit e0f97bd73c2e38fd3a4cf500b3f80f3166b0feca Author: Michael Gmelin <grembo@FreeBSD.org> AuthorDate: 2023-01-10 21:53:46 +0000 Commit: Michael Gmelin <grembo@FreeBSD.org> CommitDate: 2023-01-10 21:53:46 +0000 sysutils/pftop: Fix STATES display This stops pftop from segfaulting and makes it show the correct total states counter. Reported by: Herbert J. Skuhra <herbert@gojira.at> --- sysutils/pftop/Makefile | 2 +- sysutils/pftop/files/extra-patch-pftop.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sysutils/pftop/Makefile b/sysutils/pftop/Makefile index 73cf4707a070..f3c6d879f637 100644 --- a/sysutils/pftop/Makefile +++ b/sysutils/pftop/Makefile @@ -1,6 +1,6 @@ PORTNAME= pftop PORTVERSION= 0.8 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils net MAINTAINER= grembo@FreeBSD.org diff --git a/sysutils/pftop/files/extra-patch-pftop.c b/sysutils/pftop/files/extra-patch-pftop.c index e22198745b33..c066876c4b5c 100644 --- a/sysutils/pftop/files/extra-patch-pftop.c +++ b/sysutils/pftop/files/extra-patch-pftop.c @@ -343,7 +343,7 @@ $OpenBSD: patch-pftop_c,v 1.12 2009/12/02 21:16:10 sthen Exp $ #endif #ifdef HAVE_RULE_STATES +#ifdef HAVE_PFSYNC_KEY -+ print_fld_size(FLD_STATS, *pr->states_tot); ++ print_fld_size(FLD_STATS, pr->u_states_tot); +#else print_fld_size(FLD_STATS, pr->states); #endif