diff options
author | Timo Teräs | 2016-03-28 22:16:48 +0200 |
---|---|---|
committer | Denys Vlasenko | 2016-03-28 22:16:48 +0200 |
commit | 2fb63292f7083fb259a3f8d8ee70ef8acdaed626 (patch) | |
tree | 2499c07c2d06e21bda9057fa14ddfbfb3db9b7e2 /networking | |
parent | 73dfdda92e20da718a9cb398ed762cc09c82e3a7 (diff) | |
download | busybox-2fb63292f7083fb259a3f8d8ee70ef8acdaed626.zip busybox-2fb63292f7083fb259a3f8d8ee70ef8acdaed626.tar.gz |
networking: properly initialize ipv6 scope id for printing it
Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r-- | networking/interface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/networking/interface.c b/networking/interface.c index e5723b4..90c1449 100644 --- a/networking/interface.c +++ b/networking/interface.c @@ -885,6 +885,7 @@ static void ife_print6(struct interface *ptr) inet_pton(AF_INET6, addr6, (struct sockaddr *) &sap.sin6_addr); sap.sin6_family = AF_INET6; + sap.sin6_scope_id = scope; printf(" inet6 addr: %s/%d", INET6_sprint((struct sockaddr *) &sap, 1), plen); |