Skip to content

Commit 1702ad7

Browse files
Florian Westphalummakynes
authored andcommitted
netfilter: conntrack: proc: rename stat column
Rename 'searched' column to 'clashres' (same len). conntrack(8) using the old /proc interface (ctnetlink not available) shows: cpu=0 entries=4784 clashres=2292 [..] Another alternative is to add another column, but this increases the number of always-0 columns. Fixes: bc92470 ("netfilter: conntrack: add clash resolution stat counter") Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
1 parent c5a2a13 commit 1702ad7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎net/netfilter/nf_conntrack_standalone.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,14 +428,14 @@ static int ct_cpu_seq_show(struct seq_file *seq, void *v)
428428
const struct ip_conntrack_stat *st = v;
429429

430430
if (v == SEQ_START_TOKEN) {
431-
seq_puts(seq, "entries searched found new invalid ignore delete delete_list insert insert_failed drop early_drop icmp_error expect_new expect_create expect_delete search_restart\n");
431+
seq_puts(seq, "entries clashres found new invalid ignore delete delete_list insert insert_failed drop early_drop icmp_error expect_new expect_create expect_delete search_restart\n");
432432
return 0;
433433
}
434434

435435
seq_printf(seq, "%08x %08x %08x %08x %08x %08x %08x %08x "
436436
"%08x %08x %08x %08x %08x %08x %08x %08x %08x\n",
437437
nr_conntracks,
438-
st->clash_resolve, /* was: searched */
438+
st->clash_resolve,
439439
st->found,
440440
0,
441441
st->invalid,

0 commit comments

Comments
 (0)