Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/netstat use macro to determine link-local multicast ...
details: https://anonhg.NetBSD.org/src/rev/6c3888bbc514
branches: trunk
changeset: 533054:6c3888bbc514
user: itojun <itojun%NetBSD.org@localhost>
date: Wed Jun 19 23:38:59 2002 +0000
description:
use macro to determine link-local multicast addr
diffstat:
usr.bin/netstat/if.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6d41b9ab3ad4 -r 6c3888bbc514 usr.bin/netstat/if.c
--- a/usr.bin/netstat/if.c Wed Jun 19 23:35:35 2002 +0000
+++ b/usr.bin/netstat/if.c Wed Jun 19 23:38:59 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if.c,v 1.51 2002/06/19 16:42:09 itojun Exp $ */
+/* $NetBSD: if.c,v 1.52 2002/06/19 23:38:59 itojun Exp $ */
/*
* Copyright (c) 1983, 1988, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "from: @(#)if.c 8.2 (Berkeley) 2/21/94";
#else
-__RCSID("$NetBSD: if.c,v 1.51 2002/06/19 16:42:09 itojun Exp $");
+__RCSID("$NetBSD: if.c,v 1.52 2002/06/19 23:38:59 itojun Exp $");
#endif
#endif /* not lint */
@@ -287,7 +287,7 @@
sin6.sin6_family = AF_INET6;
sin6.sin6_addr = inm.in6m_addr;
#ifdef KAME_SCOPEID
- if (sin6.sin6_addr.s6_addr[1] == 0x02) {
+ if (IN6_IS_ADDR_MC_LINKLOCAL(&sin6.sin6_addr)) {
sin6.sin6_scope_id =
ntohs(*(u_int16_t *)
&sin6.sin6_addr.s6_addr[2]);
Home |
Main Index |
Thread Index |
Old Index