diff options
author | Marco Pfatschbacher <mpf@cvs.openbsd.org> | 2010-10-07 22:07:07 +0000 |
---|---|---|
committer | Marco Pfatschbacher <mpf@cvs.openbsd.org> | 2010-10-07 22:07:07 +0000 |
commit | 7c083bc1bad688f4beb3b0f1ec25348d8ad478ad (patch) | |
tree | 4ddd890c0b7d9024408e5c90536c2e6d61f46f8a /sys/netinet6/in6.c | |
parent | daa2e8c9308e17c82595fab97934abb561176dfa (diff) |
Also call addrhooks for IPv6 addresses with a 128 bit prefixlen.
I overlooked that one case in rev. 1.69. Fix from Pedro Martelletto.
OK mcbride, claudio, henning.
Diffstat (limited to 'sys/netinet6/in6.c')
-rw-r--r-- | sys/netinet6/in6.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index 30344bac8d7..4bbdc9aa424 100644 --- a/sys/netinet6/in6.c +++ b/sys/netinet6/in6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6.c,v 1.88 2010/07/08 19:42:46 jsg Exp $ */ +/* $OpenBSD: in6.c,v 1.89 2010/10/07 22:07:06 mpf Exp $ */ /* $KAME: in6.c,v 1.372 2004/06/14 08:14:21 itojun Exp $ */ /* @@ -661,6 +661,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); break; /* we don't need to install a host route. */ } pr0.ndpr_prefix = ifra->ifra_addr; |