Lines Matching refs:hlen
527 cb->val.hlen = (afinfo->family == NFPROTO_IPV4) ? 32 : 128; in xtopt_parse_host()
686 cb->val.hlen = xtables_ipmask_to_cidr(&cb->val.hmask.in); in xtopt_parse_mask()
689 cb->val.hlen = xtables_ip6mask_to_cidr(&cb->val.hmask.in6); in xtopt_parse_mask()
706 cb->val.hlen = (afinfo->family == NFPROTO_IPV4) ? 32 : 128; in xtopt_parse_plen()
707 if (!xtables_strtoui(cb->arg, NULL, &prefix_len, 0, cb->val.hlen)) { in xtopt_parse_plen()
716 cb->ext_name, entry->name, 0, cb->val.hlen); in xtopt_parse_plen()
718 cb->val.hlen = prefix_len; in xtopt_parse_plen()
735 if (cb->val.hlen == 0) { in xtopt_parse_plenmask()
737 } else if (cb->val.hlen <= 32) { in xtopt_parse_plenmask()
738 mask[0] <<= 32 - cb->val.hlen; in xtopt_parse_plenmask()
740 } else if (cb->val.hlen <= 64) { in xtopt_parse_plenmask()
741 mask[1] <<= 32 - (cb->val.hlen - 32); in xtopt_parse_plenmask()
743 } else if (cb->val.hlen <= 96) { in xtopt_parse_plenmask()
744 mask[2] <<= 32 - (cb->val.hlen - 64); in xtopt_parse_plenmask()
746 } else if (cb->val.hlen <= 128) { in xtopt_parse_plenmask()
747 mask[3] <<= 32 - (cb->val.hlen - 96); in xtopt_parse_plenmask()