From: David van Moolenbroek Date: Mon, 13 Feb 2017 13:41:19 +0000 (+0000) Subject: trace(1): print sin6_scope_id when relevant X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doc/howto.html?a=commitdiff_plain;h=refs%2Fchanges%2F95%2F3395%2F1;p=minix.git trace(1): print sin6_scope_id when relevant Site-local addresses are out, as they are RFC-deprecated and not supported on MINIX 3 at all. Interface-local and link-local multicast addresses are in, because they are relevant in the context of a particular zone ID only. Change-Id: I64a9ecb472946f717f27a72c4073d78aa1120508 --- diff --git a/minix/usr.bin/trace/service/vfs.c b/minix/usr.bin/trace/service/vfs.c index f55265506..93c0055fa 100644 --- a/minix/usr.bin/trace/service/vfs.c +++ b/minix/usr.bin/trace/service/vfs.c @@ -1626,7 +1626,8 @@ put_struct_sockaddr(struct trace_proc * proc, const char * name, int flags, sin6.sin6_flowinfo); put_in6_addr(proc, "sin6_addr", &sin6.sin6_addr); if (IN6_IS_ADDR_LINKLOCAL(&sin6.sin6_addr) || - IN6_IS_ADDR_SITELOCAL(&sin6.sin6_addr) || + IN6_IS_ADDR_MC_NODELOCAL(&sin6.sin6_addr) || + IN6_IS_ADDR_MC_LINKLOCAL(&sin6.sin6_addr) || verbose > 0) put_value(proc, "sin6_scope_id", "%"PRIu32, sin6.sin6_scope_id);