mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
SUNRPC: Don't display zero scope IDs
A zero scope ID means that it wasn't set, so we don't need to append it to presentation format addresses. Signed-off-by: Chuck Lever <[email protected]> Acked-by: Jeff Layton <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
This commit is contained in:
parent
f1a89a1182
commit
7a88efe976
1 changed files with 2 additions and 0 deletions
|
|
@ -73,6 +73,8 @@ static size_t rpc_ntop6(const struct sockaddr *sap,
|
|||
|
||||
if (!(ipv6_addr_type(&sin6->sin6_addr) & IPV6_ADDR_LINKLOCAL))
|
||||
return len;
|
||||
if (sin6->sin6_scope_id == 0)
|
||||
return len;
|
||||
|
||||
rc = snprintf(scopebuf, sizeof(scopebuf), "%c%u",
|
||||
IPV6_SCOPE_DELIMITER, sin6->sin6_scope_id);
|
||||
|
|
|
|||
Loading…
Reference in a new issue