linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-devel] Question concerning l2cap_parse_conf_req()
@ 2006-01-19 19:22 Martin Röhricht
  2006-01-27  9:36 ` Martin Röhricht
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Röhricht @ 2006-01-19 19:22 UTC (permalink / raw)
  To: bluez-devel

Hello together,

I'm partly rewriting the l2cap_parse_conf_req() function but there's
something that I do not quite understand and perhaps one from this list
has an idea.
In this mentioned function we use a while() loop that checks the length
of the remaining configuration request; inside the loop the length field
is continuously decreased. Now my question comes into play: Why do we
need this while loop? As we are already in a configuration request (code
0x04), I can't see anything in the current specification that we might
have more than one =C2=BBConfiguration Options=C2=AB within one Configurati=
on
Request packet. The Continuation flag (C) has a different meaning:
	=C2=BBWhen all configuration options cannot fit into a Configuration=20
	 Request with length that does not exceed the receiver's=20
	 MTUsig, the options shall be passed in multiple configuration=20
	 command packets.=C2=AB (page 48 of BLUETOOTH SPECIFICATION Version=20
	 2.0 + EDR [vol 4])
I see that we can have multiple commands in one L2CAP packet (see page
41), but if we parse only one Configuration Request that shouldn't
apply.

Any ideas?

Martin



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-01-31 10:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-19 19:22 [Bluez-devel] Question concerning l2cap_parse_conf_req() Martin Röhricht
2006-01-27  9:36 ` Martin Röhricht
2006-01-31 10:13   ` Martin Röhricht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).