From owner-freebsd-bluetooth@FreeBSD.ORG Tue Mar 14 19:21:13 2006 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org 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 0B5F716A41F for ; Tue, 14 Mar 2006 19:21:13 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from mail11.svc.cra.dublin.eircom.net (mail11.svc.cra.dublin.eircom.net [159.134.118.27]) by mx1.FreeBSD.org (Postfix) with SMTP id 0E71F43D49 for ; Tue, 14 Mar 2006 19:21:11 +0000 (GMT) (envelope-from plunky@rya-online.net) Received: (qmail 57138 messnum 11073921 invoked from network[83.70.176.191/unknown]); 14 Mar 2006 19:21:09 -0000 Received: from unknown (HELO rya-online.net) (83.70.176.191) by mail11.svc.cra.dublin.eircom.net (qp 57138) with SMTP; 14 Mar 2006 19:21:09 -0000 Received: (nullmailer pid 4396 invoked by uid 1000); Tue, 14 Mar 2006 19:20:14 -0000 Date: Tue, 14 Mar 2006 19:20:14 +0000 (GMT) To: Maksim Yevmenkin In-Reply-To: <44170ADD.3080706@savvis.net> References: <1141918855.418446.1437.nullmailer@galant.ukfsn.org> <44107678.1080206@savvis.net> <1142195365.759631.5369.nullmailer@galant.ukfsn.org> <44160BE9.9020306@savvis.net> <1142325762.357474.659.nullmailer@galant.ukfsn.org> <44170ADD.3080706@savvis.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Message-Id: <1142364014.786820.1535.nullmailer@galant.ukfsn.org> From: Iain Hibbert Cc: freebsd-bluetooth@freebsd.org Subject: Re: config files X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Mar 2006 19:21:13 -0000 On Tue, 14 Mar 2006, Maksim Yevmenkin wrote: > > sa.l2cap_psm = htole16(NG_L2CAP_PSM_SDP); > > > > which seems wrong? (will work ok on little endian machine) > > actually, no. i think the problem is with bthidd(8) (and others, i.e. > sdpd(8)). bluetooth byte order is le16. so, l2cap_psm field in sockaddr_l2cap > should always be in le16 byte order. > > thanks for catching this! Yes, in the packet, psm is le16 but in the sockaddr it should be host order, surely? It makes no sense to preserve byte ordering in a channel number.. > > + sas.sa_handler = sighup; > > this is obviously a typo. it should be "sa.sa_handler = sighup;". otherwise it > wont compile. did you sent the patch before you have actually tried it? Whoops, the version I have consists of a some other changes not relevant to FreeBSD (wscons stuff) and so to make that patch, I had to do a bit of cut and paste (and, I can't compile the unchanged version).. but it is working for me with no strange effects that I can detect. regards, iain