Lines Matching refs:prefixLength
83 int prefixLength = 0;
86 prefixLength++;
89 return prefixLength;
445 int ifc_set_prefixLength(const char *name, int prefixLength)
449 if (prefixLength > 32 || prefixLength < 0) return -1;
451 in_addr_t mask = prefixLengthToIpv4Netmask(prefixLength);
475 int ifc_get_info(const char *name, in_addr_t *addr, int *prefixLength, unsigned *flags)
488 if (prefixLength != NULL) {
490 *prefixLength = 0;
492 *prefixLength = ipv4NetmaskToPrefixLength(
665 uint32_t prefixLength,
684 if (ifc_set_prefixLength(ifname, prefixLength)) {
685 printerr("failed to set prefixLength %d: %s\n", prefixLength, strerror(errno));