Searched refs:pfx_len (Results 1 – 3 of 3) sorted by relevance
/linux-6.6.21/net/ipv6/netfilter/ |
D | ip6t_NPT.c | 42 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-6.6.21/drivers/md/ |
D | dm-ioctl.c | 570 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-6.6.21/tools/lib/bpf/ |
D | libbpf.c | 1545 int pfx_len, sfx_len = max((size_t)7, strlen(real_name)); in internal_map_name() local 1585 pfx_len = 0; in internal_map_name() 1587 pfx_len = min((size_t)BPF_OBJ_NAME_LEN - sfx_len - 1, strlen(obj->name)); in internal_map_name() 1589 snprintf(map_name, sizeof(map_name), "%.*s%.*s", pfx_len, obj->name, in internal_map_name() 11813 size_t pfx_len; in attach_raw_tp() local 11818 pfx_len = strlen(prefixes[i]); in attach_raw_tp() 11820 if (prog->sec_name[pfx_len] == '\0') in attach_raw_tp() 11823 if (prog->sec_name[pfx_len] != '/') in attach_raw_tp() 11826 tp_name = prog->sec_name + pfx_len + 1; in attach_raw_tp()
|