[NETFILTER]: nf_conntrack: remove print_conntrack function from l3protos
authorPatrick McHardy <kaber@trash.net>
Tue, 15 Jan 2008 07:49:17 +0000 (23:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:02:41 +0000 (15:02 -0800)
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>
include/net/netfilter/nf_conntrack_l3proto.h
net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c
net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c
net/netfilter/nf_conntrack_l3proto_generic.c
net/netfilter/nf_conntrack_standalone.c

index 875c6d41eaab0854d02bf625b460ce2d7defbad4..d5526bcce147ab906c884e33b38c4cc9ba977b1d 100644 (file)
@@ -42,9 +42,6 @@ struct nf_conntrack_l3proto
        int (*print_tuple)(struct seq_file *s,
                           const struct nf_conntrack_tuple *);
 
-       /* Print out the private part of the conntrack. */
-       int (*print_conntrack)(struct seq_file *s, const struct nf_conn *);
-
        /* Returns verdict for packet, or -1 for invalid. */
        int (*packet)(struct nf_conn *conntrack,
                      const struct sk_buff *skb,
index 78e64951137a896e61c796cd283ec1b7f85acf4a..ac3d61d8026e2d6d0052b0ca2d30b20433224413 100644 (file)
@@ -56,12 +56,6 @@ static int ipv4_print_tuple(struct seq_file *s,
                          NIPQUAD(tuple->dst.u3.ip));
 }
 
-static int ipv4_print_conntrack(struct seq_file *s,
-                               const struct nf_conn *conntrack)
-{
-       return 0;
-}
-
 /* Returns new sk_buff, or NULL */
 static int nf_ct_ipv4_gather_frags(struct sk_buff *skb, u_int32_t user)
 {
@@ -403,7 +397,6 @@ struct nf_conntrack_l3proto nf_conntrack_l3proto_ipv4 __read_mostly = {
        .pkt_to_tuple    = ipv4_pkt_to_tuple,
        .invert_tuple    = ipv4_invert_tuple,
        .print_tuple     = ipv4_print_tuple,
-       .print_conntrack = ipv4_print_conntrack,
        .get_l4proto     = ipv4_get_l4proto,
 #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE)
        .tuple_to_nlattr = ipv4_tuple_to_nlattr,
index 741f3dfaa5a101efe385dc9c30755a8e8de218dd..acde9952cadf3bf604a7fafe401b7367472c7bfb 100644 (file)
@@ -121,9 +121,6 @@ static int ct_seq_show(struct seq_file *s, void *v)
                      ? (long)(ct->timeout.expires - jiffies)/HZ : 0) != 0)
                return -ENOSPC;
 
-       if (l3proto->print_conntrack(s, ct))
-               return -ENOSPC;
-
        if (l4proto->print_conntrack(s, ct))
                return -ENOSPC;
 
index 97a553036dde88f74e738b84cd8fd6de4ecf2a6b..cf42f5cfc3386efa257898b93e928d839ee48006 100644 (file)
@@ -60,12 +60,6 @@ static int ipv6_print_tuple(struct seq_file *s,
                          NIP6(*((struct in6_addr *)tuple->dst.u3.ip6)));
 }
 
-static int ipv6_print_conntrack(struct seq_file *s,
-                               const struct nf_conn *conntrack)
-{
-       return 0;
-}
-
 /*
  * Based on ipv6_skip_exthdr() in net/ipv6/exthdr.c
  *
@@ -376,7 +370,6 @@ struct nf_conntrack_l3proto nf_conntrack_l3proto_ipv6 __read_mostly = {
        .pkt_to_tuple           = ipv6_pkt_to_tuple,
        .invert_tuple           = ipv6_invert_tuple,
        .print_tuple            = ipv6_print_tuple,
-       .print_conntrack        = ipv6_print_conntrack,
        .get_l4proto            = ipv6_get_l4proto,
 #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE)
        .tuple_to_nlattr        = ipv6_tuple_to_nlattr,
index 991c52c9a28b6b53e9d106cfa1b6f1a082080962..8e914e5ffea84f9497fee492bbdf097a84b661f5 100644 (file)
@@ -55,12 +55,6 @@ static int generic_print_tuple(struct seq_file *s,
        return 0;
 }
 
-static int generic_print_conntrack(struct seq_file *s,
-                               const struct nf_conn *conntrack)
-{
-       return 0;
-}
-
 static int generic_get_l4proto(const struct sk_buff *skb, unsigned int nhoff,
                               unsigned int *dataoff, u_int8_t *protonum)
 {
@@ -75,7 +69,6 @@ struct nf_conntrack_l3proto nf_conntrack_l3proto_generic __read_mostly = {
        .pkt_to_tuple    = generic_pkt_to_tuple,
        .invert_tuple    = generic_invert_tuple,
        .print_tuple     = generic_print_tuple,
-       .print_conntrack = generic_print_conntrack,
        .get_l4proto     = generic_get_l4proto,
 };
 EXPORT_SYMBOL_GPL(nf_conntrack_l3proto_generic);
index 2ad49331302b42f7ce5db065f015ee6a918ab9dd..d54ca78502c461ee30b014a75f21d8bdf1920cb2 100644 (file)
@@ -142,9 +142,6 @@ static int ct_seq_show(struct seq_file *s, void *v)
                       ? (long)(conntrack->timeout.expires - jiffies)/HZ : 0) != 0)
                return -ENOSPC;
 
-       if (l3proto->print_conntrack(s, conntrack))
-               return -ENOSPC;
-
        if (l4proto->print_conntrack(s, conntrack))
                return -ENOSPC;