Lines Matching refs:tuple
96 tcf_ct_flow_table_add_action_nat_ipv4(const struct nf_conntrack_tuple *tuple, in tcf_ct_flow_table_add_action_nat_ipv4() argument
100 if (memcmp(&target.src.u3, &tuple->src.u3, sizeof(target.src.u3))) in tcf_ct_flow_table_add_action_nat_ipv4()
105 if (memcmp(&target.dst.u3, &tuple->dst.u3, sizeof(target.dst.u3))) in tcf_ct_flow_table_add_action_nat_ipv4()
126 tcf_ct_flow_table_add_action_nat_ipv6(const struct nf_conntrack_tuple *tuple, in tcf_ct_flow_table_add_action_nat_ipv6() argument
130 if (memcmp(&target.src.u3, &tuple->src.u3, sizeof(target.src.u3))) in tcf_ct_flow_table_add_action_nat_ipv6()
134 if (memcmp(&target.dst.u3, &tuple->dst.u3, sizeof(target.dst.u3))) in tcf_ct_flow_table_add_action_nat_ipv6()
141 tcf_ct_flow_table_add_action_nat_tcp(const struct nf_conntrack_tuple *tuple, in tcf_ct_flow_table_add_action_nat_tcp() argument
148 if (target_src != tuple->src.u.tcp.port) in tcf_ct_flow_table_add_action_nat_tcp()
152 if (target_dst != tuple->dst.u.tcp.port) in tcf_ct_flow_table_add_action_nat_tcp()
159 tcf_ct_flow_table_add_action_nat_udp(const struct nf_conntrack_tuple *tuple, in tcf_ct_flow_table_add_action_nat_udp() argument
166 if (target_src != tuple->src.u.udp.port) in tcf_ct_flow_table_add_action_nat_udp()
170 if (target_dst != tuple->dst.u.udp.port) in tcf_ct_flow_table_add_action_nat_udp()
207 const struct nf_conntrack_tuple *tuple = &ct->tuplehash[dir].tuple; in tcf_ct_flow_table_add_action_nat() local
213 nf_ct_invert_tuple(&target, &ct->tuplehash[!dir].tuple); in tcf_ct_flow_table_add_action_nat()
215 switch (tuple->src.l3num) { in tcf_ct_flow_table_add_action_nat()
217 tcf_ct_flow_table_add_action_nat_ipv4(tuple, target, in tcf_ct_flow_table_add_action_nat()
221 tcf_ct_flow_table_add_action_nat_ipv6(tuple, target, in tcf_ct_flow_table_add_action_nat()
230 tcf_ct_flow_table_add_action_nat_tcp(tuple, target, action); in tcf_ct_flow_table_add_action_nat()
233 tcf_ct_flow_table_add_action_nat_udp(tuple, target, action); in tcf_ct_flow_table_add_action_nat()
403 entry->tuplehash[dir].tuple.xmit_type = FLOW_OFFLOAD_XMIT_TC; in tcf_ct_flow_tc_ifidx()
404 entry->tuplehash[dir].tuple.tc.iifidx = act_ct_ext->ifindex[dir]; in tcf_ct_flow_tc_ifidx()
484 struct nf_conntrack_tuple *tuple; in tcf_ct_flow_table_process_conn() local
492 tuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in tcf_ct_flow_table_process_conn()
494 if (tuple->src.u.gre.key || tuple->dst.u.gre.key) in tcf_ct_flow_table_process_conn()
512 struct flow_offload_tuple *tuple, in tcf_ct_flow_table_fill_tuple_ipv4() argument
560 tuple->src_port = ports->source; in tcf_ct_flow_table_fill_tuple_ipv4()
561 tuple->dst_port = ports->dest; in tcf_ct_flow_table_fill_tuple_ipv4()
575 tuple->src_v4.s_addr = iph->saddr; in tcf_ct_flow_table_fill_tuple_ipv4()
576 tuple->dst_v4.s_addr = iph->daddr; in tcf_ct_flow_table_fill_tuple_ipv4()
577 tuple->l3proto = AF_INET; in tcf_ct_flow_table_fill_tuple_ipv4()
578 tuple->l4proto = ipproto; in tcf_ct_flow_table_fill_tuple_ipv4()
585 struct flow_offload_tuple *tuple, in tcf_ct_flow_table_fill_tuple_ipv6() argument
629 tuple->src_port = ports->source; in tcf_ct_flow_table_fill_tuple_ipv6()
630 tuple->dst_port = ports->dest; in tcf_ct_flow_table_fill_tuple_ipv6()
644 tuple->src_v6 = ip6h->saddr; in tcf_ct_flow_table_fill_tuple_ipv6()
645 tuple->dst_v6 = ip6h->daddr; in tcf_ct_flow_table_fill_tuple_ipv6()
646 tuple->l3proto = AF_INET6; in tcf_ct_flow_table_fill_tuple_ipv6()
647 tuple->l4proto = nexthdr; in tcf_ct_flow_table_fill_tuple_ipv6()
658 struct flow_offload_tuple tuple = {}; in tcf_ct_flow_table_lookup() local
668 if (!tcf_ct_flow_table_fill_tuple_ipv4(skb, &tuple, &tcph)) in tcf_ct_flow_table_lookup()
672 if (!tcf_ct_flow_table_fill_tuple_ipv6(skb, &tuple, &tcph)) in tcf_ct_flow_table_lookup()
679 tuplehash = flow_offload_lookup(nf_ft, &tuple); in tcf_ct_flow_table_lookup()
683 dir = tuplehash->tuple.dir; in tcf_ct_flow_table_lookup()
1515 nla_put_u8(skb, TCA_CT_HELPER_FAMILY, helper->tuple.src.l3num) || in tcf_ct_dump_helper()
1516 nla_put_u8(skb, TCA_CT_HELPER_PROTO, helper->tuple.dst.protonum)) in tcf_ct_dump_helper()