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:
committed by
Pouria Mousavizadeh Tehrani
parent
1d819aad17
commit
d836dae9f0
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user