[git commit] networking: properly initialize ipv6 scope id for printing it
Denys Vlasenko
vda.linux at googlemail.com
Mon Mar 28 20:16:48 UTC 2016
commit: https://git.busybox.net/busybox/commit/?id=2fb63292f7083fb259a3f8d8ee70ef8acdaed626
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Timo Teräs <timo.teras at iki.fi>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
networking/interface.c | 1 +
1 file changed, 1 insertion(+)
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);
More information about the busybox-cvs
mailing list