You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ipt_netflow: optionally seed initial template ID from PRNG
If we're always starting from 256, a module reload could result in the
client getting data under template IDs that were used under the previous
configuration and might not match (or worse, wrongly match). We add a
compilation option to start the template ID range from a random number,
reducing greatly the chances of such an accident occuring.
Since we're starting from a random number, we now have to check for
wrapping, as the random number might be close to 0xFFFF, which would
mean exporting template with IDs under 256 that are reserved.
v2: Fix the log output by keeping a separate count of the templates
generated by the module.
Signed-off-by: Simon Chopin <[email protected]>
[[email protected]: Fixed incorrect if statement]
Signed-off-by: ABC <[email protected]>
0 commit comments