networking: properly initialize ipv6 scope id for printing it
authorTimo Teräs <timo.teras@iki.fi>
Mon, 28 Mar 2016 20:16:48 +0000 (22:16 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 28 Mar 2016 20:16:48 +0000 (22:16 +0200)
Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/interface.c

index e5723b42830511c466fc193c912a1076846abae6..90c1449b37309d2a8cc1eb241812c170ae4bb6a1 100644 (file)
@@ -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);