* [PATCH] iw: print 4ADDR attribute when dumping interface
@ 2018-06-18 4:20 Antonio Quartulli
0 siblings, 0 replies; 2+ messages in thread
From: Antonio Quartulli @ 2018-06-18 4:20 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless, Antonio Quartulli
Print the value of the 4ADDr attribute when dumping the interface
status.
Signed-off-by: Antonio Quartulli <a@unstable.cc>
---
interface.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/interface.c b/interface.c
index 712bbdc..678955d 100644
--- a/interface.c
+++ b/interface.c
@@ -447,6 +447,11 @@ static int print_iface_handler(struct nl_msg *msg, void *arg)
printf("%s\tmulticast TXQ:%s\n", indent, buf);
}
+ if (tb_msg[NL80211_ATTR_4ADDR]) {
+ uint8_t use_4addr = nla_get_u8(tb_msg[NL80211_ATTR_4ADDR]);
+ printf("%s\t4addr: %d\n", indent, use_4addr);
+ }
+
return NL_SKIP;
}
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] iw: print 4ADDR attribute when dumping interface
@ 2019-03-23 9:39 Antonio Quartulli
0 siblings, 0 replies; 2+ messages in thread
From: Antonio Quartulli @ 2019-03-23 9:39 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless, Antonio Quartulli
Print the value of the 4ADDR attribute when dumping the interface
status.
Signed-off-by: Antonio Quartulli <a@unstable.cc>
---
This patch was sleeping in my local repo for a while .. maybe it is useful to
other people too.
Cheers,
interface.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/interface.c b/interface.c
index 712bbdc..678955d 100644
--- a/interface.c
+++ b/interface.c
@@ -447,6 +447,11 @@ static int print_iface_handler(struct nl_msg *msg, void *arg)
printf("%s\tmulticast TXQ:%s\n", indent, buf);
}
+ if (tb_msg[NL80211_ATTR_4ADDR]) {
+ uint8_t use_4addr = nla_get_u8(tb_msg[NL80211_ATTR_4ADDR]);
+ printf("%s\t4addr: %d\n", indent, use_4addr);
+ }
+
return NL_SKIP;
}
--
2.21.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-03-23 10:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-18 4:20 [PATCH] iw: print 4ADDR attribute when dumping interface Antonio Quartulli
-- strict thread matches above, loose matches on Subject: below --
2019-03-23 9:39 Antonio Quartulli
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).