netstat and sockstat expect the IPv6 link local addresses to

have an embedded scope. So don't recover.

MFC after:	3 days
This commit is contained in:
Michael Tuexen 2016-07-19 09:48:08 +00:00
parent e62409966b
commit 0ba4c8abe0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=303024

View File

@ -279,15 +279,6 @@ sctp_sysctl_copy_out_local_addresses(struct sctp_inpcb *inp, struct sctp_tcb *st
if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr)) {
if (local_scope == 0)
continue;
if (sin6->sin6_scope_id == 0) {
/*
* bad link
* local
* address
*/
if (sa6_recoverscope(sin6) != 0)
continue;
}
}
if ((site_scope == 0) && (IN6_IS_ADDR_SITELOCAL(&sin6->sin6_addr)))
continue;