diff options
-rw-r--r-- | usr.bin/netstat/if.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c index 558985b905c..a346e96ecd1 100644 --- a/usr.bin/netstat/if.c +++ b/usr.bin/netstat/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.31 2002/06/19 15:12:09 itojun Exp $ */ +/* $OpenBSD: if.c,v 1.32 2002/06/19 23:40:20 itojun Exp $ */ /* $NetBSD: if.c,v 1.16.4.2 1996/06/07 21:46:46 thorpej Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "from: @(#)if.c 8.2 (Berkeley) 2/21/94"; #else -static char *rcsid = "$OpenBSD: if.c,v 1.31 2002/06/19 15:12:09 itojun Exp $"; +static char *rcsid = "$OpenBSD: if.c,v 1.32 2002/06/19 23:40:20 itojun Exp $"; #endif #endif /* not lint */ @@ -266,7 +266,7 @@ intpr(interval, ifnetaddr) m6.sin6_family = AF_INET6; m6.sin6_addr = inm.in6m_addr; #ifdef KAME_SCOPEID - if (m6.sin6_addr.s6_addr[1] == 0x02) { + if (IN6_IS_ADDR_MC_LINKLOCAL(&m6.sin6_addr)) { m6.sin6_scope_id = ntohs(*(u_int16_t *) &m6.sin6_addr.s6_addr[2]); |