diff options
author | Timo Teräs <timo.teras@iki.fi> | 2016-03-28 23:16:48 +0300 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-03-28 23:16:48 +0300 |
commit | 2fb63292f7083fb259a3f8d8ee70ef8acdaed626 (patch) | |
tree | 2499c07c2d06e21bda9057fa14ddfbfb3db9b7e2 /networking/interface.c | |
parent | 73dfdda92e20da718a9cb398ed762cc09c82e3a7 (diff) |
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/interface.c')
-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) 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); |