From: Antonio Quartulli <a@unstable.cc>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org, Antonio Quartulli <a@unstable.cc>
Subject: [PATCH] iw: print 4ADDR attribute when dumping interface
Date: Mon, 18 Jun 2018 12:20:47 +0800 [thread overview]
Message-ID: <20180618042047.30608-1-a@unstable.cc> (raw)
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
next reply other threads:[~2018-06-18 4:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-18 4:20 Antonio Quartulli [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-03-23 9:39 [PATCH] iw: print 4ADDR attribute when dumping interface Antonio Quartulli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180618042047.30608-1-a@unstable.cc \
--to=a@unstable.cc \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).