Revision fe9f1a6d lib/ip.c

View differences:

lib/ip.c
58 58
  return a;
59 59
}
60 60

  
61
int
61
uint
62 62
ip6_masklen(ip6_addr *a)
63 63
{
64 64
  int i, j, n;
......
72 72
      n += j;
73 73
      while (++i < 4)
74 74
	if (a->addr[i])
75
	  return -1;
75
	  return 255;
76 76
      break;
77 77
    }
78 78

  

Also available in: Unified diff