2009-01-03 10:00:28

by Breno Jacinto

[permalink] [raw]
Subject: BNEP and Raw Ethernet Sockets

Hello,

I've been trying for a while to make a BNEP network exchange
messages through raw ethernet sockets, but up to now I could not come
with a reasonable explanation of why it is not working. I have done
the following experiments:

1) Build the network according to the BlueZ PAN Howto
(http://bluez.sourceforge.net/contrib/HOWTO-PAN), consisting of 2
nodes, then 3 nodes with bridging.

2) Tested simple UDP broadcasts: worked fine, everyone receives the packet.

3) Tested with Raw Ethernet sockets: Source Node sends, but the frame
simply doesnt seem to reach the destinations (it is also a broadcast,
but a link-layer one).

The codes I have been testing are attached, if anyone has
experienced the same situation and found a solution, or if anyone is
suspicious about what might be happening, I'd be glad to hear.

My main suspect is that hand-made Ethernet frames are not what the
BNEP layer is expecting (and thus I see some errors in Wireshark), but
then, what is it that BNEP expects?


best regards,
--
--
:: Breno Jacinto ::
:: breno - at - gprt.ufpe.br ::
:: FingerPrint ::
2F15 8A61 F566 E442 8581
E3C0 EFF4 E202 74B7 7484
:: Persistir no dif?cil ? a ?nica maneira de torn?-lo f?cil algum dia. ::


Attachments:
(No filename) (1.21 kB)
source.tar.gz (4.11 kB)
Download all attachments

2009-01-04 05:20:56

by Breno Jacinto

[permalink] [raw]
Subject: Re: BNEP and Raw Ethernet Sockets

Hello,

Is there any documentaion on bluetoothd?

regards,

2009/1/3 Luiz Augusto von Dentz <[email protected]>:
> Hi Breno,
>
>> 1) Build the network according to the BlueZ PAN Howto
>> (http://bluez.sourceforge.net/contrib/HOWTO-PAN), consisting of 2
>> nodes, then 3 nodes with bridging.
>
> This document is outdated, bluetoothd should be able to handle devices
> with PAN profile, pand is deprecated.
>
> --
> Luiz Augusto von Dentz
> Engenheiro de Computa??o
>



--
--
:: Breno Jacinto ::
:: breno - at - gprt.ufpe.br ::
:: FingerPrint ::
2F15 8A61 F566 E442 8581
E3C0 EFF4 E202 74B7 7484
:: Persistir no dif?cil ? a ?nica maneira de torn?-lo f?cil algum dia. ::

2009-01-03 15:26:51

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: BNEP and Raw Ethernet Sockets

Hi Breno,

> 1) Build the network according to the BlueZ PAN Howto
> (http://bluez.sourceforge.net/contrib/HOWTO-PAN), consisting of 2
> nodes, then 3 nodes with bridging.

This document is outdated, bluetoothd should be able to handle devices
with PAN profile, pand is deprecated.

--
Luiz Augusto von Dentz
Engenheiro de Computa??o