Home | History | Annotate | Download | only in libnetutils

Lines Matching full:prefixlength

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