diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-09-19 19:38:35 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-09-19 19:38:35 +0000 |
commit | 52558c64d88826cb07c5af47442871545daa78e2 (patch) | |
tree | 373afe884b81170865aee8479d19903cc959efde | |
parent | 05b585380ebb9e5b2aa39b18a0700988052fabf9 (diff) |
sin6_scope_id maps to interface indices for link local addresses only!
(unlikely to be used with other scopes for now, but we should be
correct anyway)
From drochner NetBSD
ok deraadt@
-rw-r--r-- | sys/netinet6/in6_src.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/in6_src.c b/sys/netinet6/in6_src.c index 82f12d20253..74dc0b72491 100644 --- a/sys/netinet6/in6_src.c +++ b/sys/netinet6/in6_src.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6_src.c,v 1.16 2003/12/10 03:30:21 itojun Exp $ */ +/* $OpenBSD: in6_src.c,v 1.17 2005/09/19 19:38:34 brad Exp $ */ /* $KAME: in6_src.c,v 1.36 2001/02/06 04:08:17 itojun Exp $ */ /* @@ -148,7 +148,7 @@ in6_selectsrc(dstsock, opts, mopts, ro, laddr, errorp) * sin6_scope_id field, so this part will be rewritten in * the near future. */ - if ((IN6_IS_ADDR_LINKLOCAL(dst) || IN6_IS_ADDR_MULTICAST(dst)) && + if ((IN6_IS_ADDR_LINKLOCAL(dst) || IN6_IS_ADDR_MC_LINKLOCAL(dst)) && dstsock->sin6_scope_id) { /* * I'm not sure if boundary check for scope_id is done |