batctl: detect clients connected through a 802.11 device

Message ID 1311633548-302-1-git-send-email-ordex@autistici.org (mailing list archive)
State Accepted, archived
Commit 610d2adce549dd9b4c6e343d95828cc60cb5bd89
Headers

Commit Message

Antonio Quartulli July 25, 2011, 10:39 p.m. UTC
  From: Antonio Quartulli <ordex@autistici.org>

Clients connected through a 802.11 device are now marked with the
TT_CLIENT_WIFI flag. This flag is also advertised with the tt
announcement.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---
 packet.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
  

Comments

Marek Lindner July 25, 2011, 10:58 p.m. UTC | #1
On Tuesday, July 26, 2011 00:39:08 Antonio Quartull wrote:
> From: Antonio Quartulli <ordex@autistici.org>
> 
> Clients connected through a 802.11 device are now marked with the
> TT_CLIENT_WIFI flag. This flag is also advertised with the tt
> announcement.

Applied in revision 610d2ad.

Thanks,
Marek
  

Patch

diff --git a/packet.h b/packet.h
index b76b4be..8802eab 100644
--- a/packet.h
+++ b/packet.h
@@ -84,6 +84,7 @@  enum tt_query_flags {
 enum tt_client_flags {
 	TT_CLIENT_DEL     = 1 << 0,
 	TT_CLIENT_ROAM    = 1 << 1,
+	TT_CLIENT_WIFI    = 1 << 2,
 	TT_CLIENT_NOPURGE = 1 << 8,
 	TT_CLIENT_NEW     = 1 << 9,
 	TT_CLIENT_PENDING = 1 << 10