Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ipv6 addrconf: revert /proc/net/if_inet6 ifa_flag format

Turned out that applications like ifconfig do not handle the change.
So revert ifa_flag format back to 2-letter hex value.

Introduced by:
commit 479840ffdbe4242e8a25349218c8e0859223aa35
"ipv6 addrconf: extend ifa_flags to u32"

Reported-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Tested-by: FLorent Fourcot <florent.fourcot@enst-bretagne.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Jiri Pirko and committed by
David S. Miller
971a351c 7c6d74d2

+2 -2
+2 -2
net/ipv6/addrconf.c
··· 3367 3367 static int if6_seq_show(struct seq_file *seq, void *v) 3368 3368 { 3369 3369 struct inet6_ifaddr *ifp = (struct inet6_ifaddr *)v; 3370 - seq_printf(seq, "%pi6 %02x %02x %02x %03x %8s\n", 3370 + seq_printf(seq, "%pi6 %02x %02x %02x %02x %8s\n", 3371 3371 &ifp->addr, 3372 3372 ifp->idev->dev->ifindex, 3373 3373 ifp->prefix_len, 3374 3374 ifp->scope, 3375 - ifp->flags, 3375 + (u8) ifp->flags, 3376 3376 ifp->idev->dev->name); 3377 3377 return 0; 3378 3378 }