*/
#ifndef lint
-static char rcsid[] = "$Id: sys-aix4.c,v 1.4 1995/04/27 00:33:49 paulus Exp $";
+static char rcsid[] = "$Id: sys-aix4.c,v 1.5 1995/04/28 06:25:40 paulus Exp $";
#endif
/*
* network as `addr'. If we find any, we OR in their netmask to the
* user-specified netmask.
*/
+#define MAX_IFS 32
+
u_int32_t
GetMask(addr)
u_int32_t addr;
return mask;
}
ifend = (struct ifreq *) (ifc.ifc_buf + ifc.ifc_len);
- for (ifr = ifc.ifc_req; ifr < ifend; ifr = (struct ifreq *)
- ((char *)&ifr->ifr_addr + ifr->ifr_addr.sa_len)) {
+ for (ifr = ifc.ifc_req; ifr < ifend; ++ifr) {
/*
* Check the interface's internet address.
*/