Lines Matching defs:prefixlen

107 	{ "prefixlen", NULL, IPADMPROP_CLASS_ADDR, MOD_PROTO_NONE, 0,
756 if (strcmp(name, "prefixlen") == 0) {
758 * If a prefixlen was found, update the
898 * Callback function that sets the property `prefixlen' on the address
909 unsigned long prefixlen, abits;
917 prefixlen = strtoul(pval, &end, 10);
922 if (prefixlen == 0 || prefixlen == (abits - 1))
925 if ((err = plen2mask(prefixlen, af, (struct sockaddr *)&netmask)) != 0)
937 /* now, change the broadcast address to reflect the prefixlen */
1087 * obtain default prefixlen
1119 * default prefixlen for that address and then compute the
1161 * Callback function that retrieves the value of the property `prefixlen'
1174 uint32_t prefixlen;
1209 &lifr.lifr_addr, &prefixlen);
1216 * obtain default prefixlen
1229 &ipaddr->ipadm_static_addr, &prefixlen);
1233 nbytes = snprintf(buf, *bufsize, "%u", prefixlen);
1238 prefixlen = lifr.lifr_addrlen;
1239 nbytes = snprintf(buf, *bufsize, "%u", prefixlen);
1638 * Computes the prefixlen for the given `addr' based on the netmask found using
1640 * prefixlen is computed using the Classful subnetting semantics defined
1652 uint32_t prefixlen = 0;
1661 prefixlen = mask2plen((struct sockaddr *)&mask);
1666 prefixlen = 10;
1668 prefixlen = 64;
1673 *plen = prefixlen;
1731 uint32_t prefixlen = 0;
1745 prefixlen = strtoul(prefixlenstr, &endp, 10);
1748 if ((af == AF_INET && prefixlen > IP_ABITS) ||
1749 (af == AF_INET6 && prefixlen > IPV6_ABITS))
1758 ipaddr->ipadm_static_prefixlen = prefixlen;
1815 uint32_t prefixlen;
1829 prefixlen = strtoul(cp, &end, 10);
1830 if (errno != 0 || *end != '\0' || prefixlen > IPV6_ABITS)
1833 ipaddr->ipadm_intfidlen = prefixlen;
2644 /* If prefixlen was not provided, get default prefixlen */
2646 /* prefixlen was not provided, get default prefixlen */
3100 * prefixlen is stored in a separate line in the DB and not along
3103 * persist the prefixlen by calling the function that persists
3110 if (strcmp("prefixlen", pdp->ipd_name) == 0)
3511 /* prefixlen exists for given address object */