summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Teräs2016-03-28 22:16:48 +0200
committerDenys Vlasenko2016-03-28 22:16:48 +0200
commit2fb63292f7083fb259a3f8d8ee70ef8acdaed626 (patch)
tree2499c07c2d06e21bda9057fa14ddfbfb3db9b7e2
parent73dfdda92e20da718a9cb398ed762cc09c82e3a7 (diff)
downloadbusybox-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>
-rw-r--r--networking/interface.c1
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);