diff options
| author | Florian Westphal <fw@strlen.de> | 2017-08-11 18:57:07 -0400 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-08-24 12:52:33 -0400 |
| commit | ea48cc83cf612fddb4e8868369348b9f936cfedb (patch) | |
| tree | 6617370a2165867b585435d1a2ade40b0e3fe7b2 /include/net | |
| parent | 91950833dd5a34ac6336aa88da6d43aaeb56ac6d (diff) | |
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')
| -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 { | |||
| 61 | /* called by gc worker if table is full */ | 61 | /* called by gc worker if table is full */ |
| 62 | bool (*can_early_drop)(const struct nf_conn *ct); | 62 | bool (*can_early_drop)(const struct nf_conn *ct); |
| 63 | 63 | ||
| 64 | /* Print out the private part of the conntrack. */ | ||
| 65 | void (*print_conntrack)(struct seq_file *s, struct nf_conn *); | ||
| 66 | |||
| 67 | /* Return the array of timeouts for this protocol. */ | 64 | /* Return the array of timeouts for this protocol. */ |
| 68 | unsigned int *(*get_timeouts)(struct net *net); | 65 | unsigned int *(*get_timeouts)(struct net *net); |
| 69 | 66 | ||
| @@ -97,6 +94,10 @@ struct nf_conntrack_l4proto { | |||
| 97 | const struct nla_policy *nla_policy; | 94 | const struct nla_policy *nla_policy; |
| 98 | } ctnl_timeout; | 95 | } ctnl_timeout; |
| 99 | #endif | 96 | #endif |
| 97 | #ifdef CONFIG_NF_CONNTRACK_PROCFS | ||
| 98 | /* Print out the private part of the conntrack. */ | ||
| 99 | void (*print_conntrack)(struct seq_file *s, struct nf_conn *); | ||
| 100 | #endif | ||
| 100 | unsigned int *net_id; | 101 | unsigned int *net_id; |
| 101 | /* Init l4proto pernet data */ | 102 | /* Init l4proto pernet data */ |
| 102 | int (*init_net)(struct net *net, u_int16_t proto); | 103 | int (*init_net)(struct net *net, u_int16_t proto); |
