diff --git a/lib/prefix.c b/lib/prefix.c
index c8fd0bd..54b9bc8 100644
--- a/lib/prefix.c
+++ b/lib/prefix.c
@@ -371,8 +371,8 @@
   if (p1->family != p2->family || p1->prefixlen != p2->prefixlen)
     return 1;
 
-  offset = p1->prefixlen / 8;
-  shift = p1->prefixlen % 8;
+  offset = p1->prefixlen / PNBBY;
+  shift = p1->prefixlen % PNBBY;
 
   if (shift)
     if (maskbit[shift] & (pp1[offset] ^ pp2[offset]))
@@ -509,7 +509,7 @@
 void
 masklen2ip (const int masklen, struct in_addr *netmask)
 {
-  assert (masklen >= 0 && masklen <= 32);
+  assert (masklen >= 0 && masklen <= IPV4_MAX_BITLEN);
   netmask->s_addr = maskbytes_network[masklen];
 }
 
@@ -612,7 +612,7 @@
       if (ret == 0)
 	return 0;
       plen = (u_char) atoi (++pnt);
-      if (plen > 128)
+      if (plen > IPV6_MAX_BITLEN)
 	return 0;
       p->prefixlen = plen;
     }
@@ -632,13 +632,13 @@
   
   pnt = (unsigned char *) & netmask;
 
-  while ((*pnt == 0xff) && len < 128) 
+  while ((*pnt == 0xff) && len < IPV6_MAX_BITLEN)
     {
       len += 8;
       pnt++;
     } 
   
-  if (len < 128) 
+  if (len < IPV6_MAX_BITLEN)
     {
       val = *pnt;
       while (val) 
@@ -653,7 +653,7 @@
 void
 masklen2ip6 (const int masklen, struct in6_addr *netmask)
 {
-  assert (masklen >=0 && masklen <= 128);
+  assert (masklen >= 0 && masklen <= IPV6_MAX_BITLEN);
   memcpy (netmask, maskbytes6 + masklen, sizeof (struct in6_addr));
 }
 
