Lines Matching refs:prefixLength
78 int prefixLength = 0; in ipv4NetmaskToPrefixLength() local
81 prefixLength++; in ipv4NetmaskToPrefixLength()
84 return prefixLength; in ipv4NetmaskToPrefixLength()
441 int ifc_set_prefixLength(const char *name, int prefixLength) in ifc_set_prefixLength() argument
445 if (prefixLength > 32 || prefixLength < 0) return -1; in ifc_set_prefixLength()
447 in_addr_t mask = prefixLengthToIpv4Netmask(prefixLength); in ifc_set_prefixLength()
471 int ifc_get_info(const char *name, in_addr_t *addr, int *prefixLength, unsigned *flags) in ifc_get_info() argument
484 if (prefixLength != NULL) { in ifc_get_info()
486 *prefixLength = 0; in ifc_get_info()
488 *prefixLength = ipv4NetmaskToPrefixLength( in ifc_get_info()
780 uint32_t prefixLength, in ifc_configure() argument
799 if (ifc_set_prefixLength(ifname, prefixLength)) { in ifc_configure()
800 printerr("failed to set prefixLength %d: %s\n", prefixLength, strerror(errno)); in ifc_configure()