pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

vnstat: Add npflog0 to ignored interfaces.



Module Name:	pkgsrc-wip
Committed By:	Kimmo Suominen <kimmo%suominen.com@localhost>
Pushed By:	kim
Date:		Mon Apr 6 00:46:01 2026 +0300
Changeset:	a233cad0c1735b3f876368ea4193b7b5eb391147

Modified Files:
	vnstat/distinfo
	vnstat/patches/patch-src_common.h
Added Files:
	vnstat/patches/patch-man_vnstat.conf.5
	vnstat/patches/patch-man_vnstatd.8
	vnstat/patches/patch-src_ifinfo.c

Log Message:
vnstat: Add npflog0 to ignored interfaces.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a233cad0c1735b3f876368ea4193b7b5eb391147

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 vnstat/distinfo                        |  5 ++++-
 vnstat/patches/patch-man_vnstat.conf.5 | 17 +++++++++++++++
 vnstat/patches/patch-man_vnstatd.8     | 39 ++++++++++++++++++++++++++++++++++
 vnstat/patches/patch-src_common.h      |  8 +++----
 vnstat/patches/patch-src_ifinfo.c      | 15 +++++++++++++
 5 files changed, 79 insertions(+), 5 deletions(-)

diffs:
diff --git a/vnstat/distinfo b/vnstat/distinfo
index b45ab0235c..ebd122213a 100644
--- a/vnstat/distinfo
+++ b/vnstat/distinfo
@@ -3,5 +3,8 @@ $NetBSD: distinfo,v 1.7 2024/10/10 19:56:01 nia Exp $
 BLAKE2s (vnstat-2.13.tar.gz) = 5def825fa8dc8ee5b50bce73847691ea6b0028287f9881374c8330c3ccb3038e
 SHA512 (vnstat-2.13.tar.gz) = 9b5d7b5085ab2ae39fd6b0d59afe56eb927b6e4ca1ca30ee7710afe2a412c4a1a8d756e095e9c3c81d182e3d6bb2efcd9a2a266e0048cac249477a09c1368969
 Size (vnstat-2.13.tar.gz) = 336647 bytes
+SHA1 (patch-man_vnstat.conf.5) = 6e9eec3dab4c1890eeec70b5eca753a23807260d
+SHA1 (patch-man_vnstatd.8) = e24c2622a6bc3c1ec4f0d2207416281fbb5ca595
 SHA1 (patch-src_cfg.c) = 8cbc8247fb2431f385afda806516d360a9ce69d8
