linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] l2test: add option to use SOCK_STREAM
@ 2010-03-30 18:53 Gustavo F. Padovan
  2010-03-30 18:53 ` [PATCH 2/4] Add duplex test case to l2test Gustavo F. Padovan
  2010-04-28 15:55 ` [PATCH 1/4] l2test: add option to use SOCK_STREAM Johan Hedberg
  0 siblings, 2 replies; 5+ messages in thread
From: Gustavo F. Padovan @ 2010-03-30 18:53 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: marcel, gustavo

---
 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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-04-28 15:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-30 18:53 [PATCH 1/4] l2test: add option to use SOCK_STREAM Gustavo F. Padovan
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

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).