Home
last modified time | relevance | path

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

/net/netfilter/
Dnfnetlink_cttimeout.c47 const struct nf_conntrack_l4proto *l4proto, in ctnl_timeout_parse_policy() argument
53 tb = kcalloc(l4proto->ctnl_timeout.nlattr_max + 1, sizeof(*tb), in ctnl_timeout_parse_policy()
60 l4proto->ctnl_timeout.nlattr_max, in ctnl_timeout_parse_policy()
62 l4proto->ctnl_timeout.nla_policy, in ctnl_timeout_parse_policy()
67 ret = l4proto->ctnl_timeout.nlattr_to_obj(tb, net, timeout); in ctnl_timeout_parse_policy()
82 const struct nf_conntrack_l4proto *l4proto; in cttimeout_new_timeout() local
114 matching->timeout.l4proto->l4proto != l4num) in cttimeout_new_timeout()
118 matching->timeout.l4proto, in cttimeout_new_timeout()
125 l4proto = nf_ct_l4proto_find(l4num); in cttimeout_new_timeout()
128 if (l4proto->l4proto != l4num) { in cttimeout_new_timeout()
[all …]
Dnft_ct.c38 u8 l4proto; member
801 const struct nf_conntrack_l4proto *l4proto, in nft_ct_timeout_parse_policy() argument
807 tb = kcalloc(l4proto->ctnl_timeout.nlattr_max + 1, sizeof(*tb), in nft_ct_timeout_parse_policy()
814 l4proto->ctnl_timeout.nlattr_max, in nft_ct_timeout_parse_policy()
816 l4proto->ctnl_timeout.nla_policy, in nft_ct_timeout_parse_policy()
821 ret = l4proto->ctnl_timeout.nlattr_to_obj(tb, net, timeouts); in nft_ct_timeout_parse_policy()
830 u8 l4proto; member
842 if (priv->l4proto != pkt->tprot) in nft_ct_timeout_obj_eval()
872 const struct nf_conntrack_l4proto *l4proto; in nft_ct_timeout_obj_init() local
886 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.c36 const struct nf_conntrack_l4proto *l4proto) in print_tuple() argument
51 switch (l4proto->l4proto) { in print_tuple()
298 const struct nf_conntrack_l4proto *l4proto; in ct_seq_show() local
318 l4proto = nf_ct_l4proto_find(nf_ct_protonum(ct)); in ct_seq_show()
323 l4proto_name(l4proto->l4proto), nf_ct_protonum(ct)); in ct_seq_show()
328 if (l4proto->print_conntrack) in ct_seq_show()
329 l4proto->print_conntrack(s, ct); in ct_seq_show()
332 l4proto); in ct_seq_show()
345 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()
368 .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()
184 const struct nf_conntrack_l4proto *l4proto; in ctnetlink_dump_protoinfo() local
188 l4proto = nf_ct_l4proto_find(nf_ct_protonum(ct)); in ctnetlink_dump_protoinfo()
189 if (!l4proto->to_nlattr) in ctnetlink_dump_protoinfo()
196 ret = l4proto->to_nlattr(skb, nest_proto, ct); in ctnetlink_dump_protoinfo()
[all …]
Dnf_flow_table_core.c41 ft->l4proto = ctt->dst.protonum; in flow_offload_fill_dir()
139 const struct nf_conntrack_l4proto *l4proto; in flow_offload_fixup_ct_timeout() local
143 l4proto = nf_ct_l4proto_find(l4num); in flow_offload_fixup_ct_timeout()
144 if (!l4proto) in flow_offload_fixup_ct_timeout()
Dnf_conntrack_proto_udp.c280 .l4proto = IPPROTO_UDP,
302 .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.c195 u32 l4proto; in nft_parse_compat() local
214 l4proto = ntohl(nla_get_be32(tb[NFTA_RULE_COMPAT_PROTO])); in nft_parse_compat()
215 if (l4proto > U16_MAX) in nft_parse_compat()
218 *proto = l4proto; in nft_parse_compat()
Dxt_ipvs.c75 if ((iph.protocol == data->l4proto) ^ in ipvs_mt()
Dnf_flow_table_offload.c127 switch (tuple->l4proto) { in nf_flow_rule_match()
139 key->basic.ip_proto = tuple->l4proto; in nf_flow_rule_match()
369 u8 protonum = flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.l4proto; in flow_offload_l4proto()
450 u8 protonum = flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.l4proto; in flow_offload_ipv4_checksum()
Dnf_conntrack_core.c1047 const struct nf_conntrack_l4proto *l4proto; in nf_ct_resolve_clash() local
1056 l4proto = nf_ct_l4proto_find(nf_ct_protonum(ct)); in nf_ct_resolve_clash()
1057 if (!l4proto->allow_clash) in nf_ct_resolve_clash()
1340 const struct nf_conntrack_l4proto *l4proto; in gc_worker_can_early_drop() local
1345 l4proto = nf_ct_l4proto_find(nf_ct_protonum(ct)); in gc_worker_can_early_drop()
1346 if (l4proto->can_early_drop && l4proto->can_early_drop(ct)) in gc_worker_can_early_drop()
Dnf_flow_table_ip.c205 tuple->l4proto = iph->protocol; in nf_flow_tuple_ip()
477 tuple->l4proto = ip6h->nexthdr; in nf_flow_tuple_ipv6()
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.c799 u8 l4proto; member
808 (clean->l4proto && nf_ct_protonum(i) != clean->l4proto)) in nf_nat_proto_remove()
Dnf_conntrack_proto_gre.c311 .l4proto = IPPROTO_GRE,
Dnf_conntrack_proto_icmpv6.c344 .l4proto = IPPROTO_ICMPV6,
Dnf_conntrack_proto_dccp.c794 .l4proto = IPPROTO_DCCP,
Dnf_conntrack_proto_sctp.c692 .l4proto = IPPROTO_SCTP,
Dnf_conntrack_proto_tcp.c1464 .l4proto = IPPROTO_TCP,
/net/sched/
Dact_ct.c457 tuple->l4proto = iph->protocol; in tcf_ct_flow_table_fill_tuple_ipv4()
499 tuple->l4proto = ip6h->nexthdr; in tcf_ct_flow_table_fill_tuple_ipv6()