Home
last modified time | relevance | path

Searched refs:pfx_len (Results 1 – 4 of 4) sorted by relevance

/linux/net/ipv6/netfilter/
H A Dip6t_NPT.c42 unsigned int pfx_len; in ip6t_npt_map_pfx() local
47 pfx_len = max(npt->src_pfx_len, npt->dst_pfx_len); in ip6t_npt_map_pfx()
48 for (i = 0; i < pfx_len; i += 32) { in ip6t_npt_map_pfx()
49 if (pfx_len - i >= 32) in ip6t_npt_map_pfx()
52 mask = htonl((1 << (i - pfx_len + 32)) - 1); in ip6t_npt_map_pfx()
59 if (pfx_len <= 48) in ip6t_npt_map_pfx()
/linux/kernel/bpf/
H A Dinode.c655 int i, n, pfx_len = strlen(prefix); in find_btf_enum_const() local
666 if (!name || strncasecmp(name, prefix, pfx_len) != 0) in find_btf_enum_const()
670 if (strcasecmp(name + pfx_len, str) == 0) { in find_btf_enum_const()
690 int i, n, pfx_len = strlen(prefix); in seq_print_delegate_opts() local
707 if (!name || strncasecmp(name, prefix, pfx_len) != 0) in seq_print_delegate_opts()
713 name += pfx_len; in seq_print_delegate_opts()
/linux/drivers/md/
H A Ddm-ioctl.c570 size_t val_len, pfx_len; in filter_device() local
574 pfx_len = strnlen(pfx_name, DM_NAME_LEN); in filter_device()
575 if (pfx_len > val_len) in filter_device()
577 if (memcmp(val, pfx_name, pfx_len)) in filter_device()
582 pfx_len = strnlen(pfx_uuid, DM_UUID_LEN); in filter_device()
583 if (pfx_len > val_len) in filter_device()
585 if (memcmp(val, pfx_uuid, pfx_len)) in filter_device()
/linux/tools/lib/bpf/
H A Dlibbpf.c1804 int pfx_len, sfx_len = max((size_t)7, strlen(real_name)); in internal_map_name() local
1844 pfx_len = 0; in internal_map_name()
1848 snprintf(map_name, sizeof(map_name), "%.*s%.*s", pfx_len, obj->name, in internal_map_name()
6605 size_t pfx_len = strlen(str); in bpf_prog_assign_exc_cb() local
6621 if (strncmp(name, str, pfx_len) != 0) in bpf_prog_assign_exc_cb()
6641 name += pfx_len; in bpf_prog_assign_exc_cb()
12530 size_t pfx_len; in attach_raw_tp() local
12535 pfx_len = strlen(prefixes[i]); in attach_raw_tp()
12537 if (prog->sec_name[pfx_len] == '\0') in attach_raw_tp()
12540 if (prog->sec_name[pfx_len] != '/') in attach_raw_tp()
[all …]