diff options
author | Timo Teräs <timo.teras@iki.fi> | 2016-03-28 22:16:48 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-03-28 22:16:48 +0200 |
commit | 2fb63292f7083fb259a3f8d8ee70ef8acdaed626 (patch) | |
tree | 2499c07c2d06e21bda9057fa14ddfbfb3db9b7e2 /networking | |
parent | 73dfdda92e20da718a9cb398ed762cc09c82e3a7 (diff) | |
download | busybox-w32-2fb63292f7083fb259a3f8d8ee70ef8acdaed626.tar.gz busybox-w32-2fb63292f7083fb259a3f8d8ee70ef8acdaed626.tar.bz2 busybox-w32-2fb63292f7083fb259a3f8d8ee70ef8acdaed626.zip |
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 e5723b428..90c1449b3 100644 --- a/networking/interface.c +++ b/networking/interface.c | |||
@@ -885,6 +885,7 @@ static void ife_print6(struct interface *ptr) | |||
885 | inet_pton(AF_INET6, addr6, | 885 | inet_pton(AF_INET6, addr6, |
886 | (struct sockaddr *) &sap.sin6_addr); | 886 | (struct sockaddr *) &sap.sin6_addr); |
887 | sap.sin6_family = AF_INET6; | 887 | sap.sin6_family = AF_INET6; |
888 | sap.sin6_scope_id = scope; | ||
888 | printf(" inet6 addr: %s/%d", | 889 | printf(" inet6 addr: %s/%d", |
889 | INET6_sprint((struct sockaddr *) &sap, 1), | 890 | INET6_sprint((struct sockaddr *) &sap, 1), |
890 | plen); | 891 | plen); |