1 |
the_paya 10/04/20 23:06:53 |
2 |
|
3 |
Added: freebsd-sources-8.0-mf626.patch |
4 |
freebsd-sources-8.0-arpresolve_panic.patch |
5 |
Log: |
6 |
Fix a kernel panic in arpresolve, and add support for my 3g modem. |
7 |
(Portage version: 2.2_rc67/cvs/FreeBSD i386) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 sys-freebsd/freebsd-sources/files/freebsd-sources-8.0-mf626.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/files/freebsd-sources-8.0-mf626.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/files/freebsd-sources-8.0-mf626.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: freebsd-sources-8.0-mf626.patch |
16 |
=================================================================== |
17 |
Backport this 3g modem that I have. |
18 |
Given it's quite common, should be useful |
19 |
And I hate when I forget to patch the kernel after a re-emerge. |
20 |
|
21 |
--- sys/dev/usb/usbdevs.orig |
22 |
+++ sys/dev/usb/usbdevs |
23 |
@@ -2055,6 +2055,7 @@ |
24 |
product QUALCOMM2 CDMA_MSM 0x3196 CDMA Technologies MSM modem |
25 |
product QUALCOMMINC CDMA_MSM 0x0001 CDMA Technologies MSM modem |
26 |
product QUALCOMMINC ZTE_STOR 0x2000 USB ZTE Storage |
27 |
+product QUALCOMMINC MF626 0X0031 3G modem |
28 |
product QUALCOMMINC AC8700 0xfffe CDMA 1xEVDO USB modem |
29 |
|
30 |
/* Qtronix products */ |
31 |
--- sys/dev/usb/serial/u3g.c.orig |
32 |
+++ sys/dev/usb/serial/u3g.c |
33 |
@@ -184,6 +184,7 @@ |
34 |
/* OEM: Qualcomm, Inc. */ |
35 |
U3G_DEV(QUALCOMMINC, ZTE_STOR, U3GFL_SCSI_EJECT), |
36 |
U3G_DEV(QUALCOMMINC, CDMA_MSM, U3GFL_SCSI_EJECT), |
37 |
+ U3G_DEV(QUALCOMMINC, MF626, 0), |
38 |
/* OEM: Huawei */ |
39 |
U3G_DEV(HUAWEI, MOBILE, U3GFL_HUAWEI_INIT), |
40 |
U3G_DEV(HUAWEI, E180V, U3GFL_HUAWEI_INIT), |
41 |
|
42 |
|
43 |
|
44 |
1.1 sys-freebsd/freebsd-sources/files/freebsd-sources-8.0-arpresolve_panic.patch |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/files/freebsd-sources-8.0-arpresolve_panic.patch?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-freebsd/freebsd-sources/files/freebsd-sources-8.0-arpresolve_panic.patch?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: freebsd-sources-8.0-arpresolve_panic.patch |
50 |
=================================================================== |
51 |
This one (plus a misrule in my pf.conf) made my box crash at random after 6 |
52 |
to 48 hours of uptime. Thanks to an incoming icmp packet. |
53 |
|
54 |
Taken from: |
55 |
http://svn.freebsd.org/viewvc/base/head/sys/netinet/if_ether.c?r1=198418&r2=201416 |
56 |
--- head/sys/netinet/if_ether.c |
57 |
+++ head/sys/netinet/if_ether.c |
58 |
@@ -372,8 +372,8 @@ |
59 |
if (la->la_asked < V_arp_maxtries) |
60 |
error = EWOULDBLOCK; /* First request. */ |
61 |
else |
62 |
- error = |
63 |
- (rt0->rt_flags & RTF_GATEWAY) ? EHOSTUNREACH : EHOSTDOWN; |
64 |
+ error = rt0 != NULL && (rt0->rt_flags & RTF_GATEWAY) ? |
65 |
+ EHOSTUNREACH : EHOSTDOWN; |
66 |
|
67 |
if (renew) { |
68 |
LLE_ADDREF(la); |