Skip to content

Commit

Permalink
[NETFILTER]: nf_conntrack_expect: show NF_CT_EXPECT_PERMANENT flag in…
Browse files Browse the repository at this point in the history
… /proc

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Mar 26, 2008
1 parent 1d9d752 commit 4bb119e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions net/netfilter/nf_conntrack_expect.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_l4proto_find(expect->tuple.src.l3num,
expect->tuple.dst.protonum));

if (expect->flags & NF_CT_EXPECT_PERMANENT)
seq_printf(s, "PERMANENT ");

return seq_putc(s, '\n');
}

Expand Down

0 comments on commit 4bb119e

Please sign in to comment.