From owner-freebsd-usb@FreeBSD.ORG Sat Jul 31 13:10:03 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B310F1065674 for ; Sat, 31 Jul 2010 13:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A32908FC0C for ; Sat, 31 Jul 2010 13:10:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o6VDA3vC082888 for ; Sat, 31 Jul 2010 13:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o6VDA3S6082887; Sat, 31 Jul 2010 13:10:03 GMT (envelope-from gnats) Date: Sat, 31 Jul 2010 13:10:03 GMT Message-Id: <201007311310.o6VDA3S6082887@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Fredrik Lindberg Cc: Subject: Re: usb/149039: [uhso] Binding problem with uhso X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Fredrik Lindberg List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Jul 2010 13:10:03 -0000 The following reply was made to PR usb/149039; it has been noted by GNATS. From: Fredrik Lindberg To: bug-followup@FreeBSD.org, pilzableiter@web.de Cc: Hans Petter Selasky Subject: Re: usb/149039: [uhso] Binding problem with uhso Date: Sat, 31 Jul 2010 15:00:07 +0200 This is a multi-part message in MIME format. --------------060404010006010801030805 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I apparently missed some interface flags (that really doesn't make sense for this device, it's configured with a /32 mask so broadcast etc can only be to itself) that the network stack wants to work properly. With the following patch I'm able bind ssh etc and able to connect to the machine through it. The patch is for -current so I'm not sure if it applies cleanly on 8-release/stable, but it should be trivial to merge it manually if it doesn't apply. Fredrik Lindberg --------------060404010006010801030805 Content-Type: text/plain; name="uhso.c-binding.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="uhso.c-binding.patch" Index: sys/dev/usb/net/uhso.c =================================================================== --- sys/dev/usb/net/uhso.c (revision 210676) +++ sys/dev/usb/net/uhso.c (working copy) @@ -1561,7 +1561,7 @@ ifp->if_init = uhso_if_init; ifp->if_start = uhso_if_start; ifp->if_output = uhso_if_output; - ifp->if_flags = 0; + ifp->if_flags = IFF_BROADCAST | IFF_MULTICAST | IFF_NOARP; ifp->if_softc = sc; IFQ_SET_MAXLEN(&ifp->if_snd, ifqmaxlen); ifp->if_snd.ifq_drv_maxlen = ifqmaxlen; --------------060404010006010801030805--