-SHA1 (patch-src_common.h) = abd8b9f44cb7b5acc3a0952a7caddaf66a01d4bf
+SHA1 (patch-src_common.h) = 4c17fca48b560ea404a5f7442cd4c2eaa8057edf
+SHA1 (patch-src_ifinfo.c) = 656bfcf09153c176bedbb3742795745d82d2fe3e
diff --git a/vnstat/patches/patch-man_vnstat.conf.5 b/vnstat/patches/patch-man_vnstat.conf.5
new file mode 100644
index 0000000000..bbdc8a63ca
--- /dev/null
+++ b/vnstat/patches/patch-man_vnstat.conf.5
@@ -0,0 +1,17 @@
+$NetBSD$
+
+Add npflog0 to ignored interfaces.
+
+--- man/vnstat.conf.5.orig	2025-02-08 13:11:38.000000000 +0000
++++ man/vnstat.conf.5	2026-04-05 21:38:33.758328199 +0000
+@@ -207,8 +207,8 @@
+ Enable or disable automatic creation of new database entries for interfaces not
+ currently in the database even if the database file already exists when the
+ daemon is started. New database entries will also get created for new interfaces
+-seen while the daemon is running. Pseudo interfaces lo, lo0 and sit0 are always
+-excluded from getting added.
++seen while the daemon is running. Pseudo interfaces lo, lo0, npflog0, and sit0
++are always excluded from getting added.
+ 1 = enabled, 0 = disabled.
+ 
+ .TP
diff --git a/vnstat/patches/patch-man_vnstatd.8 b/vnstat/patches/patch-man_vnstatd.8
new file mode 100644
index 0000000000..86a90b7b75
--- /dev/null
+++ b/vnstat/patches/patch-man_vnstatd.8
@@ -0,0 +1,39 @@
+$NetBSD$
+
+Add npflog0 to ignored interfaces.
+
+--- man/vnstatd.8.orig	2025-02-08 13:11:48.000000000 +0000
++++ man/vnstatd.8	2026-04-05 21:41:02.030965144 +0000
+@@ -55,8 +55,8 @@
+ in the database directory that has been specified in the configuration
+ file. By default, if no database is found, a database will be created
+ during startup with entries for all available interfaces excluding pseudo
+-interfaces lo, lo0 and sit0. This automatic database entry creation behaviour
+-can be disabled using the
++interfaces lo, lo0, npflog0, and sit0. This automatic database entry creation
++behaviour can be disabled using the
+ .B --noadd
+ option. Alternatively, the
+ .B --alwaysadd
+@@ -92,8 +92,8 @@
+ Enable automatic creation of new database entries for interfaces not currently in
+ the database even if the database file already exists when the daemon is started. New
+ database entries will also get created for new interfaces seen while the daemon is
+-running. Pseudo interfaces lo, lo0 and sit0 are always excluded from getting added.
+-Using the option without
++running. Pseudo interfaces lo, lo0, npflog0, and sit0 are always excluded from
++getting added. Using the option without
+ .I mode
+ defined or with
+ .I mode
+@@ -150,8 +150,8 @@
+ disable the automatic creation of new database entries for all currently available
+ interfaces when the daemon is started with no existing database or with a database
+ containing zero interfaces. The daemon will still create an empty database if one doesn't
+-already exist. Pseudo interfaces lo, lo0 and sit0 are always excluded from getting
+-added regardless of this option.
++already exist. Pseudo interfaces lo, lo0, npflog0, and sit0 are always excluded from
++getting added regardless of this option.
+ 
+ .IP
+ When used in combination with
diff --git a/vnstat/patches/patch-src_common.h b/vnstat/patches/patch-src_common.h
index 113aba6806..78ebd02f81 100644
--- a/vnstat/patches/patch-src_common.h
+++ b/vnstat/patches/patch-src_common.h
@@ -1,10 +1,10 @@
-$NetBSD: patch-src_common.h,v 1.1 2024/10/10 19:56:02 nia Exp $
+$NetBSD$
 
 Include <fcntl.h> for open(2).
 
---- src/common.h.orig	2024-10-10 19:54:21.793147584 +0000
-+++ src/common.h
-@@ -5,6 +5,7 @@
+--- src/common.h.orig	2025-01-08 21:19:22.000000000 +0000
++++ src/common.h	2026-04-05 21:31:12.885893036 +0000
+@@ -6,6 +6,7 @@
  #include <stdlib.h>
  #include <stdint.h>
  #include <unistd.h>
diff --git a/vnstat/patches/patch-src_ifinfo.c b/vnstat/patches/patch-src_ifinfo.c
new file mode 100644
index 0000000000..8244b07dec
--- /dev/null
+++ b/vnstat/patches/patch-src_ifinfo.c
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Add npflog0 to ignored interfaces.
+
+--- src/ifinfo.c.orig	2025-01-07 19:57:18.000000000 +0000
++++ src/ifinfo.c	2026-04-05 21:34:38.850795078 +0000
+@@ -488,6 +488,8 @@
+ 		return 0;
+ 	} else if (strcmp(iface, "lo0") == 0) {
+ 		return 0;
++	} else if (strcmp(iface, "npflog0") == 0) {
++		return 0;
+ 	} else if (strcmp(iface, "sit0") == 0) {
+ 		return 0;
+ 	}


Home | Main Index | Thread Index | Old Index