git: d836dae9f0d8 - main - ng_netflow v9: fix template re-announcement using packet count
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 16 Jan 2026 18:39:43 UTC
The branch main has been updated by pouria:
URL: https://cgit.FreeBSD.org/src/commit/?id=d836dae9f0d888d441234ea11e3cd91614c86aa2
commit d836dae9f0d888d441234ea11e3cd91614c86aa2
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-16 18:36:53 +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
---
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);