Skip to contentSkip to conversation

l2ping acts like ping

Bluez-users Nicholas A. Preyss 2 participants 2 messages Apr 17, 2004 – Apr 18, 2004 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw
Quoted 3 lines · Marcel Holtmann
Quoted 1 line

we should possibly ping from 0 not 200 like normal ping :)

I don't know why it is from 200, so I applied your patch. Thanks.

snip l2cap.c
...
/* Get next available identificator.
* 1 - 199 are used by kernel.
* 200 - 254 are used by utilities like l2ping,
* etc
*/
...

So probably a ident under 200 could interfere with kernel packets, but as far as i can see kernel don't enforces using higher ids. So it seems there is some more digging in the code necessary, to see whether there is a problem in
Reading the specs it seems that id doesn't matter at all, because it is intended for an connection oriented ping. And doing some field research, i found that this modified l2ping works with the stack of my T610 but it can't ping other bluez stacks, propabably because :

" ... The null identifier (0x0000) is defined as an illegal identifier and must never be used as a destination end-point. ..." BT 1.1 spec - page 261

so ident should be at least >= 1.

just my humble opinion
nicholas

p.s. sorry marcel for this dumbass mail copy, just too stupid for my MUA

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#1 lore raw

Hi Nicholas,

Quoted 10 lines
Quoted 1 line

I don't know why it is from 200, so I applied your patch. Thanks.

snip l2cap.c
...
/* Get next available identificator.
* 1 - 199 are used by kernel.
* 200 - 254 are used by utilities like l2ping,
* etc
*/
...

thanks for this information. I reverted the patch.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users