Lines Matching defs:ct
36 const struct nf_conn *ct;
42 ct = nf_ct_get(skb, &ctinfo);
43 if (ct == NULL)
46 t = &ct->tuplehash[dir].tuple;
53 if (ct->status & statusbit) {
65 if (ct->status & statusbit) {
84 struct nf_conn *ct;
94 ct = nf_ct_get(skb, &ctinfo);
99 if (!ct)
103 if (nf_ct_is_untracked(ct))
106 nat = nfct_nat(ct);
109 if (nf_ct_is_confirmed(ct))
111 nat = nf_ct_ext_add(ct, NF_CT_EXT_NAT, GFP_ATOMIC);
122 if (!nf_nat_icmp_reply_translation(ct, ctinfo,
133 if (!nf_nat_initialized(ct, maniptype)) {
136 ret = nf_nat_rule_find(skb, hooknum, in, out, ct);
141 ipt_cone_place_in_hashes(ct);
144 pr_debug("Already setup manip %s for ct %p\n",
146 ct);
155 return nf_nat_packet(ct, ctinfo, hooknum, skb);
184 const struct nf_conn *ct;
197 (ct = nf_ct_get(skb, &ctinfo)) != NULL) {
200 if ((ct->tuplehash[dir].tuple.src.u3.ip !=
201 ct->tuplehash[!dir].tuple.dst.u3.ip) ||
202 (ct->tuplehash[dir].tuple.src.u.all !=
203 ct->tuplehash[!dir].tuple.dst.u.all)
218 const struct nf_conn *ct;
229 (ct = nf_ct_get(skb, &ctinfo)) != NULL) {
232 if (ct->tuplehash[dir].tuple.dst.u3.ip !=
233 ct->tuplehash[!dir].tuple.src.u3.ip) {
238 else if (ct->tuplehash[dir].tuple.dst.u.all !=
239 ct->tuplehash[!dir].tuple.src.u.all)