diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2017-04-25 14:56:34 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2017-04-26 11:33:16 +0300 |
commit | 008093fc1c05fab0a6194f5405de879569997641 (patch) | |
tree | 2b1206fd2f88021deebfc56c799c160f9c6bb147 /monitor/main.c | |
parent | 6db3470c2ea161b4b808ad1fc80dfd7e014fd359 (diff) | |
download | bluez-008093fc1c05fab0a6194f5405de879569997641.tar.gz |
monitor: Add option -A/--a2dp to dump A2DP stream data
This is similar to SCO which disable audio dumping by default so only
signalling data is shown:
< ACL Data TX: Handle 256 flags 0x02 dlen 850 #6041 11:32:29.299212
Channel: 451 len 846 [PSM 25 mode 0] {chan 2}
Diffstat (limited to 'monitor/main.c')
-rw-r--r-- | monitor/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/monitor/main.c b/monitor/main.c index f9bca221a..b4e9a6ab9 100644 --- a/monitor/main.c +++ b/monitor/main.c @@ -69,6 +69,7 @@ static void usage(void) "\t-t, --time Show time instead of time offset\n" "\t-T, --date Show time and date information\n" "\t-S, --sco Dump SCO traffic\n" + "\t-A, --a2dp Dump A2DP stream traffic\n" "\t-E, --ellisys [ip] Send Ellisys HCI Injection\n" "\t-h, --help Show help options\n"); } @@ -85,6 +86,7 @@ static const struct option main_options[] = { { "time", no_argument, NULL, 't' }, { "date", no_argument, NULL, 'T' }, { "sco", no_argument, NULL, 'S' }, + { "a2dp", no_argument, NULL, 'A' }, { "ellisys", required_argument, NULL, 'E' }, { "todo", no_argument, NULL, '#' }, { "version", no_argument, NULL, 'v' }, @@ -113,7 +115,7 @@ int main(int argc, char *argv[]) for (;;) { int opt; - opt = getopt_long(argc, argv, "d:r:w:a:s:p:i:tTSE:vh", + opt = getopt_long(argc, argv, "d:r:w:a:s:p:i:tTSAE:vh", main_options, NULL); if (opt < 0) break; @@ -167,6 +169,9 @@ int main(int argc, char *argv[]) case 'S': filter_mask |= PACKET_FILTER_SHOW_SCO_DATA; break; + case 'A': + filter_mask |= PACKET_FILTER_SHOW_A2DP_STREAM; + break; case 'E': ellisys_server = optarg; ellisys_port = 24352; |