aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-01-31 07:42:11 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-31 22:27:59 -0500
commitc88130bcd546e73e66165f9c29113dae9facf1ec (patch)
treefd4992c4126c7ad771d297c778ee177f4fb06a72 /net/ipv6
parent76eb946040a7b4c797979a9c22464b9a07890ba5 (diff)
[NETFILTER]: nf_conntrack: naming unification
Rename all "conntrack" variables to "ct" for more consistency and avoiding some overly long lines. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c b/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c
index da924c6b5f06..430db1de31e3 100644
--- a/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c
+++ b/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c
@@ -101,7 +101,7 @@ static int icmpv6_packet(struct nf_conn *ct,
101} 101}
102 102
103/* Called when a new connection for this protocol found. */ 103/* Called when a new connection for this protocol found. */
104static int icmpv6_new(struct nf_conn *conntrack, 104static int icmpv6_new(struct nf_conn *ct,
105 const struct sk_buff *skb, 105 const struct sk_buff *skb,
106 unsigned int dataoff) 106 unsigned int dataoff)
107{ 107{
@@ -109,16 +109,16 @@ static int icmpv6_new(struct nf_conn *conntrack,
109 [ICMPV6_ECHO_REQUEST - 128] = 1, 109 [ICMPV6_ECHO_REQUEST - 128] = 1,
110 [ICMPV6_NI_QUERY - 128] = 1 110 [ICMPV6_NI_QUERY - 128] = 1
111 }; 111 };
112 int type = conntrack->tuplehash[0].tuple.dst.u.icmp.type - 128; 112 int type = ct->tuplehash[0].tuple.dst.u.icmp.type - 128;
113 113
114 if (type < 0 || type >= sizeof(valid_new) || !valid_new[type]) { 114 if (type < 0 || type >= sizeof(valid_new) || !valid_new[type]) {
115 /* Can't create a new ICMPv6 `conn' with this. */ 115 /* Can't create a new ICMPv6 `conn' with this. */
116 pr_debug("icmpv6: can't create new conn with type %u\n", 116 pr_debug("icmpv6: can't create new conn with type %u\n",
117 type + 128); 117 type + 128);
118 NF_CT_DUMP_TUPLE(&conntrack->tuplehash[0].tuple); 118 NF_CT_DUMP_TUPLE(&ct->tuplehash[0].tuple);
119 return 0; 119 return 0;
120 } 120 }
121 atomic_set(&conntrack->proto.icmp.count, 0); 121 atomic_set(&ct->proto.icmp.count, 0);
122 return 1; 122 return 1;
123} 123}
124 124