/linux-5.19.10/kernel/bpf/ |
D | lpm_trie.c | 27 u32 prefixlen; member 169 u32 limit = min(node->prefixlen, key->prefixlen); in longest_prefix_match() 170 u32 prefixlen = 0, i = 0; in longest_prefix_match() local 184 prefixlen = 64 - fls64(diff); in longest_prefix_match() 185 if (prefixlen >= limit) in longest_prefix_match() 188 return prefixlen; in longest_prefix_match() 197 prefixlen += 32 - fls(diff); in longest_prefix_match() 198 if (prefixlen >= limit) in longest_prefix_match() 201 return prefixlen; in longest_prefix_match() 209 prefixlen += 16 - fls(diff); in longest_prefix_match() [all …]
|
/linux-5.19.10/net/ipv6/ |
D | addrlabel.c | 34 int prefixlen; member 68 int prefixlen; member 76 .prefixlen = 7, 80 .prefixlen = 10, 84 .prefixlen = 16, 88 .prefixlen = 16, 92 .prefixlen = 32, 96 .prefixlen = 28, 100 .prefixlen = 96, 104 .prefixlen = 96, [all …]
|
D | sit.c | 191 t->ip6rd.prefixlen = 16; in ipip6_tunnel_clone_6rd() 630 prefix_len = tunnel->ip6rd.prefixlen + 32 in only_dnatted() 816 tunnel->ip6rd.prefixlen)) { in check_6rd() 821 pbw0 = tunnel->ip6rd.prefixlen >> 5; in check_6rd() 822 pbi0 = tunnel->ip6rd.prefixlen & 0x1f; in check_6rd() 1173 ip6rd->prefixlen + (32 - ip6rd->relay_prefixlen) > 64) in ipip6_tunnel_update_6rd() 1176 ipv6_addr_prefix(&prefix, &ip6rd->prefix, ip6rd->prefixlen); in ipip6_tunnel_update_6rd() 1190 t->ip6rd.prefixlen = ip6rd->prefixlen; in ipip6_tunnel_update_6rd() 1214 ip6rd.prefixlen = t->ip6rd.prefixlen; in ipip6_tunnel_get6rd() 1601 ip6rd->prefixlen = nla_get_u16(data[IFLA_IPTUN_6RD_PREFIXLEN]); in ipip6_netlink_6rd_parms() [all …]
|
D | tcp_ipv6.c | 605 u8 prefixlen; in tcp_v6_parse_md5_keys() local 621 prefixlen = cmd.tcpm_prefixlen; in tcp_v6_parse_md5_keys() 622 if (prefixlen > 128 || (ipv6_addr_v4mapped(&sin6->sin6_addr) && in tcp_v6_parse_md5_keys() 623 prefixlen > 32)) in tcp_v6_parse_md5_keys() 626 prefixlen = ipv6_addr_v4mapped(&sin6->sin6_addr) ? 32 : 128; in tcp_v6_parse_md5_keys() 649 AF_INET, prefixlen, in tcp_v6_parse_md5_keys() 652 AF_INET6, prefixlen, l3index, flags); in tcp_v6_parse_md5_keys() 660 AF_INET, prefixlen, l3index, flags, in tcp_v6_parse_md5_keys() 665 AF_INET6, prefixlen, l3index, flags, in tcp_v6_parse_md5_keys()
|
D | route.c | 120 const struct in6_addr *prefix, int prefixlen, 125 const struct in6_addr *prefix, int prefixlen, 4250 const struct in6_addr *prefix, int prefixlen, in rt6_get_route_info() argument 4265 fn = fib6_locate(&table->tb6_root, prefix, prefixlen, NULL, 0, true); in rt6_get_route_info() 4290 const struct in6_addr *prefix, int prefixlen, in rt6_add_route_info() argument 4298 .fc_dst_len = prefixlen, in rt6_add_route_info() 4313 if (!prefixlen) in rt6_add_route_info() 4318 return rt6_get_route_info(net, prefix, prefixlen, gwaddr, dev); in rt6_add_route_info()
|
/linux-5.19.10/tools/testing/selftests/bpf/ |
D | test_lpm_map.c | 251 key->prefixlen = value[keysize]; in test_lpm_map() 263 key->prefixlen = 8 * keysize; in test_lpm_map() 287 key->prefixlen = list->n_bits; in test_lpm_map() 300 key->prefixlen = 8 * keysize; in test_lpm_map() 359 key_ipv4->prefixlen = 16; in test_lpm_ipaddr() 364 key_ipv4->prefixlen = 24; in test_lpm_ipaddr() 369 key_ipv4->prefixlen = 24; in test_lpm_ipaddr() 374 key_ipv4->prefixlen = 24; in test_lpm_ipaddr() 379 key_ipv4->prefixlen = 23; in test_lpm_ipaddr() 384 key_ipv6->prefixlen = 64; in test_lpm_ipaddr() [all …]
|
/linux-5.19.10/fs/hfsplus/ |
D | xattr.h | 27 const char *prefix, size_t prefixlen); 34 const char *prefix, size_t prefixlen);
|
D | xattr.c | 423 const char *prefix, size_t prefixlen) in hfsplus_setxattr() argument 433 strcpy(xattr_name + prefixlen, name); in hfsplus_setxattr() 577 const char *prefix, size_t prefixlen) in hfsplus_getxattr() argument 588 strcpy(xattr_name + prefixlen, name); in hfsplus_getxattr()
|
/linux-5.19.10/net/xfrm/ |
D | xfrm_hash.h | 55 __u8 prefixlen) in __xfrm6_pref_hash() argument 61 pdw = prefixlen >> 5; /* num of whole u32 in prefix */ in __xfrm6_pref_hash() 62 pbi = prefixlen & 0x1f; /* num of bits in incomplete u32 in prefix */ in __xfrm6_pref_hash()
|
D | xfrm_policy.c | 69 u8 prefixlen; member 739 int family, u8 prefixlen) in xfrm_pol_inexact_addr_use_any_list() argument 744 if (family == AF_INET6 && prefixlen < INEXACT_PREFIXLEN_IPV6) in xfrm_pol_inexact_addr_use_any_list() 747 if (family == AF_INET && prefixlen < INEXACT_PREFIXLEN_IPV4) in xfrm_pol_inexact_addr_use_any_list() 758 u8 prefixlen; in xfrm_policy_inexact_insert_use_any_list() local 761 prefixlen = policy->selector.prefixlen_s; in xfrm_policy_inexact_insert_use_any_list() 765 prefixlen); in xfrm_policy_inexact_insert_use_any_list() 767 prefixlen = policy->selector.prefixlen_d; in xfrm_policy_inexact_insert_use_any_list() 770 prefixlen); in xfrm_policy_inexact_insert_use_any_list() 775 const xfrm_address_t *addr, u8 prefixlen) in xfrm_pol_inexact_node_init() argument [all …]
|
/linux-5.19.10/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | fwil.c | 300 u32 prefixlen; in brcmf_create_bsscfg() local 308 prefixlen = strlen(prefix); in brcmf_create_bsscfg() 310 iolen = prefixlen + namelen + sizeof(bsscfgidx_le) + datalen; in brcmf_create_bsscfg() 320 memcpy(p, prefix, prefixlen); in brcmf_create_bsscfg() 321 p += prefixlen; in brcmf_create_bsscfg()
|
/linux-5.19.10/samples/bpf/ |
D | map_perf_test_user.c | 379 key->prefixlen = 32; in fill_lpm_trie() 382 key->prefixlen = rand() % 33; in fill_lpm_trie() 392 key->prefixlen = 32; in fill_lpm_trie()
|
D | xdp_router_ipv4_user.c | 168 prefix_key->prefixlen = 32; in read_route() 169 prefix_key->prefixlen = route.dst_len; in read_route()
|
/linux-5.19.10/net/ipv4/ |
D | tcp_ipv4.c | 1059 return old->prefixlen < new->prefixlen; in better_md5_match() 1087 mask = inet_make_mask(key->prefixlen); in __tcp_md5_do_lookup() 1093 key->prefixlen); in __tcp_md5_do_lookup() 1108 int family, u8 prefixlen, in tcp_md5_do_lookup_exact() argument 1134 key->prefixlen == prefixlen) in tcp_md5_do_lookup_exact() 1155 int family, u8 prefixlen, int l3index, u8 flags, in tcp_md5_do_add() argument 1163 key = tcp_md5_do_lookup_exact(sk, addr, family, prefixlen, l3index, flags); in tcp_md5_do_add() 1206 key->prefixlen = prefixlen; in tcp_md5_do_add() 1218 u8 prefixlen, int l3index, u8 flags) in tcp_md5_do_del() argument 1222 key = tcp_md5_do_lookup_exact(sk, addr, family, prefixlen, l3index, flags); in tcp_md5_do_del() [all …]
|
D | tcp_diag.c | 42 info->tcpm_prefixlen = key->prefixlen; in tcp_diag_md5sig_fill()
|
D | fib_rules.c | 160 if (result->prefixlen <= rule->suppress_prefixlen) in fib4_rule_suppress()
|
D | fib_frontend.c | 1357 frn->prefixlen = res.prefixlen; in nl_fib_lookup()
|
/linux-5.19.10/include/net/ |
D | ipv6.h | 658 unsigned int prefixlen) in ipv6_prefix_equal() argument 663 if (prefixlen >= 64) { in ipv6_prefix_equal() 666 return __ipv6_prefix_equal64_half(a1 + 1, a2 + 1, prefixlen - 64); in ipv6_prefix_equal() 668 return __ipv6_prefix_equal64_half(a1, a2, prefixlen); in ipv6_prefix_equal() 673 unsigned int prefixlen) in ipv6_prefix_equal() argument 680 pdw = prefixlen >> 5; in ipv6_prefix_equal() 685 pbi = prefixlen & 0x1f; in ipv6_prefix_equal()
|
D | dn_fib.h | 13 unsigned char prefixlen; member
|
D | xfrm.h | 808 unsigned int prefixlen) in addr_match() argument 815 pdw = prefixlen >> 5; /* num of whole u32 in prefix */ in addr_match() 816 pbi = prefixlen & 0x1f; /* num of bits in incomplete u32 in prefix */ in addr_match() 834 static inline bool addr4_match(__be32 a1, __be32 a2, u8 prefixlen) in addr4_match() argument 837 if (sizeof(long) == 4 && prefixlen == 0) in addr4_match() 839 return !((a1 ^ a2) & htonl(~0UL << (32 - prefixlen))); in addr4_match()
|
D | ip_fib.h | 170 unsigned char prefixlen; member 189 unsigned char prefixlen; member
|
D | ip_tunnels.h | 84 u16 prefixlen; member
|
D | tcp.h | 1614 u8 prefixlen; member 1661 int family, u8 prefixlen, int l3index, u8 flags, 1664 int family, u8 prefixlen, int l3index, u8 flags);
|
/linux-5.19.10/tools/testing/selftests/bpf/progs/ |
D | xdpwall.c | 34 __u32 prefixlen; member 140 v4_key.prefixlen = 32; in filter_ipv4_lpm()
|
/linux-5.19.10/include/uapi/linux/ |
D | if_tunnel.h | 113 __u16 prefixlen; member
|