From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1O4MWt-0006XI-H4 for garchives@archives.gentoo.org; Tue, 20 Apr 2010 23:06:56 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DA36EE0AF8; Tue, 20 Apr 2010 23:06:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id AA076E0AF8 for ; Tue, 20 Apr 2010 23:06:54 +0000 (UTC) Received: from corvid.gentoo.org (corvid.gentoo.org [208.92.234.79]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 3F91B6525A for ; Tue, 20 Apr 2010 23:06:54 +0000 (UTC) Received: by corvid.gentoo.org (Postfix, from userid 2117) id 682602C049; Tue, 20 Apr 2010 23:06:53 +0000 (UTC) From: "Javier Villavicencio (the_paya)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, the_paya@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in sys-freebsd/freebsd-sources/files: freebsd-sources-8.0-mf626.patch freebsd-sources-8.0-arpresolve_panic.patch X-VCS-Repository: gentoo-x86 X-VCS-Files: freebsd-sources-8.0-mf626.patch freebsd-sources-8.0-arpresolve_panic.patch X-VCS-Directories: sys-freebsd/freebsd-sources/files X-VCS-Committer: the_paya X-VCS-Committer-Name: Javier Villavicencio Content-Type: text/plain; charset=utf8 Message-Id: <20100420230653.682602C049@corvid.gentoo.org> Date: Tue, 20 Apr 2010 23:06:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 94bb624b-88d7-4eba-9639-949968db673b X-Archives-Hash: d21119f3db79539d45807b88c6bc856d the_paya 10/04/20 23:06:53 Added: freebsd-sources-8.0-mf626.patch freebsd-sources-8.0-arpresolve_panic.patch Log: Fix a kernel panic in arpresolve, and add support for my 3g modem. (Portage version: 2.2_rc67/cvs/FreeBSD i386) Revision Changes Path 1.1 sys-freebsd/freebsd-sources/files/freebsd-sources-8.= 0-mf626.patch file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebs= d-sources/files/freebsd-sources-8.0-mf626.patch?rev=3D1.1&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebs= d-sources/files/freebsd-sources-8.0-mf626.patch?rev=3D1.1&content-type=3D= text/plain Index: freebsd-sources-8.0-mf626.patch =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Backport this 3g modem that I have. Given it's quite common, should be useful And I hate when I forget to patch the kernel after a re-emerge. --- sys/dev/usb/usbdevs.orig +++ sys/dev/usb/usbdevs @@ -2055,6 +2055,7 @@ product QUALCOMM2 CDMA_MSM 0x3196 CDMA Technologies MSM modem product QUALCOMMINC CDMA_MSM 0x0001 CDMA Technologies MSM modem product QUALCOMMINC ZTE_STOR 0x2000 USB ZTE Storage +product QUALCOMMINC MF626 0X0031 3G modem product QUALCOMMINC AC8700 0xfffe CDMA 1xEVDO USB modem =20 /* Qtronix products */ --- sys/dev/usb/serial/u3g.c.orig +++ sys/dev/usb/serial/u3g.c @@ -184,6 +184,7 @@ /* OEM: Qualcomm, Inc. */ U3G_DEV(QUALCOMMINC, ZTE_STOR, U3GFL_SCSI_EJECT), U3G_DEV(QUALCOMMINC, CDMA_MSM, U3GFL_SCSI_EJECT), + U3G_DEV(QUALCOMMINC, MF626, 0), /* OEM: Huawei */ U3G_DEV(HUAWEI, MOBILE, U3GFL_HUAWEI_INIT), U3G_DEV(HUAWEI, E180V, U3GFL_HUAWEI_INIT), 1.1 sys-freebsd/freebsd-sources/files/freebsd-sources-8.= 0-arpresolve_panic.patch file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebs= d-sources/files/freebsd-sources-8.0-arpresolve_panic.patch?rev=3D1.1&view= =3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebs= d-sources/files/freebsd-sources-8.0-arpresolve_panic.patch?rev=3D1.1&cont= ent-type=3Dtext/plain Index: freebsd-sources-8.0-arpresolve_panic.patch =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This one (plus a misrule in my pf.conf) made my box crash at random after= 6 to 48 hours of uptime. Thanks to an incoming icmp packet. Taken from: http://svn.freebsd.org/viewvc/base/head/sys/netinet/if_ether.c?r1=3D19841= 8&r2=3D201416 --- head/sys/netinet/if_ether.c +++ head/sys/netinet/if_ether.c @@ -372,8 +372,8 @@ if (la->la_asked < V_arp_maxtries) error =3D EWOULDBLOCK; /* First request. */ else - error =3D - (rt0->rt_flags & RTF_GATEWAY) ? EHOSTUNREACH : EHOSTDOWN; + error =3D rt0 !=3D NULL && (rt0->rt_flags & RTF_GATEWAY) ? + EHOSTUNREACH : EHOSTDOWN; =20 if (renew) { LLE_ADDREF(la);