Skip to content

Commit

Permalink
Recongnize old sampler with missing algorithm tag #35
Browse files Browse the repository at this point in the history
  • Loading branch information
phaag committed Mar 26, 2023
1 parent 5d58d4c commit 7099d56
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/netflow/ipfix.c
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,11 @@ static void Process_ipfix_option_templates(exporterDomain_t *exporter, void *opt
} else if ((optionTemplate->flags & STDMASK) == STDFLAGS) {
dbg_printf("[%u] Old std sampling information found\n", exporter->info.id);
SetFlag(template->type, SAMPLER_TEMPLATE);
} else if ((optionTemplate->flags & STDSAMPLING34) == STDSAMPLING34) {
dbg_printf("[%u] Old std sampling information found - missing algorithm\n", exporter->info.id);
samplerOption->algorithm.length = 0;
samplerOption->algorithm.offset = 0;
SetFlag(template->type, SAMPLER_TEMPLATE);
} else {
dbg_printf("[%u] No Sampling information found\n", exporter->info.id);
}
Expand Down

0 comments on commit 7099d56

Please sign in to comment.