Home
last modified time | relevance | path

Searched refs:tuple (Results 1 – 25 of 55) sorted by relevance

123

/net/ipv4/netfilter/
Dnf_nat_h323.c105 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 …]
Dnf_nat_pptp.c67 t.src.u3.ip = master->tuplehash[!exp->dir].tuple.src.u3.ip; in pptp_nat_expected()
69 t.dst.u3.ip = master->tuplehash[!exp->dir].tuple.dst.u3.ip; in pptp_nat_expected()
76 t.src.u3.ip = master->tuplehash[!exp->dir].tuple.src.u3.ip; in pptp_nat_expected()
78 t.dst.u3.ip = master->tuplehash[!exp->dir].tuple.dst.u3.ip; in pptp_nat_expected()
100 = ct->master->tuplehash[!exp->dir].tuple.dst.u3; in pptp_nat_expected()
110 = ct->master->tuplehash[!exp->dir].tuple.src.u3; in pptp_nat_expected()
156 new_callid = ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.u.tcp.port; in pptp_outbound_pkt()
218 expect_orig->tuple.src.u.gre.key = nat_pptp_info->pns_call_id; in pptp_exp_gre()
219 expect_orig->tuple.dst.u.gre.key = ct_pptp_info->pac_call_id; in pptp_exp_gre()
224 expect_reply->tuple.src.u.gre.key = nat_pptp_info->pac_call_id; in pptp_exp_gre()
[all …]
Dnf_nat_snmp_basic_main.c136 ctx.from = ct->tuplehash[dir].tuple.src.u3.ip; in snmp_translate()
137 ctx.to = ct->tuplehash[!dir].tuple.dst.u3.ip; in snmp_translate()
139 ctx.from = ct->tuplehash[!dir].tuple.src.u3.ip; in snmp_translate()
140 ctx.to = ct->tuplehash[dir].tuple.dst.u3.ip; in snmp_translate()
210 .tuple.src.l3num = AF_INET,
211 .tuple.src.u.udp.port = cpu_to_be16(SNMP_TRAP_PORT),
212 .tuple.dst.protonum = IPPROTO_UDP,
/net/netfilter/
Dnf_nat_sip.c107 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 …]
Dnf_nat_proto.c41 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 …]
Dnf_flow_table_ip.c101 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.dst_v4.s_addr; in nf_flow_snat_ip()
106 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.src_v4.s_addr; in nf_flow_snat_ip()
126 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.src_v4.s_addr; in nf_flow_dnat_ip()
131 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.dst_v4.s_addr; in nf_flow_dnat_ip()
165 struct flow_offload_tuple *tuple) in nf_flow_tuple_ip() argument
195 tuple->src_v4.s_addr = iph->saddr; in nf_flow_tuple_ip()
196 tuple->dst_v4.s_addr = iph->daddr; in nf_flow_tuple_ip()
197 tuple->src_port = ports->source; in nf_flow_tuple_ip()
198 tuple->dst_port = ports->dest; in nf_flow_tuple_ip()
199 tuple->l3proto = AF_INET; in nf_flow_tuple_ip()
[all …]
Dnf_conntrack_expect.c79 …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
87 hash = jhash2(tuple->dst.u3.all, ARRAY_SIZE(tuple->dst.u3.all), in nf_ct_expect_dst_hash()
88 (((tuple->dst.protonum ^ tuple->src.l3num) << 16) | in nf_ct_expect_dst_hash()
89 (__force __u16)tuple->dst.u.all) ^ seed); in nf_ct_expect_dst_hash()
95 nf_ct_exp_equal(const struct nf_conntrack_tuple *tuple, in nf_ct_exp_equal() argument
100 return nf_ct_tuple_mask_cmp(tuple, &i->tuple, &i->mask) && in nf_ct_exp_equal()
119 const struct nf_conntrack_tuple *tuple) in __nf_ct_expect_find() argument
127 h = nf_ct_expect_dst_hash(net, tuple); in __nf_ct_expect_find()
129 if (nf_ct_exp_equal(tuple, i, zone, net)) in __nf_ct_expect_find()
140 const struct nf_conntrack_tuple *tuple) in nf_ct_expect_find_get() argument
[all …]
Dnf_nat_core.c61 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()
190 hash_by_src(const struct net *n, const struct nf_conntrack_tuple *tuple) in hash_by_src() argument
197 hash = jhash2((u32 *)&tuple->src, sizeof(tuple->src) / sizeof(u32), in hash_by_src()
198 tuple->dst.protonum ^ nf_nat_hash_rnd ^ net_hash_mix(n)); in hash_by_src()
205 nf_nat_used_tuple(const struct nf_conntrack_tuple *tuple, in nf_nat_used_tuple() argument
216 nf_ct_invert_tuple(&reply, tuple); in nf_nat_used_tuple()
232 static bool l4proto_in_range(const struct nf_conntrack_tuple *tuple, in l4proto_in_range() argument
239 switch (tuple->dst.protonum) { in l4proto_in_range()
242 return ntohs(tuple->src.u.icmp.id) >= ntohs(min->icmp.id) && in l4proto_in_range()
[all …]
Dxt_conntrack.c44 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 …]
Dnf_conntrack_core.c180 static u32 hash_conntrack_raw(const struct nf_conntrack_tuple *tuple, in hash_conntrack_raw() argument
193 n = (sizeof(tuple->src) + sizeof(tuple->dst.u3)) / sizeof(u32); in hash_conntrack_raw()
194 return jhash2((u32 *)tuple, n, seed ^ in hash_conntrack_raw()
195 (((__force __u16)tuple->dst.u.all << 16) | in hash_conntrack_raw()
196 tuple->dst.protonum)); in hash_conntrack_raw()
205 const struct nf_conntrack_tuple *tuple, in __hash_conntrack() argument
208 return reciprocal_scale(hash_conntrack_raw(tuple, net), size); in __hash_conntrack()
212 const struct nf_conntrack_tuple *tuple) in hash_conntrack() argument
214 return scale_hash(hash_conntrack_raw(tuple, net)); in hash_conntrack()
219 struct nf_conntrack_tuple *tuple) in nf_ct_get_tuple_ports() argument
[all …]
Dnf_conntrack_proto.c243 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 …]
Dnf_conntrack_h323_main.c272 memcmp(&addr, &ct->tuplehash[dir].tuple.src.u3, sizeof(addr)) || in expect_rtp_rtcp()
284 &ct->tuplehash[!dir].tuple.src.u3, in expect_rtp_rtcp()
285 &ct->tuplehash[!dir].tuple.dst.u3, in expect_rtp_rtcp()
294 &ct->tuplehash[!dir].tuple.src.u3, in expect_rtp_rtcp()
295 &ct->tuplehash[!dir].tuple.dst.u3, in expect_rtp_rtcp()
298 if (memcmp(&ct->tuplehash[dir].tuple.src.u3, in expect_rtp_rtcp()
299 &ct->tuplehash[!dir].tuple.dst.u3, in expect_rtp_rtcp()
300 sizeof(ct->tuplehash[dir].tuple.src.u3)) && in expect_rtp_rtcp()
311 nf_ct_dump_tuple(&rtp_exp->tuple); in expect_rtp_rtcp()
313 nf_ct_dump_tuple(&rtcp_exp->tuple); in expect_rtp_rtcp()
[all …]
Dnf_conntrack_proto_icmp.c26 struct net *net, struct nf_conntrack_tuple *tuple) in icmp_pkt_to_tuple() argument
35 tuple->dst.u.icmp.type = hp->type; in icmp_pkt_to_tuple()
36 tuple->src.u.icmp.id = hp->un.echo.id; in icmp_pkt_to_tuple()
37 tuple->dst.u.icmp.code = hp->code; in icmp_pkt_to_tuple()
54 bool nf_conntrack_invert_icmp_tuple(struct nf_conntrack_tuple *tuple, in nf_conntrack_invert_icmp_tuple() argument
61 tuple->src.u.icmp.id = orig->src.u.icmp.id; in nf_conntrack_invert_icmp_tuple()
62 tuple->dst.u.icmp.type = invmap[orig->dst.u.icmp.type] - 1; in nf_conntrack_invert_icmp_tuple()
63 tuple->dst.u.icmp.code = orig->dst.u.icmp.code; in nf_conntrack_invert_icmp_tuple()
87 if (ct->tuplehash[0].tuple.dst.u.icmp.type >= sizeof(valid_new) || in nf_conntrack_icmp_packet()
88 !valid_new[ct->tuplehash[0].tuple.dst.u.icmp.type]) { in nf_conntrack_icmp_packet()
[all …]
Dnf_conntrack_helper.c48 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()
218 if (!__nf_ct_helper_find(&ct->tuplehash[IP_CT_DIR_REPLY].tuple)) in nf_ct_lookup_helper()
[all …]
Dnf_flow_table_core.c31 struct flow_offload_tuple *ft = &flow->tuplehash[dir].tuple; in flow_offload_fill_dir()
32 struct nf_conntrack_tuple *ctt = &ct->tuplehash[dir].tuple; in flow_offload_fill_dir()
33 struct dst_entry *other_dst = route->tuple[!dir].dst; in flow_offload_fill_dir()
34 struct dst_entry *dst = route->tuple[dir].dst; in flow_offload_fill_dir()
76 if (!dst_hold_safe(route->tuple[FLOW_OFFLOAD_DIR_ORIGINAL].dst)) in flow_offload_alloc()
79 if (!dst_hold_safe(route->tuple[FLOW_OFFLOAD_DIR_REPLY].dst)) in flow_offload_alloc()
95 dst_release(route->tuple[FLOW_OFFLOAD_DIR_ORIGINAL].dst); in flow_offload_alloc()
157 dst_release(flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.dst_cache); in flow_offload_free()
158 dst_release(flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.dst_cache); in flow_offload_free()
169 const struct flow_offload_tuple *tuple = data; in flow_offload_hash() local
[all …]
Dnf_conntrack_proto_icmpv6.c32 struct nf_conntrack_tuple *tuple) in icmpv6_pkt_to_tuple() argument
40 tuple->dst.u.icmp.type = hp->icmp6_type; in icmpv6_pkt_to_tuple()
41 tuple->src.u.icmp.id = hp->icmp6_identifier; in icmpv6_pkt_to_tuple()
42 tuple->dst.u.icmp.code = hp->icmp6_code; in icmpv6_pkt_to_tuple()
66 bool nf_conntrack_invert_icmpv6_tuple(struct nf_conntrack_tuple *tuple, in nf_conntrack_invert_icmpv6_tuple() argument
73 tuple->src.u.icmp.id = orig->src.u.icmp.id; in nf_conntrack_invert_icmpv6_tuple()
74 tuple->dst.u.icmp.type = invmap[type] - 1; in nf_conntrack_invert_icmpv6_tuple()
75 tuple->dst.u.icmp.code = orig->dst.u.icmp.code; in nf_conntrack_invert_icmpv6_tuple()
100 int type = ct->tuplehash[0].tuple.dst.u.icmp.type - 128; in nf_conntrack_icmpv6_packet()
106 nf_ct_dump_tuple_ipv6(&ct->tuplehash[0].tuple); in nf_conntrack_icmpv6_packet()
[all …]
Dnfnetlink_cthelper.c72 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()
422 struct nf_conntrack_tuple tuple; in nfnl_cthelper_new() local
434 ret = nfnl_cthelper_parse_tuple(&tuple, tb[NFCTH_TUPLE]); in nfnl_cthelper_new()
444 if ((tuple.src.l3num != cur->tuple.src.l3num || in nfnl_cthelper_new()
445 tuple.dst.protonum != cur->tuple.dst.protonum)) in nfnl_cthelper_new()
[all …]
Dnf_conncount.c43 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 …]
Dnf_conntrack_tftp.c48 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()
Dnf_conntrack_proto_gre.c74 return km->tuple.src.l3num == t->src.l3num && in gre_key_cmpfn()
75 !memcmp(&km->tuple.src.u3, &t->src.u3, sizeof(t->src.u3)) && in gre_key_cmpfn()
76 !memcmp(&km->tuple.dst.u3, &t->dst.u3, sizeof(t->dst.u3)) && in gre_key_cmpfn()
77 km->tuple.dst.protonum == t->dst.protonum && in gre_key_cmpfn()
78 km->tuple.dst.u.all == t->dst.u.all; in gre_key_cmpfn()
90 key = km->tuple.src.u.gre.key; in gre_keymap_lookup()
125 memcpy(&km->tuple, t, sizeof(*t)); in nf_ct_gre_keymap_add()
129 nf_ct_dump_tuple(&km->tuple); in nf_ct_gre_keymap_add()
165 struct net *net, struct nf_conntrack_tuple *tuple) in gre_pkt_to_tuple() argument
177 tuple->src.u.all = 0; in gre_pkt_to_tuple()
[all …]
Dnf_conntrack_amanda.c95 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,
Dnf_conntrack_irc.c117 struct nf_conntrack_tuple *tuple; in help() local
209 tuple = &ct->tuplehash[dir].tuple; in help()
210 if ((tuple->src.u3.ip != dcc_ip && in help()
211 ct->tuplehash[!dir].tuple.dst.u3.ip != dcc_ip) || in help()
214 &tuple->src.u3.ip, in help()
226 tuple = &ct->tuplehash[!dir].tuple; in help()
229 tuple->src.l3num, in help()
230 NULL, &tuple->dst.u3, in help()
Dnf_conntrack_netlink.c60 const struct nf_conntrack_tuple *tuple, in ctnetlink_dump_tuples_proto() argument
69 if (nla_put_u8(skb, CTA_PROTO_NUM, tuple->dst.protonum)) in ctnetlink_dump_tuples_proto()
73 ret = l4proto->tuple_to_nlattr(skb, tuple); in ctnetlink_dump_tuples_proto()
84 const struct nf_conntrack_tuple *tuple) in ipv4_tuple_to_nlattr() argument
86 if (nla_put_in_addr(skb, CTA_IP_V4_SRC, tuple->src.u3.ip) || in ipv4_tuple_to_nlattr()
87 nla_put_in_addr(skb, CTA_IP_V4_DST, tuple->dst.u3.ip)) in ipv4_tuple_to_nlattr()
93 const struct nf_conntrack_tuple *tuple) in ipv6_tuple_to_nlattr() argument
95 if (nla_put_in6_addr(skb, CTA_IP_V6_SRC, &tuple->src.u3.in6) || in ipv6_tuple_to_nlattr()
96 nla_put_in6_addr(skb, CTA_IP_V6_DST, &tuple->dst.u3.in6)) in ipv6_tuple_to_nlattr()
102 const struct nf_conntrack_tuple *tuple) in ctnetlink_dump_tuples_ip() argument
[all …]
Dnf_conntrack_standalone.c35 print_tuple(struct seq_file *s, const struct nf_conntrack_tuple *tuple, in print_tuple() argument
38 switch (tuple->src.l3num) { in print_tuple()
41 &tuple->src.u3.ip, &tuple->dst.u3.ip); in print_tuple()
45 tuple->src.u3.ip6, tuple->dst.u3.ip6); in print_tuple()
54 tuple->dst.u.icmp.type, in print_tuple()
55 tuple->dst.u.icmp.code, in print_tuple()
56 ntohs(tuple->src.u.icmp.id)); in print_tuple()
60 ntohs(tuple->src.u.tcp.port), in print_tuple()
61 ntohs(tuple->dst.u.tcp.port)); in print_tuple()
66 ntohs(tuple->src.u.udp.port), in print_tuple()
[all …]
/net/netfilter/ipvs/
Dip_vs_nfct.c104 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 …]

123