]> Zhao Yanbai Git Server - minix.git/commitdiff
trace(1): print sin6_scope_id when relevant 95/3395/1
authorDavid van Moolenbroek <david@minix3.org>
Mon, 13 Feb 2017 13:41:19 +0000 (13:41 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Thu, 16 Feb 2017 10:21:56 +0000 (10:21 +0000)
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

minix/usr.bin/trace/service/vfs.c

index f552655067e27b11a472a4ac1461b3af8fb0402f..93c0055fa509b1ddc9fa829adcd27c5933f21db7 100644 (file)
@@ -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);