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
This commit is contained in:
Marek Zarychta
2026-01-16 11:12:11 +01:00
committed by Pouria Mousavizadeh Tehrani
parent 1d819aad17
commit d836dae9f0
+1
View File
@@ -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);