Skip to content

Commit

Permalink
fix: backward compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
gnought committed May 1, 2023
1 parent b049e91 commit 9056e18
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ipt_NETFLOW.c
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@ static int flows_dump_seq_show(struct seq_file *seq, void *v)
seq_printf(seq, "%d %04x %x",
st->pcache,
hash_netflow(&nf->tuple),
(!!inactive_needs_export(nf, i_timeout, jiffies)) |
(!!inactive_needs_export(nf, i_timeout, jiffies)) |
(active_needs_export(nf, a_timeout, jiffies) << 1));
seq_printf(seq, " %hd,%hd",
nf->tuple.i_ifc,
Expand Down Expand Up @@ -4501,7 +4501,11 @@ static void netflow_work_fn(struct work_struct *dummy)
wk_count = 0;
wk_trylock = 0;
wk_llist = 0;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,3,0)
wk_cpu = __smp_processor_id();
#else
wk_cpu = smp_processor_id();
#endif
wk_start = jiffies;

pdus = netflow_scan_and_export(DONT_FLUSH);
Expand Down

0 comments on commit 9056e18

Please sign in to comment.