From: "Gustavo F. Padovan" <padovan@profusion.mobi>
To: linux-bluetooth@vger.kernel.org
Cc: marcel@holtmann.org, gustavo@padovan.org
Subject: [PATCH 1/4] l2test: add option to use SOCK_STREAM
Date: Tue, 30 Mar 2010 15:53:26 -0300 [thread overview]
Message-ID: <1269975209-10044-1-git-send-email-padovan@profusion.mobi> (raw)
---
test/l2test.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/test/l2test.c b/test/l2test.c
index 714604a..bfffab2 100644
--- a/test/l2test.c
+++ b/test/l2test.c
@@ -1046,6 +1046,7 @@ static void usage(void)
"\t[-F fcs] use CRC16 check (default = 1)\n"
"\t[-R] reliable mode\n"
"\t[-G] use connectionless channel (datagram)\n"
+ "\t[-U] use sock stream\n"
"\t[-A] request authentication\n"
"\t[-E] request encryption\n"
"\t[-S] secure connection\n"
@@ -1060,7 +1061,7 @@ int main(int argc, char *argv[])
bacpy(&bdaddr, BDADDR_ANY);
- while ((opt=getopt(argc,argv,"rdscuwmnxyzpb:i:P:I:O:B:N:L:W:C:D:X:F:RGAESMT")) != EOF) {
+ while ((opt=getopt(argc,argv,"rdscuwmnxyzpb:i:P:I:O:B:N:L:W:C:D:X:F:RGUAESMT")) != EOF) {
switch(opt) {
case 'r':
mode = RECV;
@@ -1199,6 +1200,10 @@ int main(int argc, char *argv[])
socktype = SOCK_DGRAM;
break;
+ case 'U':
+ socktype = SOCK_STREAM;
+ break;
+
case 'T':
timestamp = 1;
break;
--
1.6.4.4
next reply other threads:[~2010-03-30 18:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-30 18:53 Gustavo F. Padovan [this message]
2010-03-30 18:53 ` [PATCH 2/4] Add duplex test case to l2test Gustavo F. Padovan
2010-03-30 18:53 ` [PATCH 3/4] Add txWindow and MaxTt to l2cap_options Gustavo F. Padovan
2010-03-30 18:53 ` [PATCH 4/4] Add options to test MaxTx and TxWindow Gustavo F. Padovan
2010-04-28 15:55 ` [PATCH 1/4] l2test: add option to use SOCK_STREAM Johan Hedberg
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=1269975209-10044-1-git-send-email-padovan@profusion.mobi \
--to=padovan@profusion.mobi \
--cc=gustavo@padovan.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcel@holtmann.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).