Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jan 2023 21:58:15 GMT
From:      Michael Gmelin <grembo@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: 5159e8dfa71f - 2023Q1 - sysutils/pftop: Fix STATES display
Message-ID:  <202301102158.30ALwFQv080257@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2023Q1 has been updated by grembo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5159e8dfa71f7adcc112b979c389e0057d1fc6c4

commit 5159e8dfa71f7adcc112b979c389e0057d1fc6c4
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:57:11 +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>
    
    (cherry picked from commit e0f97bd73c2e38fd3a4cf500b3f80f3166b0feca)
---
 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202301102158.30ALwFQv080257>