summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Villavicencio <the_paya@gentoo.org>2010-04-20 23:06:53 +0000
committerJavier Villavicencio <the_paya@gentoo.org>2010-04-20 23:06:53 +0000
commit685eef77d85a0f972289454f96ab858f24eb3bcb (patch)
treebc2b3d107d358d49d1d5c82285103415347875f7 /sys-freebsd/freebsd-sources/files
parentBug #316427: upstream changes to makefiles caused some libraries to not be pr... (diff)
downloadhistorical-685eef77d85a0f972289454f96ab858f24eb3bcb.tar.gz
historical-685eef77d85a0f972289454f96ab858f24eb3bcb.tar.bz2
historical-685eef77d85a0f972289454f96ab858f24eb3bcb.zip
Fix a kernel panic in arpresolve, and add support for my 3g modem.
Package-Manager: portage-2.2_rc67/cvs/FreeBSD i386
Diffstat (limited to 'sys-freebsd/freebsd-sources/files')
-rw-r--r--sys-freebsd/freebsd-sources/files/freebsd-sources-8.0-arpresolve_panic.patch18
-rw-r--r--sys-freebsd/freebsd-sources/files/freebsd-sources-8.0-mf626.patch24
2 files changed, 42 insertions, 0 deletions
diff --git a/sys-freebsd/freebsd-sources/files/freebsd-sources-8.0-arpresolve_panic.patch b/sys-freebsd/freebsd-sources/files/freebsd-sources-8.0-arpresolve_panic.patch
new file mode 100644
index 000000000000..c624532d8c93
--- /dev/null
+++ b/sys-freebsd/freebsd-sources/files/freebsd-sources-8.0-arpresolve_panic.patch
@@ -0,0 +1,18 @@
+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=198418&r2=201416
+--- head/sys/netinet/if_ether.c
++++ head/sys/netinet/if_ether.c
+@@ -372,8 +372,8 @@
+ if (la->la_asked < V_arp_maxtries)
+ error = EWOULDBLOCK; /* First request. */
+ else
+- error =
+- (rt0->rt_flags & RTF_GATEWAY) ? EHOSTUNREACH : EHOSTDOWN;
++ error = rt0 != NULL && (rt0->rt_flags & RTF_GATEWAY) ?
++ EHOSTUNREACH : EHOSTDOWN;
+
+ if (renew) {
+ LLE_ADDREF(la);
diff --git a/sys-freebsd/freebsd-sources/files/freebsd-sources-8.0-mf626.patch b/sys-freebsd/freebsd-sources/files/freebsd-sources-8.0-mf626.patch
new file mode 100644
index 000000000000..9121c0a819f3
--- /dev/null
+++ b/sys-freebsd/freebsd-sources/files/freebsd-sources-8.0-mf626.patch
@@ -0,0 +1,24 @@
+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
+
+ /* 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),