Home
last modified time | relevance | path

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

/net/netfilter/
Dnfnetlink_cttimeout.c59 const struct nf_conntrack_l4proto *l4proto, in ctnl_timeout_parse_policy() argument
65 tb = kcalloc(l4proto->ctnl_timeout.nlattr_max + 1, sizeof(*tb), in ctnl_timeout_parse_policy()
72 l4proto->ctnl_timeout.nlattr_max, in ctnl_timeout_parse_policy()
74 l4proto->ctnl_timeout.nla_policy, in ctnl_timeout_parse_policy()
79 ret = l4proto->ctnl_timeout.nlattr_to_obj(tb, net, timeout); in ctnl_timeout_parse_policy()
93 const struct nf_conntrack_l4proto *l4proto; in cttimeout_new_timeout() local
125 matching->timeout.l4proto->l4proto != l4num) in cttimeout_new_timeout()
129 matching->timeout.l4proto, in cttimeout_new_timeout()
137 l4proto = nf_ct_l4proto_find(l4num); in cttimeout_new_timeout()
140 if (l4proto->l4proto != l4num) { in cttimeout_new_timeout()
[all …]
Dnft_ct.c38 u8 l4proto; member
802 const struct nf_conntrack_l4proto *l4proto, in nft_ct_timeout_parse_policy() argument
808 tb = kcalloc(l4proto->ctnl_timeout.nlattr_max + 1, sizeof(*tb), in nft_ct_timeout_parse_policy()
815 l4proto->ctnl_timeout.nlattr_max, in nft_ct_timeout_parse_policy()
817 l4proto->ctnl_timeout.nla_policy, in nft_ct_timeout_parse_policy()
822 ret = l4proto->ctnl_timeout.nlattr_to_obj(tb, net, timeouts); in nft_ct_timeout_parse_policy()
831 u8 l4proto; member
843 if (priv->l4proto != pkt->tprot) in nft_ct_timeout_obj_eval()
873 const struct nf_conntrack_l4proto *l4proto; in nft_ct_timeout_obj_init() local
887 priv->l4proto = l4num; in nft_ct_timeout_obj_init()
[all …]
Dnf_conntrack_timeout.c93 if (timeout->l4proto->l4proto != l4num) { in nf_ct_set_timeout()
97 timeout_name, 4, timeout->l4proto->l4proto); in nf_ct_set_timeout()
Dnft_tproxy.c96 int l4proto; in nft_tproxy_eval_v6() local
105 l4proto = pkt->tprot; in nft_tproxy_eval_v6()
117 sk = nf_tproxy_get_sock_v6(nft_net(pkt), skb, thoff, l4proto, in nft_tproxy_eval_v6()
134 sk = nf_tproxy_handle_time_wait6(skb, l4proto, thoff, in nft_tproxy_eval_v6()
144 l4proto, &iph->saddr, &taddr, in nft_tproxy_eval_v6()
Dnf_conntrack_standalone.c39 const struct nf_conntrack_l4proto *l4proto) in print_tuple() argument
54 switch (l4proto->l4proto) { in print_tuple()
301 const struct nf_conntrack_l4proto *l4proto; in ct_seq_show() local
321 l4proto = nf_ct_l4proto_find(nf_ct_protonum(ct)); in ct_seq_show()
326 l4proto_name(l4proto->l4proto), nf_ct_protonum(ct)); in ct_seq_show()
331 if (l4proto->print_conntrack) in ct_seq_show()
332 l4proto->print_conntrack(s, ct); in ct_seq_show()
335 l4proto); in ct_seq_show()
348 print_tuple(s, &ct->tuplehash[IP_CT_DIR_REPLY].tuple, l4proto); in ct_seq_show()
Dxt_CT.c108 const struct nf_conntrack_l4proto *l4proto; in xt_ct_set_timeout() local
117 l4proto = nf_ct_l4proto_find(proto); in xt_ct_set_timeout()
118 return nf_ct_set_timeout(par->net, ct, par->family, l4proto->l4proto, in xt_ct_set_timeout()
Dnf_conntrack_proto_icmp.c109 u8 l4proto, union nf_inet_addr *outer_daddr) in nf_conntrack_inet_error() argument
174 l4proto, in nf_conntrack_inet_error()
179 l4proto, in nf_conntrack_inet_error()
367 .l4proto = IPPROTO_ICMP,
Dnf_conntrack_netlink.c63 const struct nf_conntrack_l4proto *l4proto) in ctnetlink_dump_tuples_proto() argument
74 if (likely(l4proto->tuple_to_nlattr)) in ctnetlink_dump_tuples_proto()
75 ret = l4proto->tuple_to_nlattr(skb, tuple); in ctnetlink_dump_tuples_proto()
133 const struct nf_conntrack_l4proto *l4proto; in ctnetlink_dump_tuples() local
140 l4proto = nf_ct_l4proto_find(tuple->dst.protonum); in ctnetlink_dump_tuples()
141 ret = ctnetlink_dump_tuples_proto(skb, tuple, l4proto); in ctnetlink_dump_tuples()
189 const struct nf_conntrack_l4proto *l4proto; in ctnetlink_dump_protoinfo() local
193 l4proto = nf_ct_l4proto_find(nf_ct_protonum(ct)); in ctnetlink_dump_protoinfo()
194 if (!l4proto->to_nlattr) in ctnetlink_dump_protoinfo()
201 ret = l4proto->to_nlattr(skb, nest_proto, ct, destroy); in ctnetlink_dump_protoinfo()
[all …]
Dnf_conntrack_proto_udp.c282 .l4proto = IPPROTO_UDP,
304 .l4proto = IPPROTO_UDPLITE,
Dnf_conntrack_proto_generic.c69 .l4proto = 255,
Dxt_conntrack.c83 (nf_ct_protonum(ct) == info->l4proto) ^ in ct_proto_port_check()
127 (nf_ct_protonum(ct) == info->l4proto) ^ in ct_proto_port_check_v3()
Dnft_compat.c203 u32 l4proto; in nft_parse_compat() local
222 l4proto = ntohl(nla_get_be32(tb[NFTA_RULE_COMPAT_PROTO])); in nft_parse_compat()
223 if (l4proto > U16_MAX) in nft_parse_compat()
226 *proto = l4proto; in nft_parse_compat()
Dxt_ipvs.c75 if ((iph.protocol == data->l4proto) ^ in ipvs_mt()
Dnf_flow_table_offload.c166 switch (tuple->l4proto) { in nf_flow_rule_match()
178 key->basic.ip_proto = tuple->l4proto; in nf_flow_rule_match()
436 u8 protonum = flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.l4proto; in flow_offload_l4proto()
517 u8 protonum = flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.l4proto; in flow_offload_ipv4_checksum()
Dnf_conntrack_core.c1119 const struct nf_conntrack_l4proto *l4proto; in nf_ct_resolve_clash() local
1128 l4proto = nf_ct_l4proto_find(nf_ct_protonum(ct)); in nf_ct_resolve_clash()
1129 if (!l4proto->allow_clash) in nf_ct_resolve_clash()
1426 const struct nf_conntrack_l4proto *l4proto; in gc_worker_can_early_drop() local
1431 l4proto = nf_ct_l4proto_find(nf_ct_protonum(ct)); in gc_worker_can_early_drop()
1432 if (l4proto->can_early_drop && l4proto->can_early_drop(ct)) in gc_worker_can_early_drop()
Dnf_conntrack_proto.c97 const struct nf_conntrack_l4proto *nf_ct_l4proto_find(u8 l4proto) in nf_ct_l4proto_find() argument
99 switch (l4proto) { in nf_ct_l4proto_find()
Dnf_nat_core.c779 u8 l4proto; member
788 (clean->l4proto && nf_ct_protonum(i) != clean->l4proto)) in nf_nat_proto_remove()
Dnf_flow_table_ip.c211 tuple->l4proto = iph->protocol; in nf_flow_tuple_ip()
552 tuple->l4proto = ip6h->nexthdr; in nf_flow_tuple_ipv6()
Dnf_conntrack_proto_gre.c298 .l4proto = IPPROTO_GRE,
Dnf_conntrack_proto_icmpv6.c343 .l4proto = IPPROTO_ICMPV6,
Dnf_conntrack_proto_dccp.c801 .l4proto = IPPROTO_DCCP,
Dnf_flow_table_core.c41 ft->l4proto = ctt->dst.protonum; in flow_offload_fill_dir()
Dnf_conntrack_proto_sctp.c697 .l4proto = IPPROTO_SCTP,
Dnf_conntrack_proto_tcp.c1561 .l4proto = IPPROTO_TCP,
/net/sched/
Dact_ct.c459 tuple->l4proto = iph->protocol; in tcf_ct_flow_table_fill_tuple_ipv4()
501 tuple->l4proto = ip6h->nexthdr; in tcf_ct_flow_table_fill_tuple_ipv6()