summaryrefslogtreecommitdiffstats
path: root/test/l2test.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-07-10 09:38:39 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-07-10 09:38:39 +0000
commit06e4d41372a9f005b05cc2f4a09924f18bf6f6d7 (patch)
tree1c6a3bfd01eb5dcb6944d9b3b4a876df20b355e2 /test/l2test.c
parentc24fa29e216026c41a14a89690002f45d8031e86 (diff)
Allow link mode settings for outgoing connections
Diffstat (limited to 'test/l2test.c')
-rw-r--r--test/l2test.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/l2test.c b/test/l2test.c
index a6ff75fa..bc57d6b6 100644
--- a/test/l2test.c
+++ b/test/l2test.c
@@ -251,6 +251,14 @@ static int do_connect(char *svr)
opt = 0;
if (reliable)
opt |= L2CAP_LM_RELIABLE;
+ if (master)
+ opt |= L2CAP_LM_MASTER;
+ if (auth)
+ opt |= L2CAP_LM_AUTH;
+ if (encrypt)
+ opt |= L2CAP_LM_ENCRYPT;
+ if (secure)
+ opt |= L2CAP_LM_SECURE;
if (setsockopt(sk, SOL_L2CAP, L2CAP_LM, &opt, sizeof(opt)) < 0) {
syslog(LOG_ERR, "Can't set L2CAP link mode: %s (%d)",