diff options
author | Patrick McHardy <kaber@trash.net> | 2008-01-15 02:49:17 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:02:41 -0500 |
commit | c56cc9c07b049acc9d2ca97be0b540978c0c80bf (patch) | |
tree | 08ec1d0d7083b8f87db50e746c6ac0c8ac3ad49b | |
parent | b334aadc3c5cd4dae2a44f3dac09b3ef718ccde1 (diff) |
[NETFILTER]: nf_conntrack: remove print_conntrack function from l3protos
Its unused and unlikely to ever be used.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/netfilter/nf_conntrack_l3proto.h | 3 | ||||
-rw-r--r-- | net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c | 7 | ||||
-rw-r--r-- | net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c | 3 | ||||
-rw-r--r-- | net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c | 7 | ||||
-rw-r--r-- | net/netfilter/nf_conntrack_l3proto_generic.c | 7 | ||||
-rw-r--r-- | net/netfilter/nf_conntrack_standalone.c | 3 |
6 files changed, 0 insertions, 30 deletions
diff --git a/include/net/netfilter/nf_conntrack_l3proto.h b/include/net/netfilter/nf_conntrack_l3proto.h index 875c6d41eaab..d5526bcce147 100644 --- a/include/net/netfilter/nf_conntrack_l3proto.h +++ b/include/net/netfilter/nf_conntrack_l3proto.h | |||
@@ -42,9 +42,6 @@ struct nf_conntrack_l3proto | |||
42 | int (*print_tuple)(struct seq_file *s, | 42 | int (*print_tuple)(struct seq_file *s, |
43 | const struct nf_conntrack_tuple *); | 43 | const struct nf_conntrack_tuple *); |
44 | 44 | ||
45 | /* Print out the private part of the conntrack. */ | ||
46 | int (*print_conntrack)(struct seq_file *s, const struct nf_conn *); | ||
47 | |||
48 | /* Returns verdict for packet, or -1 for invalid. */ | 45 | /* Returns verdict for packet, or -1 for invalid. */ |
49 | int (*packet)(struct nf_conn *conntrack, | 46 | int (*packet)(struct nf_conn *conntrack, |
50 | const struct sk_buff *skb, | 47 | const struct sk_buff *skb, |
diff --git a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c index 78e64951137a..ac3d61d8026e 100644 --- a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c +++ b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c | |||
@@ -56,12 +56,6 @@ static int ipv4_print_tuple(struct seq_file *s, | |||
56 | NIPQUAD(tuple->dst.u3.ip)); | 56 | NIPQUAD(tuple->dst.u3.ip)); |
57 | } | 57 | } |
58 | 58 | ||
59 | static int ipv4_print_conntrack(struct seq_file *s, | ||
60 | const struct nf_conn *conntrack) | ||
61 | { | ||
62 | return 0; | ||
63 | } | ||
64 | |||
65 | /* Returns new sk_buff, or NULL */ | 59 | /* Returns new sk_buff, or NULL */ |
66 | static int nf_ct_ipv4_gather_frags(struct sk_buff *skb, u_int32_t user) | 60 | static int nf_ct_ipv4_gather_frags(struct sk_buff *skb, u_int32_t user) |
67 | { | 61 | { |
@@ -403,7 +397,6 @@ struct nf_conntrack_l3proto nf_conntrack_l3proto_ipv4 __read_mostly = { | |||
403 | .pkt_to_tuple = ipv4_pkt_to_tuple, | 397 | .pkt_to_tuple = ipv4_pkt_to_tuple, |
404 | .invert_tuple = ipv4_invert_tuple, | 398 | .invert_tuple = ipv4_invert_tuple, |
405 | .print_tuple = ipv4_print_tuple, | 399 | .print_tuple = ipv4_print_tuple, |
406 | .print_conntrack = ipv4_print_conntrack, | ||
407 | .get_l4proto = ipv4_get_l4proto, | 400 | .get_l4proto = ipv4_get_l4proto, |
408 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) | 401 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
409 | .tuple_to_nlattr = ipv4_tuple_to_nlattr, | 402 | .tuple_to_nlattr = ipv4_tuple_to_nlattr, |
diff --git a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c index 741f3dfaa5a1..acde9952cadf 100644 --- a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c +++ b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c | |||
@@ -121,9 +121,6 @@ static int ct_seq_show(struct seq_file *s, void *v) | |||
121 | ? (long)(ct->timeout.expires - jiffies)/HZ : 0) != 0) | 121 | ? (long)(ct->timeout.expires - jiffies)/HZ : 0) != 0) |
122 | return -ENOSPC; | 122 | return -ENOSPC; |
123 | 123 | ||
124 | if (l3proto->print_conntrack(s, ct)) | ||
125 | return -ENOSPC; | ||
126 | |||
127 | if (l4proto->print_conntrack(s, ct)) | 124 | if (l4proto->print_conntrack(s, ct)) |
128 | return -ENOSPC; | 125 | return -ENOSPC; |
129 | 126 | ||
diff --git a/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c b/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c index 97a553036dde..cf42f5cfc338 100644 --- a/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c +++ b/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c | |||
@@ -60,12 +60,6 @@ static int ipv6_print_tuple(struct seq_file *s, | |||
60 | NIP6(*((struct in6_addr *)tuple->dst.u3.ip6))); | 60 | NIP6(*((struct in6_addr *)tuple->dst.u3.ip6))); |
61 | } | 61 | } |
62 | 62 | ||
63 | static int ipv6_print_conntrack(struct seq_file *s, | ||
64 | const struct nf_conn *conntrack) | ||
65 | { | ||
66 | return 0; | ||
67 | } | ||
68 | |||
69 | /* | 63 | /* |
70 | * Based on ipv6_skip_exthdr() in net/ipv6/exthdr.c | 64 | * Based on ipv6_skip_exthdr() in net/ipv6/exthdr.c |
71 | * | 65 | * |
@@ -376,7 +370,6 @@ struct nf_conntrack_l3proto nf_conntrack_l3proto_ipv6 __read_mostly = { | |||
376 | .pkt_to_tuple = ipv6_pkt_to_tuple, | 370 | .pkt_to_tuple = ipv6_pkt_to_tuple, |
377 | .invert_tuple = ipv6_invert_tuple, | 371 | .invert_tuple = ipv6_invert_tuple, |
378 | .print_tuple = ipv6_print_tuple, | 372 | .print_tuple = ipv6_print_tuple, |
379 | .print_conntrack = ipv6_print_conntrack, | ||
380 | .get_l4proto = ipv6_get_l4proto, | 373 | .get_l4proto = ipv6_get_l4proto, |
381 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) | 374 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
382 | .tuple_to_nlattr = ipv6_tuple_to_nlattr, | 375 | .tuple_to_nlattr = ipv6_tuple_to_nlattr, |
diff --git a/net/netfilter/nf_conntrack_l3proto_generic.c b/net/netfilter/nf_conntrack_l3proto_generic.c index 991c52c9a28b..8e914e5ffea8 100644 --- a/net/netfilter/nf_conntrack_l3proto_generic.c +++ b/net/netfilter/nf_conntrack_l3proto_generic.c | |||
@@ -55,12 +55,6 @@ static int generic_print_tuple(struct seq_file *s, | |||
55 | return 0; | 55 | return 0; |
56 | } | 56 | } |
57 | 57 | ||
58 | static int generic_print_conntrack(struct seq_file *s, | ||
59 | const struct nf_conn *conntrack) | ||
60 | { | ||
61 | return 0; | ||
62 | } | ||
63 | |||
64 | static int generic_get_l4proto(const struct sk_buff *skb, unsigned int nhoff, | 58 | static int generic_get_l4proto(const struct sk_buff *skb, unsigned int nhoff, |
65 | unsigned int *dataoff, u_int8_t *protonum) | 59 | unsigned int *dataoff, u_int8_t *protonum) |
66 | { | 60 | { |
@@ -75,7 +69,6 @@ struct nf_conntrack_l3proto nf_conntrack_l3proto_generic __read_mostly = { | |||
75 | .pkt_to_tuple = generic_pkt_to_tuple, | 69 | .pkt_to_tuple = generic_pkt_to_tuple, |
76 | .invert_tuple = generic_invert_tuple, | 70 | .invert_tuple = generic_invert_tuple, |
77 | .print_tuple = generic_print_tuple, | 71 | .print_tuple = generic_print_tuple, |
78 | .print_conntrack = generic_print_conntrack, | ||
79 | .get_l4proto = generic_get_l4proto, | 72 | .get_l4proto = generic_get_l4proto, |
80 | }; | 73 | }; |
81 | EXPORT_SYMBOL_GPL(nf_conntrack_l3proto_generic); | 74 | EXPORT_SYMBOL_GPL(nf_conntrack_l3proto_generic); |
diff --git a/net/netfilter/nf_conntrack_standalone.c b/net/netfilter/nf_conntrack_standalone.c index 2ad49331302b..d54ca78502c4 100644 --- a/net/netfilter/nf_conntrack_standalone.c +++ b/net/netfilter/nf_conntrack_standalone.c | |||
@@ -142,9 +142,6 @@ static int ct_seq_show(struct seq_file *s, void *v) | |||
142 | ? (long)(conntrack->timeout.expires - jiffies)/HZ : 0) != 0) | 142 | ? (long)(conntrack->timeout.expires - jiffies)/HZ : 0) != 0) |
143 | return -ENOSPC; | 143 | return -ENOSPC; |
144 | 144 | ||
145 | if (l3proto->print_conntrack(s, conntrack)) | ||
146 | return -ENOSPC; | ||
147 | |||
148 | if (l4proto->print_conntrack(s, conntrack)) | 145 | if (l4proto->print_conntrack(s, conntrack)) |
149 | return -ENOSPC; | 146 | return -ENOSPC; |
150 | 147 | ||