summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1997-06-02 10:43:41 +0000
committerdfr <dfr@FreeBSD.org>1997-06-02 10:43:41 +0000
commit13f8b3c4e9aec35b082eb12ca03c476e2ca87e5d (patch)
tree10077e6aaf7ba3a060d7efb5447c11a077a3583d
parent7e94f250816c45a41ef25786d885aa05be2a6ec1 (diff)
downloadFreeBSD-src-13f8b3c4e9aec35b082eb12ca03c476e2ca87e5d.zip
FreeBSD-src-13f8b3c4e9aec35b082eb12ca03c476e2ca87e5d.tar.gz
Make this thing actually compile.
-rw-r--r--sys/compat/linux/linux_ioctl.c4
-rw-r--r--sys/i386/linux/linux_ioctl.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c
index 0f2829e..b38f867 100644
--- a/sys/compat/linux/linux_ioctl.c
+++ b/sys/compat/linux/linux_ioctl.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: linux_ioctl.c,v 1.17 1997/06/02 06:28:04 msmith Exp $
+ * $Id: linux_ioctl.c,v 1.18 1997/06/02 06:33:22 msmith Exp $
*/
#include <sys/param.h>
@@ -608,7 +608,7 @@ linux_ioctl(struct proc *p, struct linux_ioctl_args *args, int *retval)
ifp = ifnet_addrs[ifn]->ifa_ifp; /* pointer to interface */
if (ifp->if_type == IFT_ETHER) { /* looks good */
/* walk the address list */
- for (ifa = ifp->if_addrlist; ifa; ifa = ifa->ifa_next) {
+ for (ifa = TAILQ_FIRST(&ifp->if_addrhead); ifa; ifa = TAILQ_NEXT(ifa, ifa_link)) {
if ((sdl = (struct sockaddr_dl *)ifa->ifa_addr) && /* we have an address structure */
(sdl->sdl_family == AF_LINK) && /* it's a link address */
(sdl->sdl_type == IFT_ETHER)) { /* for an ethernet link */
diff --git a/sys/i386/linux/linux_ioctl.c b/sys/i386/linux/linux_ioctl.c
index 0f2829e..b38f867 100644
--- a/sys/i386/linux/linux_ioctl.c
+++ b/sys/i386/linux/linux_ioctl.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: linux_ioctl.c,v 1.17 1997/06/02 06:28:04 msmith Exp $
+ * $Id: linux_ioctl.c,v 1.18 1997/06/02 06:33:22 msmith Exp $
*/
#include <sys/param.h>
@@ -608,7 +608,7 @@ linux_ioctl(struct proc *p, struct linux_ioctl_args *args, int *retval)
ifp = ifnet_addrs[ifn]->ifa_ifp; /* pointer to interface */
if (ifp->if_type == IFT_ETHER) { /* looks good */
/* walk the address list */
- for (ifa = ifp->if_addrlist; ifa; ifa = ifa->ifa_next) {
+ for (ifa = TAILQ_FIRST(&ifp->if_addrhead); ifa; ifa = TAILQ_NEXT(ifa, ifa_link)) {
if ((sdl = (struct sockaddr_dl *)ifa->ifa_addr) && /* we have an address structure */
(sdl->sdl_family == AF_LINK) && /* it's a link address */
(sdl->sdl_type == IFT_ETHER)) { /* for an ethernet link */
OpenPOWER on IntegriCloud