From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [Bluez-users] Mysterious problem with l2test on Coldfire 5282 From: Marcel Holtmann To: Jeff Sutherland Cc: BlueZ Mailing List In-Reply-To: <200402170924.31121.jeffs@fairwayacademy.org> References: <200402170924.31121.jeffs@fairwayacademy.org> Content-Type: text/plain Message-Id: <1077032602.2665.12.camel@pegasus> Mime-Version: 1.0 Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Date: Tue, 17 Feb 2004 16:43:23 +0100 Hi Jeff, > Using the l2test program on Motorola 5282 (uClinux) I have a strange behaviour > when using l2test -s from the Moto board. Using the -d (dump) mode to > receive packets from a PC running l2test I see what appears to be the packet > sequence number in the first 4 bytes of data (little endian), followed by a 2 > byte packet length, then data payload. When dumping data from the PC the > packet sequence number increments by 1 each time, which, I believe, is the > expected behaviour. However, when sending from the Moto board to the PC, the > packet sequence number increments by 4 each time. ????? L2test send looks > ok, the sequence number is just seq++; so something must be going on in hcid, > right? Or maybe it's dropping 3 out of 4 send packets for some reason. > Maybe something cocked up with the socket ops in l2test? ????? Debugging > pointers, please... maybe this code in send_mode() is the problem *(uint32_t *) buf = htobl(seq++); *(uint16_t *)(buf+4) = htobs(data_size); Replace it with *(uint32_t *) buf = htobl(seq); *(uint16_t *)(buf+4) = htobs(data_size); seq++; I am not a uClinux or compiler expert, so this is only guess. Regards Marcel ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users