]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/sys-aix4.c
we don't have sa_len in sockaddr
[ppp.git] / pppd / sys-aix4.c
index e96e520434b8c7512b7ba2caa04cf22c02b4d267..b6485ec34c94e298e7bf9284016ddf798dce4284 100644 (file)
@@ -19,7 +19,7 @@
  */
 
 #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
 
 /*
@@ -1114,6 +1114,8 @@ get_ether_addr(ipaddr, hwaddr)
  * 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;
@@ -1143,8 +1145,7 @@ GetMask(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.
         */