aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if.c
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>1997-02-12 18:54:32 +0000
committerGarrett Wollman <wollman@FreeBSD.org>1997-02-12 18:54:32 +0000
commit176395b2e87e7ab6511b261805309201ac4352b0 (patch)
treec0104668106ee2a022c45043002e8b3e6b9a428f /sys/net/if.c
parentf3a778f288a676fc6180b7846715a19507ef9312 (diff)
downloadsrc-176395b2e87e7ab6511b261805309201ac4352b0.tar.gz
src-176395b2e87e7ab6511b261805309201ac4352b0.zip
Implement PRC_IFUP a la PRC_IFDOWN so that protocols know when an interface
has come bacl up (and can referse actions taken as a result of downing).
Notes
Notes: svn path=/head/; revision=22614
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 3a7c15cc2ec6..982fc002cd8e 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -377,15 +377,13 @@ void
if_up(ifp)
register struct ifnet *ifp;
{
+ register struct ifaddr *ifa;
ifp->if_flags |= IFF_UP;
microtime(&ifp->if_lastchange);
-#ifdef notyet
- register struct ifaddr *ifa;
- /* this has no effect on IP, and will kill all iso connections XXX */
- for (ifa = ifp->if_addrlist; ifa; ifa = ifa->ifa_next)
+ for (ifa = ifp->if_addrhead.tqh_first; ifa;
+ ifa = ifa->ifa_link.tqe_next)
pfctlinput(PRC_IFUP, ifa->ifa_addr);
-#endif
rt_ifmsg(ifp);
}