From 9fd5916940a0869e076beb9624fbda5416b9b176 Mon Sep 17 00:00:00 2001 From: dyoung Date: Thu, 6 Dec 2007 02:23:42 +0000 Subject: [PATCH] Fix a serious regression: insert new ifaddrs at the end of if_addrlist, not at the front, because the first ifaddr on the list has special significance (grrr). --- sys/net/if.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/net/if.c b/sys/net/if.c index 4b876c04a9c9..1aa64da1ba13 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $NetBSD: if.c,v 1.207 2007/12/06 00:23:09 dyoung Exp $ */ +/* $NetBSD: if.c,v 1.208 2007/12/06 02:23:42 dyoung Exp $ */ /*- * Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc. @@ -97,7 +97,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.207 2007/12/06 00:23:09 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.208 2007/12/06 02:23:42 dyoung Exp $"); #include "opt_inet.h" @@ -902,7 +902,7 @@ void ifa_insert(struct ifnet *ifp, struct ifaddr *ifa) { ifa->ifa_ifp = ifp; - TAILQ_INSERT_HEAD(&ifp->if_addrlist, ifa, ifa_list); + TAILQ_INSERT_TAIL(&ifp->if_addrlist, ifa, ifa_list); IFAREF(ifa); }