mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
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>
This commit is contained in:
parent
73dfdda92e
commit
2fb63292f7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user