From owner-freebsd-bluetooth@FreeBSD.ORG Thu May 14 17:05:31 2009 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8B19106564A for ; Thu, 14 May 2009 17:05:31 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29]) by mx1.freebsd.org (Postfix) with ESMTP id 720F78FC15 for ; Thu, 14 May 2009 17:05:31 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so786876yxb.13 for ; Thu, 14 May 2009 10:05:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=mSRm2THyYJCLMG8Q/96F6z2GGMBKyvDooqJq4qaE92k=; b=JDULlXwH5QQo1nwgoJnbatiX+HY1RzL4eT6QMjihlJEEHhHcZiKI1MBMZVprebkTLg 671A7eS5SEGyXWzlUzrg0rvZURPgiRwtehKhcahJXcNz3uju/86StqGjNEFgz7gNlknd guBHJzhEOri9O6LwBBF62dPMHPSFQebhIMbaM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=PPb1Jx3hogCT6XIozbXWHvh+ZL91wVmmwMmz01/0XcqAzWPUDOnT9yGsduefD9nBUf /4tFjC4SCwRtqI9zIIwt4DYwLktMVJ4OT+rNuGvqQLkDkpSQe0qh2gnxHtUEHYKhgG4q ndxd3lky16XQmFg9YCgAPgvsH1f8y2jlcoT6U= MIME-Version: 1.0 Received: by 10.90.106.3 with SMTP id e3mr1963143agc.54.1242320730482; Thu, 14 May 2009 10:05:30 -0700 (PDT) In-Reply-To: <200905141438.17380.doconnor@gsoft.com.au> References: <200905141438.17380.doconnor@gsoft.com.au> Date: Thu, 14 May 2009 10:05:30 -0700 Message-ID: From: Maksim Yevmenkin To: "Daniel O'Connor" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org Subject: Re: btpand example 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: Thu, 14 May 2009 17:05:32 -0000 Daniel, > I just got btpand working with my phone (Samsung Omnia i900 - WinMo 6.1 > based) and here's what I did.. cool! thank for reporting. > Note that unlike the NetBSD example '-d ubt0' or '-d ubt0hci' doesn't > work as it reports unknown host. I have 'me' in /etc/bluetooth/hosts, > but that is non-standard (and '-d local' doesn't work). could you please try this patch? Index: btpand.c =================================================================== --- btpand.c (revision 192109) +++ btpand.c (working copy) @@ -101,7 +101,7 @@ break; case 'd': /* local address */ - if (!bt_aton(optarg, &local_bdaddr)) { + if (!bt_devaddr(optarg, &local_bdaddr)) { struct hostent *he; if ((he = bt_gethostbyname(optarg)) == NULL) === > Also, I found the MTU by trial and error, 600 works for me, 650 does > not. I am guessing this is a bluetooth thing but I'm not sure.. If it > is would it be possible for btpand to set the MTU? sure :) however, like Iain said, it would be interesting to see what is going on. any chance we could get both hcidump (created with -w option) and tcpdump? could it be something that has to do with tcp mss fixup? thanks, max