Return-Path: Subject: Re: [Bluez-devel] Re: Small fix for L2CAP MTU From: Stephen Crane To: bluez-devel@lists.sourceforge.net Cc: jim.oleary@rococosoft.com, marcel@holtmann.org In-Reply-To: <1117036775.30044.238.camel@pegasus> References: <1117032099.5854.56.camel@baroque.rococosoft.com> <1117036775.30044.238.camel@pegasus> Content-Type: multipart/mixed; boundary="=-V7ZS/HXKN0/1v5Ukkaml" Date: Thu, 26 May 2005 11:13:21 +0100 Message-Id: <1117102401.5854.75.camel@baroque.rococosoft.com> Mime-Version: 1.0 List-ID: --=-V7ZS/HXKN0/1v5Ukkaml Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi Marcel, I've attached the two dump files. Let me know if you need any more info. Thanks, Steve On Wed, 2005-05-25 at 17:59 +0200, Marcel Holtmann wrote: > Hi Steve, > > > I've attached a small change to the L2CAP layer which causes it to > > better adhere to a sender's choice of MTU. > > > > The background is that we have a test here where the client asks for an > > omtu of 50 and tries to send more than this to the server, which in turn > > checks that only 50 bytes were sent. > > > > With the current kernel code, the omtu is always returned as the default > > MTU (672) which causes our test to fail. > > I don't get it. Please show me the "hcidump -X -V" for both cases. With > and without the patch. > > Regards > > Marcel > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate > online with coworkers and clients while avoiding the high cost of travel and > communications. There is no equipment to buy and you can meet as often as > you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click > _______________________________________________ > Bluez-devel mailing list > Bluez-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bluez-devel -- Stephen Crane, Rococo Software Ltd. http://www.rococosoft.com steve.crane@rococosoft.com +353-1-6601315 (ext 209) --=-V7ZS/HXKN0/1v5Ukkaml Content-Disposition: attachment; filename=unpatched Content-Type: application/octet-stream; name=unpatched Content-Transfer-Encoding: base64 DQABABiflUKRCAAABAQKik4kmIAAAAE+AQsAAAAYn5VCxQgAAAEJBAeKTiSYgAABBwABABiflUJa NwAABA8EAAE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B5oJVC7v0EAAIoIAwACAABAAQBBABAAAAACAABAHmglULTcgUABBMFASgAAQAIAAEA eaCVQth2BQAEEwUBKAABABMAAQB5oJVCXYYFAAIoIA4ACgABAAUBBgBAAAAAAAApAAEAeaCVQmiK BQACKCAkACAAQAAGAAAAGzUFGjqHQzr//zUPCQAACQABCQACCQADCQAEADQAAAB5oJVC7osFAAIo IC8AKwBAAAcAAAAmACM1ITUfCQAACgABAAAJAAE1BRo6h0M6CQAENQg1BhkBAAkQAQAIAAEAeaCV Qv8SBgAEEwUBKAABABEAAQB5oJVCuXQGAAIoIAwACAABAAYDBABAAEAAEQAAAHmglUIidQYAAigg DAAIAAEABwMEAEAAQAARAAEAeaCVQuRiBwACKCAMAAgAAQACBAQAARBBABUAAAB5oJVCV2MHAAIo IBAADAABAAMECABAAEEAAAAAAAgAAQB5oJVCg3IHAAQTBQEoAAEACAABAHmglUJLggcABBMFASgA AQARAAEAeaCVQrmRBwACKCAMAAgAAQAEBQQAQAAAABMAAAB5oJVC5ZEHAAIoIA4ACgABAAUFBgBB AAAAAAARAAAAeaCVQu+RBwACKCAMAAgAAQAEAgQAQQAAAAgAAQB5oJVCCwMIAAQTBQEoAAEACAAB AHmglUIACwgABBMFASgAAQATAAEAeaCVQowaCAACKCAOAAoAAQAFAgYAQAAAAAAASQABAHmglUJy xggAAiggRABAAEAAAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKiss LS4vMDEAAAAAAAAAAAAAAAAAAAoAAQB5oJVCM84IAAIoIAUAAQBAADIKAAAAeaCVQnkaCQACKCAF AAEAQQBAEQAAAHmglULWIgkAAiggDAAIAAEABgMEAEEAQAAEAAAAeaCVQnAmCQABIwwACgABAHmg lUKPYgkABA4HASMMAAABPggAAQB5oJVCbOMJAAQTBQEoAAEAEQABAHmglUI/6wkAAiggDAAIAAEA BgYEAEAAQQARAAAAeaCVQpLrCQACKCAMAAgAAQAHBgQAQABBAAgAAQB5oJVCaO8JAAQTBQEoAAEA CAABAHmglULoAgoABBMFASgAAQARAAEAeaCVQqMGCgACKCAMAAgAAQAHAwQAQQBAAAcAAQB7oJVC EoQLAAQFBAAoABM= --=-V7ZS/HXKN0/1v5Ukkaml Content-Disposition: attachment; filename=patched Content-Type: application/octet-stream; name=patched Content-Transfer-Encoding: base64 BAAAAOWclUJxeAIAASMMAAoAAQDlnJVC84oCAAQOBwEjDAAAAT4NAAEA85yVQqAlCQAEBAo04CSY gAAEATIBCwAAAPOclUIUJgkAAQkEBzTgJJiAAAEHAAEA85yVQjpcCQAEDwQAAQkEDgABAPOclUKh ngkABAMLACgANOAkmIAAAQAIAAAA85yVQgmfCQABDQgEKAAPAAYAAQDznJVCd/gJAAQbAygABQkA AQDznJVCQQAKAAQOBgENCAAoAAgAAADznJVCYQAKAAEPBAQoABjMBwABAPOclULcOgoABA8EAAEP BAgAAQDznJVCpUIKAAQdBQAoABjMEQABAPOclUIp8gwAAiggDAAIAAEAAgEEAAEAlwAVAAAA85yV QgLzDAACKCAQAAwAAQADAQgAQACXAAAAAAAIAAEA85yVQhRIDQAEEwUBKAABABkAAQDznJVColcN AAIoIBQAEAABAAQCDABAAAAAAQJMBgIC//8TAAAA85yVQmxYDQACKCAOAAoAAQAFAgYAlwAAAAAA EQAAAPOclUJ9WA0AAiggDAAIAAEABAEEAJcAAAAIAAEA85yVQgnFDQAEEwUBKAABAAgAAQDznJVC xcwNAAQTBQEoAAEAEwABAPOclUIX4Q0AAiggDgAKAAEABQEGAEAAAAAAABYAAQDznJVCHegNAAIo IBEADQBAAAIAAAAINQMZEAIAFAAXAAAA85yVQhnpDQACKCASAA4AlwADAAAACQABAAEAAQAAAAgA AQDznJVCXF0OAAQTBQEoAAEAHAABAPOclULccA4AAiggFwATAEAABAABAA4AAQAABjw1BQoAAP// AEcAAADznJVCX3IOAAIoIEIAPgCXAAUAAQA5ADY1NAkAAAoAAQAACQABNQUaOodDOgkABDUINQYZ AQAJEAEJAAU1AxkQAgkBACUIQ2xpcERhdGEACAABAPOclUJ38g4ABBMFASgAAQAWAAEA85yVQkoF DwACKCARAA0AQAACAAIACDUDGREBABQAEwAAAPOclUKqGg8AAiggDgAKAJcAAwACAAUAAAAAAAgA AQD0nJVCwEsAAAQTBQEoAAEAFgABAPSclULYSwAAAiggEQANAEAAAgADAAg1AxkRAgAUABMAAAD0 nJVCIk0AAAIoIA4ACgCXAAMAAwAFAAAAAAAIAAEA9JyVQqBxAAAEEwUBKAABABYAAQD0nJVCbYIA AAIoIBEADQBAAAIABAAINQMZERYAFAATAAAA9JyVQtiDAAACKCAOAAoAlwADAAQABQAAAAAACAAB APSclUKnmgAABBMFASgAAQAWAAEA9JyVQqqvAAACKCARAA0AQAACAAUACDUDGREXABQAEwAAAPSc lULfswAAAiggDgAKAJcAAwAFAAUAAAAAAAgAAQD0nJVCCj0BAAQTBQEoAAEAFgABAPSclUInPQEA AiggEQANAEAAAgAGAAg1AxkRFQAUABMAAAD0nJVC2UEBAAIoIA4ACgCXAAMABgAFAAAAAAAIAAEA 9JyVQlW8AQAEEwUBKAABABYAAQD0nJVCerwBAAIoIBEADQBAAAIABwAINQMZEQMAFAATAAAA9JyV Qme/AQACKCAOAAoAlwADAAcABQAAAAAACAABAPSclUKOLAIABBMFASgAAQAWAAEA9JyVQvgzAgAC KCARAA0AQAACAAgACDUDGREFABQAEwAAAPSclULhOQIAAiggDgAKAJcAAwAIAAUAAAAAABYAAQD0 nJVC4LQCAAIoIBEADQBAAAIACQAINQMZEQYAFAATAAAA9JyVQku2AgACKCAOAAoAlwADAAkABQAA AAAACAABAPSclUL4vAIABBMFASgAAQAIAAEA9JyVQjjUAgAEEwUBKAABABYAAQD0nJVC3t8CAAIo IBEADQBAAAIACgAINQMZEREAFAATAAAA9JyVQsDuAgACKCAOAAoAlwADAAoABQAAAAAACAABAPSc lUKpTQMABBMFASgAAQAWAAEA9JyVQsVNAwACKCARAA0AQAACAAsACDUDGREEABQAEwAAAPSclUKS TwMAAiggDgAKAJcAAw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