diff options
author | Florian Westphal <fw@strlen.de> | 2017-08-12 00:57:07 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-08-24 18:52:33 +0200 |
commit | ea48cc83cf612fddb4e8868369348b9f936cfedb (patch) | |
tree | 6617370a2165867b585435d1a2ade40b0e3fe7b2 /include/net/netfilter/nf_conntrack_l4proto.h | |
parent | 91950833dd5a34ac6336aa88da6d43aaeb56ac6d (diff) | |
download | linux-ea48cc83cf612fddb4e8868369348b9f936cfedb.tar.gz linux-ea48cc83cf612fddb4e8868369348b9f936cfedb.tar.bz2 linux-ea48cc83cf612fddb4e8868369348b9f936cfedb.zip |
netfilter: conntrack: print_conntrack only needed if CONFIG_NF_CONNTRACK_PROCFS
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netfilter/nf_conntrack_l4proto.h')
-rw-r--r-- | include/net/netfilter/nf_conntrack_l4proto.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/net/netfilter/nf_conntrack_l4proto.h b/include/net/netfilter/nf_conntrack_l4proto.h index 7e8da04a5eb6..4976ef92dc78 100644 --- a/include/net/netfilter/nf_conntrack_l4proto.h +++ b/include/net/netfilter/nf_conntrack_l4proto.h @@ -61,9 +61,6 @@ struct nf_conntrack_l4proto { /* called by gc worker if table is full */ bool (*can_early_drop)(const struct nf_conn *ct); - /* Print out the private part of the conntrack. */ - void (*print_conntrack)(struct seq_file *s, struct nf_conn *); - /* Return the array of timeouts for this protocol. */ unsigned int *(*get_timeouts)(struct net *net); @@ -97,6 +94,10 @@ struct nf_conntrack_l4proto { const struct nla_policy *nla_policy; } ctnl_timeout; #endif +#ifdef CONFIG_NF_CONNTRACK_PROCFS + /* Print out the private part of the conntrack. */ + void (*print_conntrack)(struct seq_file *s, struct nf_conn *); +#endif unsigned int *net_id; /* Init l4proto pernet data */ int (*init_net)(struct net *net, u_int16_t proto); |