* [Bluez-users] l2test: Send failed. Invalid argument(22)
@ 2004-05-06 20:48 Przemek
2004-05-06 21:11 ` Marcel Holtmann
0 siblings, 1 reply; 3+ messages in thread
From: Przemek @ 2004-05-06 20:48 UTC (permalink / raw)
To: bluez-users
Hi!
I'm trying to test (almost) my implementation of L2CAP.
This is what i do:
$ ./l2test -s -N 20 -S 00:0A:3A:53:12:4A 00:80:37:16:30:8B
Unfortunetly, I get:
l2test[2445]: Connected [imtu 672, omtu 512, flush_to 65535]
l2test[2445]: Sending ...
l2test[2445]: Send failed. Invalid argument(22)
No data is send. Just after L2CAP connection is established my
module is receiving Disconnection Request packet.
Please, tell me, what does that "Invalid argument(22)" mean.
Best regards,
Przemek
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Bluez-users] l2test: Send failed. Invalid argument(22)
2004-05-06 20:48 [Bluez-users] l2test: Send failed. Invalid argument(22) Przemek
@ 2004-05-06 21:11 ` Marcel Holtmann
2004-05-06 22:13 ` Przemek
0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2004-05-06 21:11 UTC (permalink / raw)
To: aquamala; +Cc: BlueZ Mailing List
Hi Przemek,
> I'm trying to test (almost) my implementation of L2CAP.
> This is what i do:
>
> $ ./l2test -s -N 20 -S 00:0A:3A:53:12:4A 00:80:37:16:30:8B
>
> Unfortunetly, I get:
>
> l2test[2445]: Connected [imtu 672, omtu 512, flush_to 65535]
> l2test[2445]: Sending ...
> l2test[2445]: Send failed. Invalid argument(22)
>
> No data is send. Just after L2CAP connection is established my
> module is receiving Disconnection Request packet.
>
> Please, tell me, what does that "Invalid argument(22)" mean.
you are using BlueZ to test your own implementation of L2CAP. Sounds
nice, but you already got all you need. Run hcidump and see what is
going on the HCI level. If you are looking for the error code than check
errno and the L2CAP source code. From a quick view it looks like your
data is bigger than your MTU. L2CAP is sequential packet and not a
stream.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-05-06 22:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-06 20:48 [Bluez-users] l2test: Send failed. Invalid argument(22) Przemek
2004-05-06 21:11 ` Marcel Holtmann
2004-05-06 22:13 ` Przemek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox