Home
last modified time | relevance | path

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

/linux/net/ipv6/netfilter/
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/drivers/md/
A Ddm-ioctl.c551 size_t val_len, pfx_len; in filter_device() local
555 pfx_len = strnlen(pfx_name, DM_NAME_LEN); in filter_device()
556 if (pfx_len > val_len) in filter_device()
558 if (memcmp(val, pfx_name, pfx_len)) in filter_device()
563 pfx_len = strnlen(pfx_uuid, DM_UUID_LEN); in filter_device()
564 if (pfx_len > val_len) in filter_device()
566 if (memcmp(val, pfx_uuid, pfx_len)) in filter_device()
/linux/tools/lib/bpf/
A Dlibbpf.c1446 int pfx_len, sfx_len = max((size_t)7, strlen(real_name)); in internal_map_name() local
1486 pfx_len = 0; in internal_map_name()
1488 pfx_len = min((size_t)BPF_OBJ_NAME_LEN - sfx_len - 1, strlen(obj->name)); in internal_map_name()
1490 snprintf(map_name, sizeof(map_name), "%.*s%.*s", pfx_len, obj->name, in internal_map_name()

Completed in 29 milliseconds