diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-06-20 09:38:25 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-06-20 09:38:25 +0000 |
commit | 4d94fbeacc12993e6879d0f1f124aeee3eaddb70 (patch) | |
tree | 7ca757a1bc57371d23a3e31ae538df65e1543c26 /sys/netinet6/in6.c | |
parent | 3d13812ef33bfbd4535cddc50d4e511bf0da2ea9 (diff) |
Allocate the various hook head descriptors as part of the ifnet
structure rather than doing various M_WAITOK allocations during
the *attach() functions, we always rely on them anyway.
ok mikeb@, uebayasi@
Diffstat (limited to 'sys/netinet6/in6.c')
-rw-r--r-- | sys/netinet6/in6.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index 0f4856a2a17..5f8efed9124 100644 --- a/sys/netinet6/in6.c +++ b/sys/netinet6/in6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6.c,v 1.114 2013/06/16 21:27:15 bluhm Exp $ */ +/* $OpenBSD: in6.c,v 1.115 2013/06/20 09:38:24 mpi Exp $ */ /* $KAME: in6.c,v 1.372 2004/06/14 08:14:21 itojun Exp $ */ /* @@ -670,7 +670,7 @@ in6_control(struct socket *so, u_long cmd, caddr_t data, struct ifnet *ifp, pr0.ndpr_plen = in6_mask2len(&ifra->ifra_prefixmask.sin6_addr, NULL); if (pr0.ndpr_plen == 128) { - dohooks(ifp->if_addrhooks, 0); + dohooks(&ifp->if_addrhooks, 0); break; /* we don't need to install a host route. */ } pr0.ndpr_prefix = ifra->ifra_addr; @@ -720,13 +720,13 @@ in6_control(struct socket *so, u_long cmd, caddr_t data, struct ifnet *ifp, */ pfxlist_onlink_check(); - dohooks(ifp->if_addrhooks, 0); + dohooks(&ifp->if_addrhooks, 0); break; } case SIOCDIFADDR_IN6: in6_purgeaddr(&ia->ia_ifa); - dohooks(ifp->if_addrhooks, 0); + dohooks(&ifp->if_addrhooks, 0); break; default: |