Skip to contentSkip to conversation

Connectionless l2ping.

Bluez-devel TJ OConnor 2 participants 3 messages Jul 15, 2007 – Jul 17, 2007 Bluetooth drivers

lore
Share & tools
lore

TJ OConnor

author
#0 lore raw

Hello,

Is it possible to use connectionless sockets with L2CAP? I tried rewriting l2ping to use SOCK_DGRAM and sendto / recvfrom instead of SOCK_RAW, send,recv but with no luck.

Thanks.

Respectfully,

TJ

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#1 lore raw

Hi TJ,

Quoted 3 lines

Is it possible to use connectionless sockets with L2CAP? I tried rewriting l2ping to use SOCK_DGRAM and sendto / recvfrom instead of SOCK_RAW, send,recv but with no luck.

of course not. This is not how L2CAP works. The SOCK_RAW is special and only present for that exactly purpose.

Regards

Marcel

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

author
#2 lore raw

Ok. Thank you. I have another question. In the 2.1 standard, there is a mechanism to use Diffie-Helman to negotiate a key later used to create the linkkey.

How do pairing devices know to use the 2.1 standard instead of the 2.0 and below standard. Is this discovered during the extended inquiry and then the decision is defaulted to the lowest version between the 2 devices? Or is there a message that agrees on a key negotiation mechanism? Thank you.

Quoted 15 lines · Marcel Holtmann

Hi TJ,

Quoted 3 lines

Is it possible to use connectionless sockets with L2CAP? I tried rewriting l2ping to use SOCK_DGRAM and sendto / recvfrom instead of SOCK_RAW, send,recv but with no luck.

of course not. This is not how L2CAP works. The SOCK_RAW is special and only present for that exactly purpose.

Regards

Marcel

Quoted 9 lines

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel