* [PATCH iproute2] iproute: print addrgenmode stable_secret and fallback otherwise
@ 2015-12-16 9:52 Hannes Frederic Sowa
2015-12-18 1:25 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: Hannes Frederic Sowa @ 2015-12-16 9:52 UTC (permalink / raw)
To: netdev; +Cc: stephen
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
---
ip/ipaddress.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/ip/ipaddress.c b/ip/ipaddress.c
index bc8359eb9fad6c..a495a391a0ecdb 100644
--- a/ip/ipaddress.c
+++ b/ip/ipaddress.c
@@ -285,13 +285,20 @@ static void print_af_spec(FILE *fp, struct rtattr *af_spec_attr)
parse_rtattr_nested(tb, IFLA_INET6_MAX, inet6_attr);
if (tb[IFLA_INET6_ADDR_GEN_MODE]) {
- switch (rta_getattr_u8(tb[IFLA_INET6_ADDR_GEN_MODE])) {
+ __u8 mode = rta_getattr_u8(tb[IFLA_INET6_ADDR_GEN_MODE]);
+ switch (mode) {
case IN6_ADDR_GEN_MODE_EUI64:
fprintf(fp, "addrgenmode eui64 ");
break;
case IN6_ADDR_GEN_MODE_NONE:
fprintf(fp, "addrgenmode none ");
break;
+ case IN6_ADDR_GEN_MODE_STABLE_PRIVACY:
+ fprintf(fp, "addrgenmode stable_secret ");
+ break;
+ default:
+ fprintf(fp, "addrgenmode %#.2hhx ", mode);
+ break;
}
}
}
--
2.5.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH iproute2] iproute: print addrgenmode stable_secret and fallback otherwise
2015-12-16 9:52 [PATCH iproute2] iproute: print addrgenmode stable_secret and fallback otherwise Hannes Frederic Sowa
@ 2015-12-18 1:25 ` Stephen Hemminger
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2015-12-18 1:25 UTC (permalink / raw)
To: Hannes Frederic Sowa; +Cc: netdev
On Wed, 16 Dec 2015 10:52:36 +0100
Hannes Frederic Sowa <hannes@stressinduktion.org> wrote:
Applied thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-12-18 1:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-16 9:52 [PATCH iproute2] iproute: print addrgenmode stable_secret and fallback otherwise Hannes Frederic Sowa
2015-12-18 1:25 ` Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).