Lines Matching defs:tuple

86 /* The following nat helper functions check if the inverted reverse tuple
87 * (target) is different then the current dir tuple - meaning nat for ports
91 tcf_ct_flow_table_add_action_nat_ipv4(const struct nf_conntrack_tuple *tuple,
95 if (memcmp(&target.src.u3, &tuple->src.u3, sizeof(target.src.u3)))
100 if (memcmp(&target.dst.u3, &tuple->dst.u3, sizeof(target.dst.u3)))
121 tcf_ct_flow_table_add_action_nat_ipv6(const struct nf_conntrack_tuple *tuple,
125 if (memcmp(&target.src.u3, &tuple->src.u3, sizeof(target.src.u3)))
129 if (memcmp(&target.dst.u3, &tuple->dst.u3, sizeof(target.dst.u3)))
136 tcf_ct_flow_table_add_action_nat_tcp(const struct nf_conntrack_tuple *tuple,
143 if (target_src != tuple->src.u.tcp.port)
147 if (target_dst != tuple->dst.u.tcp.port)
154 tcf_ct_flow_table_add_action_nat_udp(const struct nf_conntrack_tuple *tuple,
161 if (target_src != tuple->src.u.udp.port)
165 if (target_dst != tuple->dst.u.udp.port)
202 const struct nf_conntrack_tuple *tuple = &ct->tuplehash[dir].tuple;
208 nf_ct_invert_tuple(&target, &ct->tuplehash[!dir].tuple);
210 switch (tuple->src.l3num) {
212 tcf_ct_flow_table_add_action_nat_ipv4(tuple, target,
216 tcf_ct_flow_table_add_action_nat_ipv6(tuple, target,
225 tcf_ct_flow_table_add_action_nat_tcp(tuple, target, action);
228 tcf_ct_flow_table_add_action_nat_udp(tuple, target, action);
397 entry->tuplehash[dir].tuple.xmit_type = FLOW_OFFLOAD_XMIT_TC;
398 entry->tuplehash[dir].tuple.tc.iifidx = act_ct_ext->ifindex[dir];
478 struct nf_conntrack_tuple *tuple;
486 tuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple;
488 if (tuple->src.u.gre.key || tuple->dst.u.gre.key)
506 struct flow_offload_tuple *tuple,
554 tuple->src_port = ports->source;
555 tuple->dst_port = ports->dest;
569 tuple->src_v4.s_addr = iph->saddr;
570 tuple->dst_v4.s_addr = iph->daddr;
571 tuple->l3proto = AF_INET;
572 tuple->l4proto = ipproto;
579 struct flow_offload_tuple *tuple,
623 tuple->src_port = ports->source;
624 tuple->dst_port = ports->dest;
638 tuple->src_v6 = ip6h->saddr;
639 tuple->dst_v6 = ip6h->daddr;
640 tuple->l3proto = AF_INET6;
641 tuple->l4proto = nexthdr;
652 struct flow_offload_tuple tuple = {};
662 if (!tcf_ct_flow_table_fill_tuple_ipv4(skb, &tuple, &tcph))
666 if (!tcf_ct_flow_table_fill_tuple_ipv6(skb, &tuple, &tcph))
673 tuplehash = flow_offload_lookup(nf_ft, &tuple);
677 dir = tuplehash->tuple.dir;
1480 nla_put_u8(skb, TCA_CT_HELPER_FAMILY, helper->tuple.src.l3num) ||
1481 nla_put_u8(skb, TCA_CT_HELPER_PROTO, helper->tuple.dst.protonum))