From owner-freebsd-bluetooth@FreeBSD.ORG Wed Apr 6 21:33:21 2005 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCE2A16A4CE for ; Wed, 6 Apr 2005 21:33:21 +0000 (GMT) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4162C43D4C for ; Wed, 6 Apr 2005 21:33:21 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate1b.savvis.net (Postfix) with ESMTP id 9ECFC3BF00; Wed, 6 Apr 2005 16:33:20 -0500 (CDT) Received: from mailgate1b.savvis.net ([127.0.0.1]) by localhost (mailgate1b.savvis.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29502-01-96; Wed, 6 Apr 2005 16:33:20 -0500 (CDT) Received: from out002.email.savvis.net (out002.apptix.savvis.net [216.91.32.45]) by mailgate1b.savvis.net (Postfix) with ESMTP id 6AB8C3BE59; Wed, 6 Apr 2005 16:33:20 -0500 (CDT) Received: from s228130hz1ew031.apptix-01.savvis.net ([10.146.4.28]) by out002.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Wed, 6 Apr 2005 16:33:11 -0500 Received: from [10.254.186.111] ([66.35.239.94]) by s228130hz1ew031.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Wed, 6 Apr 2005 16:33:12 -0500 Message-ID: <4254558C.1020708@savvis.net> Date: Wed, 06 Apr 2005 14:33:00 -0700 From: Maksim Yevmenkin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040822 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-bluetooth@freebsd.org Content-Type: multipart/mixed; boundary="------------040300090805040104050607" X-OriginalArrivalTime: 06 Apr 2005 21:33:12.0871 (UTC) FILETIME=[3C554370:01C53AF0] X-Virus-Scanned: amavisd-new at savvis.net Subject: Recent bluetooth problems X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Apr 2005 21:33:21 -0000 This is a multi-part message in MIME format. --------------040300090805040104050607 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Dear Bluetooth Users, recently i have received few email that describe problems with rfcomm_pppd(8), gammu and gnokki. it turns out there was a bug in my code. rfcomm protocol was incorrectly marked as PR_ATOMIC (exchange atomic messages only). the problem was that any data left (after a read(2) call) in the rfcomm socket buffer were incorrectly discarded. the attached patch was committed to -current. i have verified that it fixes gnokii problem, but i'm interested to know if it fixes other problems as well. please try it and let me know if you still have problems. thanks, max --------------040300090805040104050607 Content-Type: text/plain; name="ng_btsocket.c.diff.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ng_btsocket.c.diff.txt" =================================================================== RCS file: /usr/local/www/cvsroot/FreeBSD/src/sys/netgraph/bluetooth/socket/ng_btsocket.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -p -r1.10 -r1.11 --- src/sys/netgraph/bluetooth/socket/ng_btsocket.c 2005/01/07 01:45:44 1.10 +++ src/sys/netgraph/bluetooth/socket/ng_btsocket.c 2005/04/06 20:54:05 1.11 @@ -28,7 +28,7 @@ * SUCH DAMAGE. * * $Id: ng_btsocket.c,v 1.4 2003/09/14 23:29:06 max Exp $ - * $FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/sys/netgraph/bluetooth/socket/ng_btsocket.c,v 1.10 2005/01/07 01:45:44 imp Exp $ + * $FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/sys/netgraph/bluetooth/socket/ng_btsocket.c,v 1.11 2005/04/06 20:54:05 emax Exp $ */ #include @@ -182,7 +182,7 @@ static struct protosw ng_btsocket_proto SOCK_STREAM, /* protocol type */ &ng_btsocket_domain, /* backpointer to domain */ BLUETOOTH_PROTO_RFCOMM, /* protocol */ - PR_ATOMIC | PR_CONNREQUIRED, /* flags */ + PR_CONNREQUIRED, /* flags */ NULL, NULL, NULL, /* input, output, ctlinput */ ng_btsocket_rfcomm_ctloutput, /* ctloutput */ NULL, /* ousrreq() */ --------------040300090805040104050607--