diff options
| author | 2006-11-17 01:11:23 +0000 | |
|---|---|---|
| committer | 2006-11-17 01:11:23 +0000 | |
| commit | d4070096c8030b0b2edefc76c165f16cacc867b4 (patch) | |
| tree | 26b1965227466a90af229484e66d5e77c1b2ebc0 /lib/libc/net/getaddrinfo.c | |
| parent | Add -r and -q options similar to what is supported by FreeBSD's md5 (diff) | |
| download | wireguard-openbsd-d4070096c8030b0b2edefc76c165f16cacc867b4.tar.xz wireguard-openbsd-d4070096c8030b0b2edefc76c165f16cacc867b4.zip | |
change semantics of ff01::/16 to interface local multicast
(to sync up with more recent IPv6 spec)
ok from: deraadt mcbride
Diffstat (limited to 'lib/libc/net/getaddrinfo.c')
| -rw-r--r-- | lib/libc/net/getaddrinfo.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/net/getaddrinfo.c b/lib/libc/net/getaddrinfo.c index 06ab8f2095d..46a44e517c0 100644 --- a/lib/libc/net/getaddrinfo.c +++ b/lib/libc/net/getaddrinfo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getaddrinfo.c,v 1.56 2006/04/18 02:57:10 ray Exp $ */ +/* $OpenBSD: getaddrinfo.c,v 1.57 2006/11/17 01:11:23 itojun Exp $ */ /* $KAME: getaddrinfo.c,v 1.31 2000/08/31 17:36:43 itojun Exp $ */ /* @@ -933,7 +933,8 @@ ip6_str2scopeid(char *scope, struct sockaddr_in6 *sin6, u_int32_t *scopeid) if (*scope == '\0') return -1; - if (IN6_IS_ADDR_LINKLOCAL(a6) || IN6_IS_ADDR_MC_LINKLOCAL(a6)) { + if (IN6_IS_ADDR_LINKLOCAL(a6) || IN6_IS_ADDR_MC_LINKLOCAL(a6) || + IN6_IS_ADDR_MC_INTFACELOCAL(a6)) { /* * We currently assume a one-to-one mapping between links * and interfaces, so we simply use interface indices for |
