Re: [Bluez-devel] Zero length L2CAP packets

Marcel Holtmann
2005-02-22T00:17:08Z

Hi Moritz,

> I just tried writing a 0-length packet on my open L2CAP Connection and
> I cannot see anything happening with hcidump. The remote end is a Mac.
> But I guess that I should see anything regardless of the remote end.
> 1-byte packets and more get transferred correctly but
>
> write (fd, "foo", 0);
>
> on my open L2CAP Descriptor fd does not give any reaction in hcidump.
>
> my version of bluez is libbluetooth1 2.11-1

update the library and utils and also the kernel. Maybe you need to use
send() for sending 0 byte payload, because this is what is used in the
l2test program.

Regards

Marcel