]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
SA_LEN instead of SIN_LEN
authorTed Lemon <source@isc.org>
Mon, 20 May 1996 00:10:34 +0000 (00:10 +0000)
committerTed Lemon <source@isc.org>
Mon, 20 May 1996 00:10:34 +0000 (00:10 +0000)
common/dispatch.c
dispatch.c

index 154e115f3e69625bb4e116abcc1c5217f0801a28..2c993715cb0dd26fb5ef8b8be8698143116931ef 100644 (file)
@@ -87,7 +87,7 @@ void discover_interfaces ()
           second time to copy them into an array of addresses. */
        for (i = 0; i < ic.ifc_len;) {
                struct ifreq *ifp = (struct ifreq *)((caddr_t)ic.ifc_req + i);
-#ifdef HAVE_SIN_LEN
+#ifdef HAVE_SA_LEN
                i += (sizeof ifp -> ifr_name) + ifp -> ifr_addr.sa_len;
 #else
                i += sizeof *ifp;
index 154e115f3e69625bb4e116abcc1c5217f0801a28..2c993715cb0dd26fb5ef8b8be8698143116931ef 100644 (file)
@@ -87,7 +87,7 @@ void discover_interfaces ()
           second time to copy them into an array of addresses. */
        for (i = 0; i < ic.ifc_len;) {
                struct ifreq *ifp = (struct ifreq *)((caddr_t)ic.ifc_req + i);
-#ifdef HAVE_SIN_LEN
+#ifdef HAVE_SA_LEN
                i += (sizeof ifp -> ifr_name) + ifp -> ifr_addr.sa_len;
 #else
                i += sizeof *ifp;