Lines Matching refs:tuple
64 return km->tuple.src.l3num == t->src.l3num &&
65 !memcmp(&km->tuple.src.u3, &t->src.u3, sizeof(t->src.u3)) &&
66 !memcmp(&km->tuple.dst.u3, &t->dst.u3, sizeof(t->dst.u3)) &&
67 km->tuple.dst.protonum == t->dst.protonum &&
68 km->tuple.dst.u.all == t->dst.u.all;
71 /* look up the source key for a given tuple */
80 key = km->tuple.src.u.gre.key;
114 memcpy(&km->tuple, t, sizeof(*t));
118 NF_CT_DUMP_TUPLE(&km->tuple);
152 /* invert gre part of tuple */
153 static int gre_invert_tuple(struct nf_conntrack_tuple *tuple,
156 tuple->dst.u.gre.key = orig->src.u.gre.key;
157 tuple->src.u.gre.key = orig->dst.u.gre.key;
161 /* gre hdr info to tuple */
164 struct nf_conntrack_tuple *tuple)
174 tuple->src.u.all = 0;
175 tuple->dst.u.all = 0;
189 tuple->dst.u.gre.key = pgrehdr->call_id;
190 srckey = gre_keymap_lookup(tuple);
191 tuple->src.u.gre.key = srckey;
196 /* print gre part of tuple */
198 const struct nf_conntrack_tuple *tuple)
201 ntohs(tuple->src.u.gre.key),
202 ntohs(tuple->dst.u.gre.key));
242 NF_CT_DUMP_TUPLE(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple);