projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c6d74d
)
ipv6 addrconf: revert /proc/net/if_inet6 ifa_flag format
author
Jiri Pirko
<
[email protected]
>
Tue, 10 Dec 2013 12:56:29 +0000
(13:56 +0100)
committer
David S. Miller
<
[email protected]
>
Tue, 10 Dec 2013 22:47:18 +0000
(17:47 -0500)
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 <
[email protected]
>
Signed-off-by: Jiri Pirko <
[email protected]
>
Tested-by: FLorent Fourcot <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ipv6/addrconf.c
patch
|
blob
|
history
diff --git
a/net/ipv6/addrconf.c
b/net/ipv6/addrconf.c
index be4dbbd17d3be93a5689fa1a33842bee1095df1c..3c3425ee6a2b4d03a951a5630ca3aaba9c471cfe 100644
(file)
--- a/
net/ipv6/addrconf.c
+++ b/
net/ipv6/addrconf.c
@@
-3367,12
+3367,12
@@
static void if6_seq_stop(struct seq_file *seq, void *v)
static int if6_seq_show(struct seq_file *seq, void *v)
{
struct inet6_ifaddr *ifp = (struct inet6_ifaddr *)v;
- seq_printf(seq, "%pi6 %02x %02x %02x %0
3
x %8s\n",
+ seq_printf(seq, "%pi6 %02x %02x %02x %0
2
x %8s\n",
&ifp->addr,
ifp->idev->dev->ifindex,
ifp->prefix_len,
ifp->scope,
- ifp->flags,
+
(u8)
ifp->flags,
ifp->idev->dev->name);
return 0;
}