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
This commit is contained in:
parent
44fdeb7a62
commit
40dec70c39
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user