On Tue, 29 Mar 2016 14:43:41 +0200 Denys Vlasenko <vda.li...@googlemail.com> wrote:
> On Tue, Mar 29, 2016 at 6:35 AM, Timo Teräs <timo.te...@iki.fi> wrote: > > Scope is the /proc bitmask of scope type, not the scope id. The > > scope id should be set to the ifindex when the address is link > > local. But for printing purposes we don't need to set it at all > > since the line is already associated to interface by the header > > line. > > > > Signed-off-by: Timo Teräs <timo.te...@iki.fi> > > --- > > Sorry, should've checked more thoroughly before the first patch > > I was just confused with the local variable name and wanted to > > get done with this. > > > > networking/interface.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/networking/interface.c b/networking/interface.c > > index 90c1449..5db0cb7 100644 > > --- a/networking/interface.c > > +++ b/networking/interface.c > > @@ -885,7 +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; > > + sap.sin6_scope_id = 0; > > There is "memset(&sap, 0, sizeof(sap))" a few lines up. > Is it not enough? It wasn't there when I started fixing it from the latest release. commit f2c043acfcf9dad9fd3d65821b81f89986bbe54e Author: Felix Fietkau <n...@openwrt.org> Date: Mon Jan 18 12:07:35 2016 +0100 busybox: fix uninitialized memory when displaying IPv6 addresses Seems to have added it. And fixes the issue I was trying to fix. So yes, please just revert the previous patch I sent. Sorry for the confusion. Could you also add the above commit to fixes / next dot release. Thanks, Timo _______________________________________________ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox