Lines Matching refs:prefixLength
82 int prefixLength = 0; in ipv4NetmaskToPrefixLength() local
85 prefixLength++; in ipv4NetmaskToPrefixLength()
88 return prefixLength; in ipv4NetmaskToPrefixLength()
468 int ifc_set_prefixLength(const char *name, int prefixLength) in ifc_set_prefixLength() argument
472 if (prefixLength > 32 || prefixLength < 0) return -1; in ifc_set_prefixLength()
474 in_addr_t mask = prefixLengthToIpv4Netmask(prefixLength); in ifc_set_prefixLength()
498 int ifc_get_info(const char *name, in_addr_t *addr, int *prefixLength, unsigned *flags) in ifc_get_info() argument
511 if (prefixLength != NULL) { in ifc_get_info()
513 *prefixLength = 0; in ifc_get_info()
515 *prefixLength = ipv4NetmaskToPrefixLength( in ifc_get_info()
689 uint32_t prefixLength, in ifc_configure() argument
708 if (ifc_set_prefixLength(ifname, prefixLength)) { in ifc_configure()
709 printerr("failed to set prefixLength %d: %s\n", prefixLength, strerror(errno)); in ifc_configure()