From: Ted Lemon Date: Mon, 20 May 1996 00:10:34 +0000 (+0000) Subject: SA_LEN instead of SIN_LEN X-Git-Tag: BETA-2~70 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d88a8be374de33a439877f2eb76d804ffaf4f97;p=thirdparty%2Fdhcp.git SA_LEN instead of SIN_LEN --- diff --git a/common/dispatch.c b/common/dispatch.c index 154e115f3..2c993715c 100644 --- a/common/dispatch.c +++ b/common/dispatch.c @@ -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; diff --git a/dispatch.c b/dispatch.c index 154e115f3..2c993715c 100644 --- a/dispatch.c +++ b/dispatch.c @@ -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;