From owner-freebsd-questions@FreeBSD.ORG Wed Apr 23 23:19:15 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 69A84F41 for ; Wed, 23 Apr 2014 23:19:15 +0000 (UTC) Received: from mail-lb0-x234.google.com (mail-lb0-x234.google.com [IPv6:2a00:1450:4010:c04::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E52FE1526 for ; Wed, 23 Apr 2014 23:19:14 +0000 (UTC) Received: by mail-lb0-f180.google.com with SMTP id 10so1386904lbg.11 for ; Wed, 23 Apr 2014 16:19:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=ANRC0Ldac3UyWQq+Rys+pk3NzLd0VY3I/W3RcnRS4Jk=; b=QqvrOEfaaqyahUzuILpINBayDNXOLxMlr/YIARVSapcY3Z7Cstdbs37yMvVOeMTBcn PIrb/eRAY227+Row72NDNOsGST79KexGOGVwP/fL4YdmPi+apSmrvbBqjkLmbzywwWCg TnHfIHTPIAIGS1aCzougEQt6U9vzsk7sQ6yFFNBijIKFBuJfZYUjmeO+5w4dblKHHPZK Kl/PEA32BhjnG1PRBIQ9BKPtXVlGnPHuxyAOg8c57OHr+CnbKqCudNJjxAV19hj/yAby 0M8UyJKm3A8SC/xiQ7jEdsmHJ/kjOYJLcIAvq52420mq9ZDxvqxmVAhUCZ67eZPyskI7 JEsA== X-Received: by 10.112.46.225 with SMTP id y1mr33254743lbm.12.1398295152954; Wed, 23 Apr 2014 16:19:12 -0700 (PDT) Received: from lazlar.no-ip.biz (c-5eeaaa26-74736162.cust.telenor.se. [94.234.170.38]) by mx.google.com with ESMTPSA id q6sm2198432lal.3.2014.04.23.16.19.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Apr 2014 16:19:12 -0700 (PDT) Message-ID: <53584A42.8040007@gmail.com> Date: Thu, 24 Apr 2014 01:18:26 +0200 From: Rolf Nielsen User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: urndis References: <201404232235.s3NMZ5ar082056@fire.js.berklix.net> In-Reply-To: <201404232235.s3NMZ5ar082056@fire.js.berklix.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "Julian H. Stacey" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2014 23:19:15 -0000 On 2014-04-24 00:35, Julian H. Stacey wrote: > Rolf, > > And I'm sorry for top posting. My mail app doesn't let me put my reply > > below the original message. > > Though your 2nd, 3rd & 5th posts broke FreeBSD.Org convention > http://www.freebsd.org/doc/en_US.ISO8859-1/articles/mailing-list-faq/etiquette.html > Your 4th post was _Correct_ > http://lists.freebsd.org/pipermail/freebsd-questions/2014-April/257695.html > Stick with method used Tue Apr 22 13:56:06 UTC 2014. > > questions@, > Rolf's last post corrected, & my addition appended: > > Rolf Nielsen wrote: >> 2014-04-22 20:25 GMT+02:00 Chris Whitehouse : >> >>> On 22/04/2014 12:07, Thomas Mueller wrote: >>> >>>> I need to use the USB tethering ability of my Samsung Galaxy S5, and the >>>>> handbook suggests using either cdce or urndis. I've tried cdce with no >>>>> luck, >>>>> and I'm not surprised because windows identifies the phone as RNDIS. >>>>> However, >>>>> I can't find any urndis anywhere on my system. Some pointers would be >>>>> greatly >>>>> appreciated. >>>>> >>>> >>>> Sincerely, >>>>> Rolf Nielsen >>>>> >>>> >>>> I remember seeing urndis as an option in NetBSD kernel config, but not >>>> FreeBSD. >>>> >>>> Here is the line from NetBSD-current i386 GENERIC kernel config: >>>> >>>> urndis* at uhub? port ? # Microsoft RNDIS specification >>>> >>>> I am not really familiar with this. >>>> >>> >>> urndis man page says it provides support for Ethernet access over Remote >>> NDIS. Is that what you want? Or do you want to use your phone's 3(/4)g >>> capability? >>> >>> I tether my phone to my laptop in the sense that I use it as a modem for >>> my laptop when I don't have access to wifi or ethernet. I connect the two >>> with a USB cable and use ppp. The laptop is then using the phone's 3g >>> connection. >>> >>> If that's what you want see the handbook: >>> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/userppp.html >>> >>> Sorry if that's off message. >>> >>> Chris > >> I want to use my phone's 3G/4G capability as an ethernet connection. And I >> got that working through urndis. I had an outdated prerelease of 10.0, and >> when I updated the sources and compiled, urndis was installed. When I >> connect my phone and enble USB tethering, the interface ue0 appears. > > > I was puzzled what urndis was, (what with top posting, mentions > of NetBSD, & no specification of paths in which version of src/ > ports/ lkms or whatever) but it sounded useful so searched: > > Urndis is not in Any FreeBSD release, including 9.2 or 10.0. > Urndis is just in 9-stable & current. > > /pub/FreeBSD/branches/-current/src/ > /pub/FreeBSD/branches/9.0-stable/src/ > share/man/man4/urndis.4 > sys/dev/usb/net/if_urndis.c > sys/dev/usb/net/if_urndisreg.h > sys/modules/usb/urndis > > This fails: > http://www.freebsd.org/cgi/man.cgi?query=urndis&apropos=0&sektion=4&manpath=FreeBSD+11-current&arch=default&format=html > > This works: > nroff -man /pub/FreeBSD/branches/-current/src/share/man/man4/urndis.4 > The first FreeBSD release to include it was FreeBSD 9.3 > But is misleading, there is not [yet] a 9.3 Release, only 9.2-RELEASE > > Cheers, > Julian > I'm on stable, not release. After updating the sources this is the output of uname -a FreeBSD lazlar.no-ip.biz 10.0-STABLE FreeBSD 10.0-STABLE #1 r264763: Tue Apr 22 22:56:11 CEST 2014 root@lazlar.no-ip.biz:/usr/obj/usr/src/sys/TRAPPER amd64 Before updating, I had something from mid January this year, and sometime between then and what I'm running now, urndis obviously has been included. Anyway, my problem is now solved. And once again I apologise for my previous top postings. I had no internet connection on my computer (I live in the middle of nowhere, and I have no landlines of any kind, neither phone nor internet, but strangely I have excellent 4G connection, hence the need for USB tethering), and was posting from my phone. The mail client I use on my phone wouldn't allow me to post properly. Rolf