/linux-6.3-rc2/net/netfilter/ |
A D | nfnetlink_cttimeout.c | 137 matching->timeout.l4proto->l4proto != l4num) in cttimeout_new_timeout() 141 matching->timeout.l4proto, in cttimeout_new_timeout() 152 if (l4proto->l4proto != l4num) { in cttimeout_new_timeout() 171 timeout->timeout.l4proto = l4proto; in cttimeout_new_timeout() 189 const struct nf_conntrack_l4proto *l4proto = timeout->timeout.l4proto; in ctnl_timeout_fill_info() local 202 nla_put_u8(skb, CTA_TIMEOUT_L4PROTO, l4proto->l4proto) || in ctnl_timeout_fill_info() 378 if (l4proto->l4proto != l4num) { in cttimeout_default_set() 411 nla_put_u8(skb, CTA_TIMEOUT_L4PROTO, l4proto->l4proto)) in cttimeout_default_fill_info() 451 if (l4proto->l4proto != l4num) in cttimeout_default_get() 454 switch (l4proto->l4proto) { in cttimeout_default_get() [all …]
|
A D | nft_ct.c | 29 u8 l4proto; member 893 u8 l4proto; member 949 priv->l4proto = l4num; in nft_ct_timeout_obj_init() 953 if (l4proto->l4proto != l4num) { in nft_ct_timeout_obj_init() 971 timeout->l4proto = l4proto; in nft_ct_timeout_obj_init() 1005 if (nla_put_u8(skb, NFTA_CT_TIMEOUT_L4PROTO, timeout->l4proto->l4proto) || in nft_ct_timeout_obj_dump() 1060 if (!priv->l4proto) in nft_ct_helper_obj_init() 1077 priv->l4proto); in nft_ct_helper_obj_init() 1084 priv->l4proto); in nft_ct_helper_obj_init() 1090 priv->l4proto); in nft_ct_helper_obj_init() [all …]
|
A D | nf_conntrack_timeout.c | 99 if (timeout->l4proto->l4proto != l4num) { in nf_ct_set_timeout() 103 timeout_name, 4, timeout->l4proto->l4proto); in nf_ct_set_timeout()
|
A D | nft_inner.c | 133 ctx->l4proto = iph->protocol; in nft_inner_parse_l2l3() 141 int l4proto; in nft_inner_parse_l2l3() local 154 l4proto = ipv6_find_hdr(pkt->skb, &thoff, -1, &fragoff, &fh_flags); in nft_inner_parse_l2l3() 155 if (l4proto < 0 || thoff > U16_MAX) in nft_inner_parse_l2l3() 162 ctx->l4proto = l4proto; in nft_inner_parse_l2l3()
|
A D | nf_conntrack_bpf.c | 51 u8 l4proto; member 116 err = bpf_nf_ct_tuple_parse(bpf_tuple, tuple_len, opts->l4proto, in __bpf_nf_ct_alloc_entry() 121 err = bpf_nf_ct_tuple_parse(bpf_tuple, tuple_len, opts->l4proto, in __bpf_nf_ct_alloc_entry() 160 if (unlikely(opts->l4proto != IPPROTO_TCP && opts->l4proto != IPPROTO_UDP)) in __bpf_nf_ct_lookup() 165 err = bpf_nf_ct_tuple_parse(bpf_tuple, tuple_len, opts->l4proto, in __bpf_nf_ct_lookup()
|
A D | nft_tproxy.c | 96 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()
|
A D | nf_conntrack_standalone.c | 39 const struct nf_conntrack_l4proto *l4proto) in print_tuple() argument 54 switch (l4proto->l4proto) { in print_tuple() 299 const struct nf_conntrack_l4proto *l4proto; in ct_seq_show() local 322 l4proto = nf_ct_l4proto_find(nf_ct_protonum(ct)); in ct_seq_show() 327 l4proto_name(l4proto->l4proto), nf_ct_protonum(ct)); in ct_seq_show() 332 if (l4proto->print_conntrack) in ct_seq_show() 333 l4proto->print_conntrack(s, ct); in ct_seq_show() 336 l4proto); in ct_seq_show() 348 print_tuple(s, &ct->tuplehash[IP_CT_DIR_REPLY].tuple, l4proto); in ct_seq_show()
|
A D | nf_conntrack_proto_icmp.c | 109 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,
|
A D | xt_CT.c | 108 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()
|
A D | nf_conntrack_netlink.c | 80 if (likely(l4proto->tuple_to_nlattr)) in ctnetlink_dump_tuples_proto() 81 ret = l4proto->tuple_to_nlattr(skb, tuple); in ctnetlink_dump_tuples_proto() 139 const struct nf_conntrack_l4proto *l4proto; in ctnetlink_dump_tuples() local 200 if (!l4proto->to_nlattr) in ctnetlink_dump_protoinfo() 641 len += l4proto->nlattr_size; in ctnetlink_proto_size() 642 if (l4proto->nlattr_tuple_size) { in ctnetlink_proto_size() 643 len4 = l4proto->nlattr_tuple_size(); in ctnetlink_proto_size() 1368 if (likely(l4proto->nlattr_to_tuple)) { in ctnetlink_parse_tuple_proto() 1370 l4proto->nla_policy, in ctnetlink_parse_tuple_proto() 2036 if (l4proto->from_nlattr) in ctnetlink_change_protoinfo() [all …]
|
A D | nf_conntrack_proto_generic.c | 69 .l4proto = 255,
|
A D | nf_conntrack_proto_udp.c | 284 .l4proto = IPPROTO_UDP, 306 .l4proto = IPPROTO_UDPLITE,
|
A D | xt_conntrack.c | 83 (nf_ct_protonum(ct) == info->l4proto) ^ in ct_proto_port_check() 127 (nf_ct_protonum(ct) == info->l4proto) ^ in ct_proto_port_check_v3()
|
A D | xt_ipvs.c | 75 if ((iph.protocol == data->l4proto) ^ in ipvs_mt()
|
/linux-6.3-rc2/tools/testing/selftests/netfilter/ |
A D | conntrack_icmp_related.sh | 138 meta l4proto icmpv6 icmpv6 type "packet-too-big" ct state "related" counter name "related" accept 139 …meta l4proto icmp icmp type "destination-unreachable" ct state "related" counter name "related" ac… 140 meta l4proto { icmp, icmpv6 } ct state new,established accept 159 meta l4proto { icmp, icmpv6 } ct state established,untracked accept 160 meta l4proto { icmp, icmpv6 } ct state "related" counter name "related" accept 175 meta l4proto { icmp, icmpv6 } ct state established,untracked accept 177 meta l4proto { icmp, icmpv6 } ct state "new" counter name "new" accept 178 meta l4proto { icmp, icmpv6 } ct state "established" counter name "established" accept 183 meta l4proto { icmp, icmpv6 } ct state established,untracked accept 185 meta l4proto { icmp, icmpv6 } ct state "new" counter name "new" [all …]
|
A D | nft_meta.sh | 59 meta l4proto icmp counter name "il4protocounter" 73 meta l4proto icmp counter name "ol4protocounter"
|
A D | nft_synproxy.sh | 93 … meta iif veth0 meta l4proto tcp ct state untracked,invalid synproxy mss 1460 sack-perm timestamp
|
/linux-6.3-rc2/include/uapi/linux/netfilter/ |
A D | xt_conntrack.h | 44 __u16 l4proto; member 57 __u16 l4proto; member 70 __u16 l4proto; member
|
A D | xt_ipvs.h | 23 __u8 l4proto; member
|
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/ |
A D | test_bpf_nf.c | 47 u8 l4proto; member 75 struct bpf_ct_opts___local opts_def = { .l4proto = IPPROTO_TCP, .netns_id = -1 }; in nf_ct_test() 92 opts_def.l4proto = IPPROTO_TCP; in nf_ct_test() 114 opts_def.l4proto = IPPROTO_ICMP; in nf_ct_test() 117 opts_def.l4proto = IPPROTO_TCP; in nf_ct_test()
|
A D | test_bpf_nf_fail.c | 12 u8 l4proto; member
|
/linux-6.3-rc2/include/net/netfilter/ |
A D | nf_conntrack_l4proto.h | 22 u_int8_t l4proto; member 82 u8 l4proto, 150 const struct nf_conntrack_l4proto *nf_ct_l4proto_find(u8 l4proto);
|
A D | nf_conntrack_timeout.h | 16 const struct nf_conntrack_l4proto *l4proto; member
|
/linux-6.3-rc2/drivers/net/ethernet/mediatek/ |
A D | mtk_ppe_offload.c | 249 u8 l4proto = 0; in mtk_flow_offload_replace() local 277 l4proto = match.key->ip_proto; in mtk_flow_offload_replace() 356 err = mtk_foe_entry_prepare(eth, &foe, offload_type, l4proto, 0, in mtk_flow_offload_replace()
|
/linux-6.3-rc2/drivers/net/ethernet/aquantia/atlantic/ |
A D | aq_nic.c | 685 u8 l4proto = 0; in aq_nic_map_skb() local 688 l4proto = ip_hdr(skb)->protocol; in aq_nic_map_skb() 690 l4proto = ipv6_hdr(skb)->nexthdr; in aq_nic_map_skb() 698 if (l4proto == IPPROTO_TCP) { in aq_nic_map_skb() 701 } else if (l4proto == IPPROTO_UDP) { in aq_nic_map_skb() 752 dx_buff->is_tcp_cso = (l4proto == IPPROTO_TCP); in aq_nic_map_skb() 753 dx_buff->is_udp_cso = (l4proto == IPPROTO_UDP); in aq_nic_map_skb()
|