From: Marcel Holtmann <marcel@holtmann.org>
To: Gustavo Padovan <gustavo@padovan.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 2/4] monitor: add device filter support
Date: Wed, 16 May 2012 10:51:40 -0700 [thread overview]
Message-ID: <1337190700.5970.266.camel@aeonflux> (raw)
In-Reply-To: <1337133263.5970.256.camel@aeonflux>
Hi Gustavo,
> > > We better have some generic filtering mechanism, then trying to just
> > > duplicate options from hcidump into btmon.
> > >
> > > btmon is different in the fact that it is actually able to record all
> > > packets from all devices. You also do not wanna filter based on index
> > > number. You wanna filter based on BD_ADDR and BR/EDR vs AMP.
> >
> > Filter based on BD_ADDR would work too, but is more painful to the user
> > however.
>
> I actually think having some sort of -f <filter> file where you can
> store BD_ADDR and potentially other filter options makes way more sense.
coming to think about this, the -f <filter> is the only proper way to
deal with this anyway. Everything else is just a hack. So I am currently
thinking in just doing a simple SSH config style filter file here.
Controller aa:bb:cc:*
Ignore
Controller amp
Ignore
Controller bb:cc:*
Hide sco,l2cap
Show rfcomm
Timestamps on
Controller 11:22:33:44:55:66
File x.btsnoop
Or something really similar to this. That way you can just have multiple
of these and only need to specify the correct file for what you are
trying to test. Including the capabilities to store BTSnoop files with
the same one command.
Regards
Marcel
next prev parent reply other threads:[~2012-05-16 17:51 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-11 16:18 [PATCH 1/4] monitor: remove extra black line Gustavo Padovan
2012-05-11 16:18 ` [PATCH 2/4] monitor: add device filter support Gustavo Padovan
2012-05-11 16:18 ` [PATCH 3/4] monitor: add command line filter options Gustavo Padovan
2012-05-11 16:18 ` [PATCH 4/4] monitor: show index only when -i is not specified Gustavo Padovan
2012-05-11 23:13 ` [PATCH 2/4] monitor: add device filter support Vinicius Costa Gomes
2012-05-14 2:58 ` Marcel Holtmann
2012-05-15 23:14 ` Gustavo Padovan
2012-05-16 1:54 ` Marcel Holtmann
2012-05-16 17:51 ` Marcel Holtmann [this message]
2012-05-11 16:20 ` [PATCH -v2 1/4] monitor: remove extra blank line Gustavo Padovan
2012-05-11 23:07 ` [PATCH 1/4] monitor: remove extra black line Vinicius Costa Gomes
2012-05-14 2:53 ` Marcel Holtmann
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=1337190700.5970.266.camel@aeonflux \
--to=marcel@holtmann.org \
--cc=gustavo@padovan.org \
--cc=linux-bluetooth@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).