NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/43318: Recent -current asserts with USB activity



On Wed, May 19, 2010 at 06:32:26PM +0200, Manuel Bouyer wrote:
> Then can you try the attached patch, and report if the
> printf("syn dropped\n") does show up in the kernel log ?
> Also, it should fix the assert problem.

With the patch, this time

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--
Index: tcp_input.c
===================================================================
RCS file: /cvsroot/src/sys/netinet/tcp_input.c,v
retrieving revision 1.304
diff -u -p -u -r1.304 tcp_input.c
--- tcp_input.c 21 Apr 2010 20:40:16 -0000      1.304
+++ tcp_input.c 19 May 2010 16:31:16 -0000
@@ -4207,6 +4207,12 @@ syn_cache_add(struct sockaddr *src, stru
                syn_cache_insert(sc, tp);
        } else {
                s = splsoftnet();
+               printf("syn dropped\n");
+               /*
+                * syn_cache_put() will try to schedule the timer, so
+                * we need to initialize it
+                */
+               SYN_CACHE_TIMER_ARM(sc);
                syn_cache_put(sc);
                splx(s);
                TCP_STATINC(TCP_STAT_SC_DROPPED);


Home | Main Index | Thread Index | Old Index