Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Mar 2011 09:30:20 GMT
From:      Andrey Smagin <sam@dipinteractive.com>
To:        freebsd-net@FreeBSD.org
Subject:   Re: kern/155585: [tcp] [panic] tcp_output tcp_mtudisc loop until kernel panic
Message-ID:  <201103180930.p2I9UKtq024021@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/155585; it has been noted by GNATS.

From: Andrey Smagin <sam@dipinteractive.com>
To: bug-followup@FreeBSD.org, samspeed@mail.ru
Cc:  
Subject: Re: kern/155585: [tcp] [panic] tcp_output tcp_mtudisc loop until
 kernel panic
Date: Fri, 18 Mar 2011 12:08:24 +0300

   this patch solve my problem
 Index: sys/netinet/tcp_var.h
 ===================================================================
 --- sys/netinet/tcp_var.h       (revision 219727)
 +++ sys/netinet/tcp_var.h       (working copy)
 @@ -239,6 +239,7 @@
   #define        TF_ECN_SND_ECE  0x10000000      /* ECN ECE in queue */
   #define        TF_CONGRECOVERY 0x20000000      /* congestion recovery 
 mode */
   #define        TF_WASCRECOVERY 0x40000000      /* was in congestion 
 recovery */
 +#define        TF_WASMTUDISC   0x80000000      /* was in mtudiscovery */
 
   #define        IN_FASTRECOVERY(t_flags)        (t_flags & TF_FASTRECOVERY)
   #define        ENTER_FASTRECOVERY(t_flags)     t_flags |= TF_FASTRECOVERY
 Index: sys/netinet/tcp_output.c
 ===================================================================
 --- sys/netinet/tcp_output.c    (revision 219727)
 +++ sys/netinet/tcp_output.c    (working copy)
 @@ -1288,8 +1288,15 @@
                           */
                          if (tso)
                                  tp->t_flags &= ~TF_TSO;
 +
 +                       if ( tp->t_flags & TF_WASMTUDISC ) // if 
 EMSGSIZE after call tcp_mtudisc then return EHOSTUNREACH
 +                               return (EHOSTUNREACH);
 +
 +                       tp->t_flags |= TF_WASMTUDISC
                          tcp_mtudisc(tp->t_inpcb, 0);
 +                       tp->t_flags &= ~TF_WASMTUDISC;
                          return (0);
 +
                  case EHOSTDOWN:
                  case EHOSTUNREACH:
                  case ENETDOWN:
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103180930.p2I9UKtq024021>