提交 4bb119ea 编写于 作者: P Patrick McHardy 提交者: David S. Miller

[NETFILTER]: nf_conntrack_expect: show NF_CT_EXPECT_PERMANENT flag in /proc

Signed-off-by: NPatrick McHardy <kaber@trash.net>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 1d9d7522
...@@ -475,6 +475,10 @@ static int exp_seq_show(struct seq_file *s, void *v) ...@@ -475,6 +475,10 @@ static int exp_seq_show(struct seq_file *s, void *v)
__nf_ct_l3proto_find(expect->tuple.src.l3num), __nf_ct_l3proto_find(expect->tuple.src.l3num),
__nf_ct_l4proto_find(expect->tuple.src.l3num, __nf_ct_l4proto_find(expect->tuple.src.l3num,
expect->tuple.dst.protonum)); expect->tuple.dst.protonum));
if (expect->flags & NF_CT_EXPECT_PERMANENT)
seq_printf(s, "PERMANENT ");
return seq_putc(s, '\n'); return seq_putc(s, '\n');
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册