Home
last modified time | relevance | path

Searched refs:l4proto (Results 1 – 25 of 29) sorted by relevance

12

/net/netfilter/
Dnf_conntrack_proto.c69 __nf_ct_l4proto_find(u_int16_t l3proto, u_int8_t l4proto) in __nf_ct_l4proto_find() argument
74 return rcu_dereference(nf_ct_protos[l3proto][l4proto]); in __nf_ct_l4proto_find()
156 struct nf_conntrack_l4proto *l4proto; in kill_l4proto() local
157 l4proto = (struct nf_conntrack_l4proto *)data; in kill_l4proto()
158 return nf_ct_protonum(i) == l4proto->l4proto && in kill_l4proto()
159 nf_ct_l3num(i) == l4proto->l3proto; in kill_l4proto()
233 struct nf_conntrack_l4proto *l4proto) in nf_ct_l4proto_net() argument
235 if (l4proto->get_net_proto) { in nf_ct_l4proto_net()
237 return l4proto->get_net_proto(net); in nf_ct_l4proto_net()
238 } else if (l4proto->net_id) { in nf_ct_l4proto_net()
[all …]
Dnfnetlink_cttimeout.c50 ctnl_timeout_parse_policy(void *timeouts, struct nf_conntrack_l4proto *l4proto, in ctnl_timeout_parse_policy() argument
55 if (likely(l4proto->ctnl_timeout.nlattr_to_obj)) { in ctnl_timeout_parse_policy()
56 struct nlattr *tb[l4proto->ctnl_timeout.nlattr_max+1]; in ctnl_timeout_parse_policy()
58 ret = nla_parse_nested(tb, l4proto->ctnl_timeout.nlattr_max, in ctnl_timeout_parse_policy()
59 attr, l4proto->ctnl_timeout.nla_policy); in ctnl_timeout_parse_policy()
63 ret = l4proto->ctnl_timeout.nlattr_to_obj(tb, net, timeouts); in ctnl_timeout_parse_policy()
75 struct nf_conntrack_l4proto *l4proto; in cttimeout_new_timeout() local
107 matching->l4proto->l4proto != l4num) in cttimeout_new_timeout()
111 matching->l4proto, net, in cttimeout_new_timeout()
118 l4proto = nf_ct_l4proto_find_get(l3num, l4num); in cttimeout_new_timeout()
[all …]
Dnf_nat_core.c159 const struct nf_nat_l4proto *l4proto, in in_range() argument
171 l4proto->in_range(tuple, NF_NAT_MANIP_SRC, in in_range()
195 const struct nf_nat_l4proto *l4proto, in find_appropriate_src() argument
212 if (in_range(l3proto, l4proto, result, range)) in find_appropriate_src()
308 const struct nf_nat_l4proto *l4proto; in get_unique_tuple() local
315 l4proto = __nf_nat_l4proto_find(orig_tuple->src.l3num, in get_unique_tuple()
329 if (in_range(l3proto, l4proto, orig_tuple, range)) { in get_unique_tuple()
334 } else if (find_appropriate_src(net, zone, l3proto, l4proto, in get_unique_tuple()
353 if (l4proto->in_range(tuple, maniptype, in get_unique_tuple()
365 l4proto->unique_tuple(l3proto, tuple, range, maniptype, ct); in get_unique_tuple()
[all …]
Dnf_conntrack_core.c241 const struct nf_conntrack_l4proto *l4proto) in nf_ct_get_tuple() argument
252 return l4proto->pkt_to_tuple(skb, dataoff, net, tuple); in nf_ct_get_tuple()
261 struct nf_conntrack_l4proto *l4proto; in nf_ct_get_tuplepr() local
275 l4proto = __nf_ct_l4proto_find(l3num, protonum); in nf_ct_get_tuplepr()
278 l3proto, l4proto); in nf_ct_get_tuplepr()
289 const struct nf_conntrack_l4proto *l4proto) in nf_ct_invert_tuple() argument
300 return l4proto->invert_tuple(inverse, orig); in nf_ct_invert_tuple()
391 struct nf_conntrack_l4proto *l4proto; in destroy_conntrack() local
401 l4proto = __nf_ct_l4proto_find(nf_ct_l3num(ct), nf_ct_protonum(ct)); in destroy_conntrack()
402 if (l4proto->destroy) in destroy_conntrack()
[all …]
Dnf_conntrack_standalone.c42 const struct nf_conntrack_l4proto *l4proto) in print_tuple() argument
45 l4proto->print_tuple(s, tuple); in print_tuple()
207 const struct nf_conntrack_l4proto *l4proto; in ct_seq_show() local
229 l4proto = __nf_ct_l4proto_find(nf_ct_l3num(ct), nf_ct_protonum(ct)); in ct_seq_show()
230 NF_CT_ASSERT(l4proto); in ct_seq_show()
235 l4proto->name, nf_ct_protonum(ct), in ct_seq_show()
238 if (l4proto->print_conntrack) in ct_seq_show()
239 l4proto->print_conntrack(s, ct); in ct_seq_show()
242 l3proto, l4proto); in ct_seq_show()
256 l3proto, l4proto); in ct_seq_show()
Dxt_CT.c126 struct nf_conntrack_l4proto *l4proto; in xt_ct_set_timeout() local
162 l4proto = __nf_ct_l4proto_find(par->family, proto); in xt_ct_set_timeout()
163 if (timeout->l4proto->l4proto != l4proto->l4proto) { in xt_ct_set_timeout()
167 timeout_name, timeout->l4proto->l4proto); in xt_ct_set_timeout()
Dnf_conntrack_netlink.c65 struct nf_conntrack_l4proto *l4proto) in ctnetlink_dump_tuples_proto() argument
76 if (likely(l4proto->tuple_to_nlattr)) in ctnetlink_dump_tuples_proto()
77 ret = l4proto->tuple_to_nlattr(skb, tuple); in ctnetlink_dump_tuples_proto()
114 struct nf_conntrack_l4proto *l4proto; in ctnetlink_dump_tuples() local
121 l4proto = __nf_ct_l4proto_find(tuple->src.l3num, in ctnetlink_dump_tuples()
123 ret = ctnetlink_dump_tuples_proto(skb, tuple, l4proto); in ctnetlink_dump_tuples()
166 struct nf_conntrack_l4proto *l4proto; in ctnetlink_dump_protoinfo() local
170 l4proto = __nf_ct_l4proto_find(nf_ct_l3num(ct), nf_ct_protonum(ct)); in ctnetlink_dump_protoinfo()
171 if (!l4proto->to_nlattr) in ctnetlink_dump_protoinfo()
178 ret = l4proto->to_nlattr(skb, nest_proto, ct); in ctnetlink_dump_protoinfo()
[all …]
Dnf_conntrack_proto_udp.c263 .l4proto = IPPROTO_UDP,
296 .l4proto = IPPROTO_UDP,
Dnf_nat_proto_tcp.c78 .l4proto = IPPROTO_TCP,
Dnf_nat_proto_udp.c69 .l4proto = IPPROTO_UDP,
Dnf_nat_proto_sctp.c58 .l4proto = IPPROTO_SCTP,
Dxt_conntrack.c86 (nf_ct_protonum(ct) == info->l4proto) ^ in ct_proto_port_check()
130 (nf_ct_protonum(ct) == info->l4proto) ^ in ct_proto_port_check_v3()
Dnf_conntrack_proto_udplite.c276 .l4proto = IPPROTO_UDPLITE,
309 .l4proto = IPPROTO_UDPLITE,
Dnf_nat_proto_udplite.c68 .l4proto = IPPROTO_UDPLITE,
Dnf_nat_proto_dccp.c77 .l4proto = IPPROTO_DCCP,
Dnf_conntrack_proto_generic.c189 .l4proto = 255,
Dxt_ipvs.c74 if ((iph.protocol == data->l4proto) ^ in ipvs_mt()
Dnf_conntrack_proto_dccp.c873 .l4proto = IPPROTO_DCCP,
907 .l4proto = IPPROTO_DCCP,
Dnf_conntrack_proto_sctp.c753 .l4proto = IPPROTO_SCTP,
787 .l4proto = IPPROTO_SCTP,
/net/ipv4/netfilter/
Dnf_nat_l3proto_ipv4.c80 const struct nf_nat_l4proto *l4proto, in nf_nat_ipv4_manip_pkt() argument
93 if (!l4proto->manip_pkt(skb, &nf_nat_l3proto_ipv4, iphdroff, hdroff, in nf_nat_ipv4_manip_pkt()
189 const struct nf_nat_l4proto *l4proto; in nf_nat_icmp_reply_translation() local
220 l4proto = __nf_nat_l4proto_find(NFPROTO_IPV4, inside->ip.protocol); in nf_nat_icmp_reply_translation()
222 l4proto, &ct->tuplehash[!dir].tuple, !manip)) in nf_nat_icmp_reply_translation()
236 l4proto = __nf_nat_l4proto_find(NFPROTO_IPV4, 0); in nf_nat_icmp_reply_translation()
237 if (!nf_nat_ipv4_manip_pkt(skb, 0, l4proto, &target, manip)) in nf_nat_icmp_reply_translation()
Dnf_nat_proto_icmp.c76 .l4proto = IPPROTO_ICMP,
Dnf_nat_proto_gre.c124 .l4proto = IPPROTO_GRE,
/net/ipv6/netfilter/
Dnf_nat_l3proto_ipv6.c79 const struct nf_nat_l4proto *l4proto, in nf_nat_ipv6_manip_pkt() argument
99 !l4proto->manip_pkt(skb, &nf_nat_l3proto_ipv6, iphdroff, hdroff, in nf_nat_ipv6_manip_pkt()
199 const struct nf_nat_l4proto *l4proto; in nf_nat_icmpv6_reply_translation() local
230 l4proto = __nf_nat_l4proto_find(NFPROTO_IPV6, inside->ip6.nexthdr); in nf_nat_icmpv6_reply_translation()
232 l4proto, &ct->tuplehash[!dir].tuple, !manip)) in nf_nat_icmpv6_reply_translation()
247 l4proto = __nf_nat_l4proto_find(NFPROTO_IPV6, IPPROTO_ICMPV6); in nf_nat_icmpv6_reply_translation()
248 if (!nf_nat_ipv6_manip_pkt(skb, 0, l4proto, &target, manip)) in nf_nat_icmpv6_reply_translation()
Dnf_nat_proto_icmpv6.c83 .l4proto = IPPROTO_ICMPV6,
/net/openvswitch/
Dconntrack.c463 struct nf_conntrack_l4proto *l4proto; in ovs_ct_find_existing() local
476 l4proto = __nf_ct_l4proto_find(l3num, protonum); in ovs_ct_find_existing()
478 protonum, net, &tuple, l3proto, l4proto)) { in ovs_ct_find_existing()

12