/linux/kernel/bpf/ |
A D | lpm_trie.c | 26 u32 prefixlen; member 168 u32 limit = min(node->prefixlen, key->prefixlen); in longest_prefix_match() 187 return prefixlen; in longest_prefix_match() 223 return prefixlen; in longest_prefix_match() 337 new_node->prefixlen = key->prefixlen; in trie_update_elem() 354 node->prefixlen == key->prefixlen || in trie_update_elem() 463 node->prefixlen == key->prefixlen) in trie_delete_elem() 472 if (!node || node->prefixlen != key->prefixlen || in trie_delete_elem() 655 node->prefixlen == key->prefixlen) in trie_get_next_key() 661 if (!node || node->prefixlen != key->prefixlen || in trie_get_next_key() [all …]
|
/linux/net/ipv6/ |
A 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, 194 newp->prefixlen = prefixlen; in ip6addrlbl_alloc() 214 if (p->prefixlen == newp->prefixlen && in __ip6addrlbl_add() 225 (p->prefixlen < newp->prefixlen)) { in __ip6addrlbl_add() [all …]
|
A D | sit.c | 191 t->ip6rd.prefixlen = 16; in ipip6_tunnel_clone_6rd() 632 prefix_len = tunnel->ip6rd.prefixlen + 32 in only_dnatted() 818 tunnel->ip6rd.prefixlen)) { in check_6rd() 823 pbw0 = tunnel->ip6rd.prefixlen >> 5; in check_6rd() 824 pbi0 = tunnel->ip6rd.prefixlen & 0x1f; in check_6rd() 1175 ip6rd->prefixlen + (32 - ip6rd->relay_prefixlen) > 64) in ipip6_tunnel_update_6rd() 1178 ipv6_addr_prefix(&prefix, &ip6rd->prefix, ip6rd->prefixlen); in ipip6_tunnel_update_6rd() 1192 t->ip6rd.prefixlen = ip6rd->prefixlen; in ipip6_tunnel_update_6rd() 1216 ip6rd.prefixlen = t->ip6rd.prefixlen; in ipip6_tunnel_get6rd() 1603 ip6rd->prefixlen = nla_get_u16(data[IFLA_IPTUN_6RD_PREFIXLEN]); in ipip6_netlink_6rd_parms() [all …]
|
A D | tcp_ipv6.c | 604 u8 prefixlen; in tcp_v6_parse_md5_keys() local 620 prefixlen = cmd.tcpm_prefixlen; in tcp_v6_parse_md5_keys() 621 if (prefixlen > 128 || (ipv6_addr_v4mapped(&sin6->sin6_addr) && in tcp_v6_parse_md5_keys() 622 prefixlen > 32)) in tcp_v6_parse_md5_keys() 625 prefixlen = ipv6_addr_v4mapped(&sin6->sin6_addr) ? 32 : 128; in tcp_v6_parse_md5_keys() 648 AF_INET, prefixlen, in tcp_v6_parse_md5_keys() 651 AF_INET6, prefixlen, l3index, flags); in tcp_v6_parse_md5_keys() 659 AF_INET, prefixlen, l3index, flags, in tcp_v6_parse_md5_keys() 664 AF_INET6, prefixlen, l3index, flags, in tcp_v6_parse_md5_keys()
|
A D | route.c | 120 const struct in6_addr *prefix, int prefixlen, 125 const struct in6_addr *prefix, int prefixlen, 4274 const struct in6_addr *prefix, int prefixlen, in rt6_get_route_info() argument 4289 fn = fib6_locate(&table->tb6_root, prefix, prefixlen, NULL, 0, true); in rt6_get_route_info() 4314 const struct in6_addr *prefix, int prefixlen, in rt6_add_route_info() argument 4322 .fc_dst_len = prefixlen, in rt6_add_route_info() 4337 if (!prefixlen) in rt6_add_route_info() 4342 return rt6_get_route_info(net, prefix, prefixlen, gwaddr, dev); in rt6_add_route_info()
|
/linux/tools/testing/selftests/bpf/ |
A D | test_lpm_map.c | 452 key->prefixlen = 16; in test_lpm_delete() 457 key->prefixlen = 24; in test_lpm_delete() 462 key->prefixlen = 24; in test_lpm_delete() 467 key->prefixlen = 24; in test_lpm_delete() 472 key->prefixlen = 32; in test_lpm_delete() 488 key->prefixlen = 32; in test_lpm_delete() 494 key->prefixlen = 24; in test_lpm_delete() 498 key->prefixlen = 32; in test_lpm_delete() 504 key->prefixlen = 24; in test_lpm_delete() 697 __u32 prefixlen; member [all …]
|
/linux/fs/hfsplus/ |
A D | xattr.h | 27 const char *prefix, size_t prefixlen); 34 const char *prefix, size_t prefixlen);
|
A 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/net/xfrm/ |
A 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()
|
A D | xfrm_policy.c | 67 u8 prefixlen; member 756 u8 prefixlen; in xfrm_policy_inexact_insert_use_any_list() local 776 node->prefixlen = prefixlen; in xfrm_pol_inexact_node_init() 801 if (prefixlen == 0) in xfrm_policy_addr_delta() 914 u8 prefixlen; in xfrm_policy_inexact_node_reinsert() local 920 prefixlen = min(node->prefixlen, n->prefixlen); in xfrm_policy_inexact_node_reinsert() 929 bool same_prefixlen = node->prefixlen == n->prefixlen; in xfrm_policy_inexact_node_reinsert() 937 node->prefixlen = prefixlen; in xfrm_policy_inexact_node_reinsert() 1006 if (delta == 0 && prefixlen >= node->prefixlen) { in xfrm_policy_inexact_insert_node() 1016 if (prefixlen < node->prefixlen) { in xfrm_policy_inexact_insert_node() [all …]
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
A 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/net/ipv4/ |
A D | tcp_ipv4.c | 1054 return old->prefixlen < new->prefixlen; in better_md5_match() 1082 mask = inet_make_mask(key->prefixlen); in __tcp_md5_do_lookup() 1088 key->prefixlen); in __tcp_md5_do_lookup() 1103 int family, u8 prefixlen, in tcp_md5_do_lookup_exact() argument 1129 key->prefixlen == prefixlen) in tcp_md5_do_lookup_exact() 1150 int family, u8 prefixlen, int l3index, u8 flags, in tcp_md5_do_add() argument 1201 key->prefixlen = prefixlen; in tcp_md5_do_add() 1213 u8 prefixlen, int l3index, u8 flags) in tcp_md5_do_del() argument 1249 u8 prefixlen = 32; in tcp_v4_parse_md5_keys() local 1266 prefixlen = cmd.tcpm_prefixlen; in tcp_v4_parse_md5_keys() [all …]
|
A D | tcp_diag.c | 42 info->tcpm_prefixlen = key->prefixlen; in tcp_diag_md5sig_fill()
|
A D | fib_rules.c | 159 if (result->prefixlen <= rule->suppress_prefixlen) in fib4_rule_suppress()
|
A D | fib_frontend.c | 1343 frn->prefixlen = res.prefixlen; in nl_fib_lookup()
|
/linux/samples/bpf/ |
A D | map_perf_test_user.c | 377 key->prefixlen = 32; in fill_lpm_trie() 380 key->prefixlen = rand() % 33; in fill_lpm_trie() 390 key->prefixlen = 32; in fill_lpm_trie()
|
A D | xdp_router_ipv4_user.c | 215 prefix_key->prefixlen = 32; in read_route() 216 prefix_key->prefixlen = route.dst_len; in read_route() 270 prefix_key->prefixlen); in read_route()
|
/linux/include/net/ |
A D | ipv6.h | 601 unsigned int prefixlen) in ipv6_prefix_equal() argument 606 if (prefixlen >= 64) { in ipv6_prefix_equal() 609 return __ipv6_prefix_equal64_half(a1 + 1, a2 + 1, prefixlen - 64); in ipv6_prefix_equal() 611 return __ipv6_prefix_equal64_half(a1, a2, prefixlen); in ipv6_prefix_equal() 616 unsigned int prefixlen) in ipv6_prefix_equal() argument 623 pdw = prefixlen >> 5; in ipv6_prefix_equal() 628 pbi = prefixlen & 0x1f; in ipv6_prefix_equal()
|
A D | dn_fib.h | 13 unsigned char prefixlen; member
|
A D | xfrm.h | 798 unsigned int prefixlen) in addr_match() argument 805 pdw = prefixlen >> 5; /* num of whole u32 in prefix */ in addr_match() 806 pbi = prefixlen & 0x1f; /* num of bits in incomplete u32 in prefix */ in addr_match() 824 static inline bool addr4_match(__be32 a1, __be32 a2, u8 prefixlen) in addr4_match() argument 827 if (sizeof(long) == 4 && prefixlen == 0) in addr4_match() 829 return !((a1 ^ a2) & htonl(~0UL << (32 - prefixlen))); in addr4_match()
|
A D | ip_fib.h | 167 unsigned char prefixlen; member 186 unsigned char prefixlen; member
|
A D | ip_tunnels.h | 83 u16 prefixlen; member
|
A D | tcp.h | 1594 u8 prefixlen; member 1641 int family, u8 prefixlen, int l3index, u8 flags, 1644 int family, u8 prefixlen, int l3index, u8 flags);
|
/linux/tools/testing/selftests/bpf/progs/ |
A D | xdpwall.c | 34 __u32 prefixlen; member 140 v4_key.prefixlen = 32; in filter_ipv4_lpm()
|
/linux/include/uapi/linux/ |
A D | if_tunnel.h | 113 __u16 prefixlen; member
|