git: 40c0d6735538 - stable/14 - ng_netflow v9: fix template re-announcement using packet count
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 24 Jan 2026 09:28:00 UTC
The branch stable/14 has been updated by pouria:
URL: https://cgit.FreeBSD.org/src/commit/?id=40c0d6735538a1557a9b53306dd70aa2fc8ae7d1
commit 40c0d6735538a1557a9b53306dd70aa2fc8ae7d1
Author: Marek Zarychta <zarychtam@plan-b.pwste.edu.pl>
AuthorDate: 2026-01-16 10:12:11 +0000
Commit: Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org>
CommitDate: 2026-01-24 09:23:28 +0000
ng_netflow v9: fix template re-announcement using packet count
Increment fe->sent_packets after export9_send().
Previously, NetFlow v9 templates were only re-announced based on
time, ignoring the packet count parameter (`templ_packets`).
PR: 270083
Reviewed by: glebius pouria
Approved by: glebius (mentor)
MFC after: 1 week
Sponsored by: Subcarpathian BSD User Group
(cherry picked from commit d836dae9f0d888d441234ea11e3cd91614c86aa2)
---
sys/netgraph/netflow/netflow_v9.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/netgraph/netflow/netflow_v9.c b/sys/netgraph/netflow/netflow_v9.c
index b6e9fca98408..e6b63a8aa36b 100644
--- a/sys/netgraph/netflow/netflow_v9.c
+++ b/sys/netgraph/netflow/netflow_v9.c
@@ -227,6 +227,7 @@ export9_send(priv_p priv, fib_export_p fe, item_p item, struct netflow_v9_packet
else
NG_FREE_ITEM(item);
+ fe->sent_packets++;
free(t, M_NETFLOW_GENERAL);
return (error);