/net/netfilter/ |
D | nf_flow_table_ip.c | 84 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.dst_v4.s_addr; in nf_flow_snat_ip() 89 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.src_v4.s_addr; in nf_flow_snat_ip() 107 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.src_v4.s_addr; in nf_flow_dnat_ip() 112 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.dst_v4.s_addr; in nf_flow_dnat_ip() 141 struct flow_offload_tuple *tuple) in nf_flow_tuple_encap() argument 148 tuple->encap[i].id = skb_vlan_tag_get(skb); in nf_flow_tuple_encap() 149 tuple->encap[i].proto = skb->vlan_proto; in nf_flow_tuple_encap() 155 tuple->encap[i].id = ntohs(veth->h_vlan_TCI); in nf_flow_tuple_encap() 156 tuple->encap[i].proto = skb->protocol; in nf_flow_tuple_encap() 160 tuple->encap[i].id = ntohs(phdr->sid); in nf_flow_tuple_encap() [all …]
|
D | nf_nat_sip.c | 107 if (nf_inet_addr_cmp(&ct->tuplehash[dir].tuple.src.u3, addr) && in map_addr() 108 ct->tuplehash[dir].tuple.src.u.udp.port == port) { in map_addr() 109 newaddr = ct->tuplehash[!dir].tuple.dst.u3; in map_addr() 110 newport = ct->tuplehash[!dir].tuple.dst.u.udp.port; in map_addr() 111 } else if (nf_inet_addr_cmp(&ct->tuplehash[dir].tuple.dst.u3, addr) && in map_addr() 112 ct->tuplehash[dir].tuple.dst.u.udp.port == port) { in map_addr() 113 newaddr = ct->tuplehash[!dir].tuple.src.u3; in map_addr() 115 ct->tuplehash[!dir].tuple.src.u.udp.port; in map_addr() 189 &ct->tuplehash[dir].tuple.src.u3) || in nf_nat_sip() 190 port != ct->tuplehash[dir].tuple.src.u.udp.port) in nf_nat_sip() [all …]
|
D | nf_nat_proto.c | 41 const struct nf_conntrack_tuple *tuple, in __udp_manip_pkt() argument 48 newport = tuple->src.u.udp.port; in __udp_manip_pkt() 52 newport = tuple->dst.u.udp.port; in __udp_manip_pkt() 56 nf_csum_update(skb, iphdroff, &hdr->check, tuple, maniptype); in __udp_manip_pkt() 67 const struct nf_conntrack_tuple *tuple, in udp_manip_pkt() argument 76 __udp_manip_pkt(skb, iphdroff, hdr, tuple, maniptype, !!hdr->check); in udp_manip_pkt() 83 const struct nf_conntrack_tuple *tuple, in udplite_manip_pkt() argument 93 __udp_manip_pkt(skb, iphdroff, hdr, tuple, maniptype, true); in udplite_manip_pkt() 101 const struct nf_conntrack_tuple *tuple, in sctp_manip_pkt() argument 122 hdr->source = tuple->src.u.sctp.port; in sctp_manip_pkt() [all …]
|
D | nf_conntrack_expect.c | 82 …tic unsigned int nf_ct_expect_dst_hash(const struct net *n, const struct nf_conntrack_tuple *tuple) in nf_ct_expect_dst_hash() argument 97 combined.dst_addr = tuple->dst.u3; in nf_ct_expect_dst_hash() 99 combined.dport = (__force __u16)tuple->dst.u.all; in nf_ct_expect_dst_hash() 100 combined.l3num = tuple->src.l3num; in nf_ct_expect_dst_hash() 101 combined.protonum = tuple->dst.protonum; in nf_ct_expect_dst_hash() 109 nf_ct_exp_equal(const struct nf_conntrack_tuple *tuple, in nf_ct_exp_equal() argument 114 return nf_ct_tuple_mask_cmp(tuple, &i->tuple, &i->mask) && in nf_ct_exp_equal() 133 const struct nf_conntrack_tuple *tuple) in __nf_ct_expect_find() argument 142 h = nf_ct_expect_dst_hash(net, tuple); in __nf_ct_expect_find() 144 if (nf_ct_exp_equal(tuple, i, zone, net)) in __nf_ct_expect_find() [all …]
|
D | nf_nat_core.c | 61 const struct nf_conntrack_tuple *t = &ct->tuplehash[dir].tuple; in nf_nat_ipv4_decode_session() 94 const struct nf_conntrack_tuple *t = &ct->tuplehash[dir].tuple; in nf_nat_ipv6_decode_session() 155 const struct nf_conntrack_tuple *tuple) in hash_by_src() argument 170 combined.src = tuple->src; in hash_by_src() 172 combined.protonum = tuple->dst.protonum; in hash_by_src() 185 nf_nat_used_tuple(const struct nf_conntrack_tuple *tuple, in nf_nat_used_tuple() argument 196 nf_ct_invert_tuple(&reply, tuple); in nf_nat_used_tuple() 212 static bool l4proto_in_range(const struct nf_conntrack_tuple *tuple, in l4proto_in_range() argument 219 switch (tuple->dst.protonum) { in l4proto_in_range() 222 return ntohs(tuple->src.u.icmp.id) >= ntohs(min->icmp.id) && in l4proto_in_range() [all …]
|
D | nf_flow_table_core.c | 24 struct flow_offload_tuple *ft = &flow->tuplehash[dir].tuple; in flow_offload_fill_dir() 25 struct nf_conntrack_tuple *ctt = &flow->ct->tuplehash[dir].tuple; in flow_offload_fill_dir() 92 struct dst_entry *dst = route->tuple[dir].dst; in nft_route_dst_fetch() 94 route->tuple[dir].dst = NULL; in nft_route_dst_fetch() 103 struct flow_offload_tuple *flow_tuple = &flow->tuplehash[dir].tuple; in flow_offload_fill_route() 116 flow_tuple->iifidx = route->tuple[dir].in.ifindex; in flow_offload_fill_route() 117 for (i = route->tuple[dir].in.num_encaps - 1; i >= 0; i--) { in flow_offload_fill_route() 118 flow_tuple->encap[j].id = route->tuple[dir].in.encap[i].id; in flow_offload_fill_route() 119 flow_tuple->encap[j].proto = route->tuple[dir].in.encap[i].proto; in flow_offload_fill_route() 120 if (route->tuple[dir].in.ingress_vlans & BIT(i)) in flow_offload_fill_route() [all …]
|
D | nf_flow_table_offload.c | 92 const struct flow_offload_tuple *tuple, in nf_flow_rule_match() argument 113 key->meta.ingress_ifindex = tuple->iifidx; in nf_flow_rule_match() 116 if (tuple->encap_num > 0 && !(tuple->in_vlan_ingress & BIT(0)) && in nf_flow_rule_match() 117 tuple->encap[0].proto == htons(ETH_P_8021Q)) { in nf_flow_rule_match() 120 tuple->encap[0].id, in nf_flow_rule_match() 121 tuple->encap[0].proto); in nf_flow_rule_match() 125 if (tuple->encap_num > 1 && !(tuple->in_vlan_ingress & BIT(1)) && in nf_flow_rule_match() 126 tuple->encap[1].proto == htons(ETH_P_8021Q)) { in nf_flow_rule_match() 131 tuple->encap[1].id, in nf_flow_rule_match() 132 tuple->encap[1].proto); in nf_flow_rule_match() [all …]
|
D | xt_conntrack.c | 44 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3, in conntrack_mt_origsrc() 53 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.u3, in conntrack_mt_origdst() 62 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_REPLY].tuple.src.u3, in conntrack_mt_replsrc() 71 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.u3, in conntrack_mt_repldst() 79 const struct nf_conntrack_tuple *tuple; in ct_proto_port_check() local 81 tuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in ct_proto_port_check() 89 (tuple->src.u.all == info->origsrc_port) ^ in ct_proto_port_check() 94 (tuple->dst.u.all == info->origdst_port) ^ in ct_proto_port_check() 98 tuple = &ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ct_proto_port_check() 101 (tuple->src.u.all == info->replsrc_port) ^ in ct_proto_port_check() [all …]
|
D | nf_conntrack_proto.c | 243 struct nf_conntrack_tuple tuple; in getorigdst() local 245 memset(&tuple, 0, sizeof(tuple)); in getorigdst() 248 tuple.src.u3.ip = inet->inet_rcv_saddr; in getorigdst() 249 tuple.src.u.tcp.port = inet->inet_sport; in getorigdst() 250 tuple.dst.u3.ip = inet->inet_daddr; in getorigdst() 251 tuple.dst.u.tcp.port = inet->inet_dport; in getorigdst() 252 tuple.src.l3num = PF_INET; in getorigdst() 253 tuple.dst.protonum = sk->sk_protocol; in getorigdst() 257 if (tuple.dst.protonum != IPPROTO_TCP && in getorigdst() 258 tuple.dst.protonum != IPPROTO_SCTP) { in getorigdst() [all …]
|
D | nf_conntrack_h323_main.c | 273 memcmp(&addr, &ct->tuplehash[dir].tuple.src.u3, sizeof(addr)) || in expect_rtp_rtcp() 285 &ct->tuplehash[!dir].tuple.src.u3, in expect_rtp_rtcp() 286 &ct->tuplehash[!dir].tuple.dst.u3, in expect_rtp_rtcp() 295 &ct->tuplehash[!dir].tuple.src.u3, in expect_rtp_rtcp() 296 &ct->tuplehash[!dir].tuple.dst.u3, in expect_rtp_rtcp() 299 if (memcmp(&ct->tuplehash[dir].tuple.src.u3, in expect_rtp_rtcp() 300 &ct->tuplehash[!dir].tuple.dst.u3, in expect_rtp_rtcp() 301 sizeof(ct->tuplehash[dir].tuple.src.u3)) && in expect_rtp_rtcp() 312 nf_ct_dump_tuple(&rtp_exp->tuple); in expect_rtp_rtcp() 314 nf_ct_dump_tuple(&rtcp_exp->tuple); in expect_rtp_rtcp() [all …]
|
D | nf_conntrack_core.c | 211 static u32 hash_conntrack_raw(const struct nf_conntrack_tuple *tuple, in hash_conntrack_raw() argument 229 combined.src = tuple->src; in hash_conntrack_raw() 230 combined.dst_addr = tuple->dst.u3; in hash_conntrack_raw() 233 combined.dport = (__force __u16)tuple->dst.u.all; in hash_conntrack_raw() 234 combined.proto = tuple->dst.protonum; in hash_conntrack_raw() 245 const struct nf_conntrack_tuple *tuple, in __hash_conntrack() argument 249 return reciprocal_scale(hash_conntrack_raw(tuple, zoneid, net), size); in __hash_conntrack() 253 const struct nf_conntrack_tuple *tuple, in hash_conntrack() argument 256 return scale_hash(hash_conntrack_raw(tuple, zoneid, net)); in hash_conntrack() 261 struct nf_conntrack_tuple *tuple) in nf_ct_get_tuple_ports() argument [all …]
|
D | nf_conntrack_proto_icmp.c | 28 struct net *net, struct nf_conntrack_tuple *tuple) in icmp_pkt_to_tuple() argument 37 tuple->dst.u.icmp.type = hp->type; in icmp_pkt_to_tuple() 38 tuple->src.u.icmp.id = hp->un.echo.id; in icmp_pkt_to_tuple() 39 tuple->dst.u.icmp.code = hp->code; in icmp_pkt_to_tuple() 56 bool nf_conntrack_invert_icmp_tuple(struct nf_conntrack_tuple *tuple, in nf_conntrack_invert_icmp_tuple() argument 63 tuple->src.u.icmp.id = orig->src.u.icmp.id; in nf_conntrack_invert_icmp_tuple() 64 tuple->dst.u.icmp.type = invmap[orig->dst.u.icmp.type] - 1; in nf_conntrack_invert_icmp_tuple() 65 tuple->dst.u.icmp.code = orig->dst.u.icmp.code; in nf_conntrack_invert_icmp_tuple() 89 if (ct->tuplehash[0].tuple.dst.u.icmp.type >= sizeof(valid_new) || in nf_conntrack_icmp_packet() 90 !valid_new[ct->tuplehash[0].tuple.dst.u.icmp.type]) { in nf_conntrack_icmp_packet() [all …]
|
D | nf_conntrack_helper.c | 48 static unsigned int helper_hash(const struct nf_conntrack_tuple *tuple) in helper_hash() argument 50 return (((tuple->src.l3num << 8) | tuple->dst.protonum) ^ in helper_hash() 51 (__force __u16)tuple->src.u.all) % nf_ct_helper_hsize; in helper_hash() 55 __nf_ct_helper_find(const struct nf_conntrack_tuple *tuple) in __nf_ct_helper_find() argument 64 h = helper_hash(tuple); in __nf_ct_helper_find() 66 if (nf_ct_tuple_src_mask_cmp(tuple, &helper->tuple, &mask)) in __nf_ct_helper_find() 83 if (h->tuple.src.l3num != NFPROTO_UNSPEC && in __nf_conntrack_helper_find() 84 h->tuple.src.l3num != l3num) in __nf_conntrack_helper_find() 87 if (h->tuple.dst.protonum == protonum) in __nf_conntrack_helper_find() 220 if (!__nf_ct_helper_find(&ct->tuplehash[IP_CT_DIR_REPLY].tuple)) in nf_ct_lookup_helper() [all …]
|
D | nf_conntrack_proto_icmpv6.c | 34 struct nf_conntrack_tuple *tuple) in icmpv6_pkt_to_tuple() argument 42 tuple->dst.u.icmp.type = hp->icmp6_type; in icmpv6_pkt_to_tuple() 43 tuple->src.u.icmp.id = hp->icmp6_identifier; in icmpv6_pkt_to_tuple() 44 tuple->dst.u.icmp.code = hp->icmp6_code; in icmpv6_pkt_to_tuple() 68 bool nf_conntrack_invert_icmpv6_tuple(struct nf_conntrack_tuple *tuple, in nf_conntrack_invert_icmpv6_tuple() argument 75 tuple->src.u.icmp.id = orig->src.u.icmp.id; in nf_conntrack_invert_icmpv6_tuple() 76 tuple->dst.u.icmp.type = invmap[type] - 1; in nf_conntrack_invert_icmpv6_tuple() 77 tuple->dst.u.icmp.code = orig->dst.u.icmp.code; in nf_conntrack_invert_icmpv6_tuple() 102 int type = ct->tuplehash[0].tuple.dst.u.icmp.type - 128; in nf_conntrack_icmpv6_packet() 108 nf_ct_dump_tuple_ipv6(&ct->tuplehash[0].tuple); in nf_conntrack_icmpv6_packet() [all …]
|
D | nfnetlink_cthelper.c | 72 nfnl_cthelper_parse_tuple(struct nf_conntrack_tuple *tuple, in nfnl_cthelper_parse_tuple() argument 87 memset(tuple, 0, sizeof(struct nf_conntrack_tuple)); in nfnl_cthelper_parse_tuple() 89 tuple->src.l3num = ntohs(nla_get_be16(tb[NFCTH_TUPLE_L3PROTONUM])); in nfnl_cthelper_parse_tuple() 90 tuple->dst.protonum = nla_get_u8(tb[NFCTH_TUPLE_L4PROTONUM]); in nfnl_cthelper_parse_tuple() 217 struct nf_conntrack_tuple *tuple) in nfnl_cthelper_create() argument 246 memcpy(&helper->tuple, tuple, sizeof(struct nf_conntrack_tuple)); in nfnl_cthelper_create() 420 struct nf_conntrack_tuple tuple; in nfnl_cthelper_new() local 432 ret = nfnl_cthelper_parse_tuple(&tuple, tb[NFCTH_TUPLE]); in nfnl_cthelper_new() 442 if ((tuple.src.l3num != cur->tuple.src.l3num || in nfnl_cthelper_new() 443 tuple.dst.protonum != cur->tuple.dst.protonum)) in nfnl_cthelper_new() [all …]
|
D | nft_flow_offload.c | 34 route->tuple[!dir].in.ifindex = dst_cache->dev->ifindex; in nft_default_forward_path() 35 route->tuple[dir].dst = dst_cache; in nft_default_forward_path() 36 route->tuple[dir].xmit_type = nft_xmit_type(dst_cache); in nft_default_forward_path() 54 const void *daddr = &ct->tuplehash[!dir].tuple.src.u3; in nft_dev_fill_forward_path() 192 const struct dst_entry *dst = route->tuple[dir].dst; in nft_dev_forward_path() 204 route->tuple[!dir].in.ifindex = info.indev->ifindex; in nft_dev_forward_path() 206 route->tuple[!dir].in.encap[i].id = info.encap[i].id; in nft_dev_forward_path() 207 route->tuple[!dir].in.encap[i].proto = info.encap[i].proto; in nft_dev_forward_path() 209 route->tuple[!dir].in.num_encaps = info.num_encaps; in nft_dev_forward_path() 210 route->tuple[!dir].in.ingress_vlans = info.ingress_vlans; in nft_dev_forward_path() [all …]
|
D | nf_conncount.c | 43 struct nf_conntrack_tuple tuple; member 105 found = nf_conntrack_find_get(net, &conn->zone, &conn->tuple); in find_or_evict() 127 const struct nf_conntrack_tuple *tuple, in __nf_conncount_add() argument 144 if (nf_ct_tuple_equal(&conn->tuple, tuple) && in __nf_conncount_add() 156 if (nf_ct_tuple_equal(&conn->tuple, tuple) && in __nf_conncount_add() 187 conn->tuple = *tuple; in __nf_conncount_add() 198 const struct nf_conntrack_tuple *tuple, in nf_conncount_add() argument 205 ret = __nf_conncount_add(net, list, tuple, zone); in nf_conncount_add() 305 const struct nf_conntrack_tuple *tuple, in insert_tree() argument 333 ret = nf_conncount_add(net, &rbconn->list, tuple, zone); in insert_tree() [all …]
|
D | nf_conntrack_proto_gre.c | 61 return km->tuple.src.l3num == t->src.l3num && in gre_key_cmpfn() 62 !memcmp(&km->tuple.src.u3, &t->src.u3, sizeof(t->src.u3)) && in gre_key_cmpfn() 63 !memcmp(&km->tuple.dst.u3, &t->dst.u3, sizeof(t->dst.u3)) && in gre_key_cmpfn() 64 km->tuple.dst.protonum == t->dst.protonum && in gre_key_cmpfn() 65 km->tuple.dst.u.all == t->dst.u.all; in gre_key_cmpfn() 77 key = km->tuple.src.u.gre.key; in gre_keymap_lookup() 112 memcpy(&km->tuple, t, sizeof(*t)); in nf_ct_gre_keymap_add() 116 nf_ct_dump_tuple(&km->tuple); in nf_ct_gre_keymap_add() 152 struct net *net, struct nf_conntrack_tuple *tuple) in gre_pkt_to_tuple() argument 164 tuple->src.u.all = 0; in gre_pkt_to_tuple() [all …]
|
D | nf_conntrack_tftp.c | 48 struct nf_conntrack_tuple *tuple; in tftp_help() local 61 nf_ct_dump_tuple(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in tftp_help() 62 nf_ct_dump_tuple(&ct->tuplehash[IP_CT_DIR_REPLY].tuple); in tftp_help() 69 tuple = &ct->tuplehash[IP_CT_DIR_REPLY].tuple; in tftp_help() 72 &tuple->src.u3, &tuple->dst.u3, in tftp_help() 73 IPPROTO_UDP, NULL, &tuple->dst.u.udp.port); in tftp_help() 76 nf_ct_dump_tuple(&exp->tuple); in tftp_help()
|
D | nf_conntrack_amanda.c | 95 struct nf_conntrack_tuple *tuple; in amanda_help() local 152 tuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in amanda_help() 155 &tuple->src.u3, &tuple->dst.u3, in amanda_help() 183 .tuple.src.l3num = AF_INET, 184 .tuple.src.u.udp.port = cpu_to_be16(10080), 185 .tuple.dst.protonum = IPPROTO_UDP, 193 .tuple.src.l3num = AF_INET6, 194 .tuple.src.u.udp.port = cpu_to_be16(10080), 195 .tuple.dst.protonum = IPPROTO_UDP,
|
D | nf_conntrack_irc.c | 117 struct nf_conntrack_tuple *tuple; in help() local 212 tuple = &ct->tuplehash[dir].tuple; in help() 213 if ((tuple->src.u3.ip != dcc_ip && in help() 214 ct->tuplehash[!dir].tuple.dst.u3.ip != dcc_ip) || in help() 217 &tuple->src.u3.ip, in help() 229 tuple = &ct->tuplehash[!dir].tuple; in help() 232 tuple->src.l3num, in help() 233 NULL, &tuple->dst.u3, in help()
|
D | nf_conntrack_netlink.c | 62 const struct nf_conntrack_tuple *tuple, in ctnetlink_dump_tuples_proto() argument 71 if (nla_put_u8(skb, CTA_PROTO_NUM, tuple->dst.protonum)) in ctnetlink_dump_tuples_proto() 75 ret = l4proto->tuple_to_nlattr(skb, tuple); in ctnetlink_dump_tuples_proto() 86 const struct nf_conntrack_tuple *tuple) in ipv4_tuple_to_nlattr() argument 88 if (nla_put_in_addr(skb, CTA_IP_V4_SRC, tuple->src.u3.ip) || in ipv4_tuple_to_nlattr() 89 nla_put_in_addr(skb, CTA_IP_V4_DST, tuple->dst.u3.ip)) in ipv4_tuple_to_nlattr() 95 const struct nf_conntrack_tuple *tuple) in ipv6_tuple_to_nlattr() argument 97 if (nla_put_in6_addr(skb, CTA_IP_V6_SRC, &tuple->src.u3.in6) || in ipv6_tuple_to_nlattr() 98 nla_put_in6_addr(skb, CTA_IP_V6_DST, &tuple->dst.u3.in6)) in ipv6_tuple_to_nlattr() 104 const struct nf_conntrack_tuple *tuple) in ctnetlink_dump_tuples_ip() argument [all …]
|
/net/ipv4/netfilter/ |
D | nf_nat_h323.c | 105 if (addr.ip == ct->tuplehash[dir].tuple.src.u3.ip && in set_sig_addr() 118 &ct->tuplehash[!dir].tuple.dst.u3.ip, in set_sig_addr() 123 tuple.dst.u3, in set_sig_addr() 125 } else if (addr.ip == ct->tuplehash[dir].tuple.dst.u3.ip && in set_sig_addr() 130 &ct->tuplehash[!dir].tuple.src.u3.ip, in set_sig_addr() 135 tuple.src.u3, in set_sig_addr() 157 addr.ip == ct->tuplehash[dir].tuple.src.u3.ip && in set_ras_addr() 158 port == ct->tuplehash[dir].tuple.src.u.udp.port) { in set_ras_addr() 161 &ct->tuplehash[!dir].tuple.dst.u3.ip, in set_ras_addr() 162 ntohs(ct->tuplehash[!dir].tuple.dst.u.udp.port)); in set_ras_addr() [all …]
|
/net/netfilter/ipvs/ |
D | ip_vs_nfct.c | 104 new_tuple = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ip_vs_update_conntrack() 122 ARG_TUPLE(&ct->tuplehash[IP_CT_DIR_REPLY].tuple)); in ip_vs_update_conntrack() 157 orig = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in ip_vs_nfct_expect_callback() 158 ip_vs_conn_fill_param(net_ipvs(net), exp->tuple.src.l3num, orig->dst.protonum, in ip_vs_nfct_expect_callback() 167 new_reply = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ip_vs_nfct_expect_callback() 183 new_reply = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ip_vs_nfct_expect_callback() 233 __func__, ct, ARG_TUPLE(&exp->tuple)); in ip_vs_nfct_expect_related() 246 struct nf_conntrack_tuple tuple; in ip_vs_conn_drop_conntrack() local 251 tuple = (struct nf_conntrack_tuple) { in ip_vs_conn_drop_conntrack() 253 tuple.src.u3 = cp->caddr; in ip_vs_conn_drop_conntrack() [all …]
|
/net/sched/ |
D | act_ct.c | 88 tcf_ct_flow_table_add_action_nat_ipv4(const struct nf_conntrack_tuple *tuple, in tcf_ct_flow_table_add_action_nat_ipv4() argument 92 if (memcmp(&target.src.u3, &tuple->src.u3, sizeof(target.src.u3))) in tcf_ct_flow_table_add_action_nat_ipv4() 97 if (memcmp(&target.dst.u3, &tuple->dst.u3, sizeof(target.dst.u3))) in tcf_ct_flow_table_add_action_nat_ipv4() 118 tcf_ct_flow_table_add_action_nat_ipv6(const struct nf_conntrack_tuple *tuple, in tcf_ct_flow_table_add_action_nat_ipv6() argument 122 if (memcmp(&target.src.u3, &tuple->src.u3, sizeof(target.src.u3))) in tcf_ct_flow_table_add_action_nat_ipv6() 126 if (memcmp(&target.dst.u3, &tuple->dst.u3, sizeof(target.dst.u3))) in tcf_ct_flow_table_add_action_nat_ipv6() 133 tcf_ct_flow_table_add_action_nat_tcp(const struct nf_conntrack_tuple *tuple, in tcf_ct_flow_table_add_action_nat_tcp() argument 140 if (target_src != tuple->src.u.tcp.port) in tcf_ct_flow_table_add_action_nat_tcp() 144 if (target_dst != tuple->dst.u.tcp.port) in tcf_ct_flow_table_add_action_nat_tcp() 151 tcf_ct_flow_table_add_action_nat_udp(const struct nf_conntrack_tuple *tuple, in tcf_ct_flow_table_add_action_nat_udp() argument [all …]
|