summaryrefslogtreecommitdiff
path: root/monitor/main.c
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2013-04-17 12:03:42 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2013-04-24 17:03:02 +0300
commit94bf3fa9e5db101aa3be131c76c5d8d9fb27647b (patch)
tree21e7d94d6ba3a990fac581ce7920b55d39198d43 /monitor/main.c
parent620987bc862eca28e34a78b0f4e08df8a24e77e7 (diff)
downloadbluez-94bf3fa9e5db101aa3be131c76c5d8d9fb27647b.tar.gz
monitor: Add an option to dump SCO traffic
Diffstat (limited to 'monitor/main.c')
-rw-r--r--monitor/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/monitor/main.c b/monitor/main.c
index 27a572225..8285a48c7 100644
--- a/monitor/main.c
+++ b/monitor/main.c
@@ -59,6 +59,7 @@ static void usage(void)
"\t-i, --index <num> Show only specified controller\n"
"\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-h, --help Show help options\n");
}
@@ -69,6 +70,7 @@ static const struct option main_options[] = {
{ "index", required_argument, NULL, 'i' },
{ "time", no_argument, NULL, 't' },
{ "date", no_argument, NULL, 'T' },
+ { "sco", no_argument, NULL, 'S' },
{ "version", no_argument, NULL, 'v' },
{ "help", no_argument, NULL, 'h' },
{ }
@@ -87,7 +89,7 @@ int main(int argc, char *argv[])
for (;;) {
int opt;
- opt = getopt_long(argc, argv, "r:w:s:i:tTvh",
+ opt = getopt_long(argc, argv, "r:w:s:i:tTSvh",
main_options, NULL);
if (opt < 0)
break;
@@ -122,6 +124,9 @@ int main(int argc, char *argv[])
filter_mask |= PACKET_FILTER_SHOW_TIME;
filter_mask |= PACKET_FILTER_SHOW_DATE;
break;
+ case 'S':
+ filter_mask |= PACKET_FILTER_SHOW_SCO_DATA;
+ break;
case 'v':
printf("%s\n", VERSION);
return EXIT_SUCCESS;