[VPP-710] tcp TCP_TIMER_ESTABLISH timeout_handler occur segment fault 48/6448/2
authorflyingeagle23 <wang.hui56@zte.com.cn>
Wed, 26 Apr 2017 12:06:52 +0000 (20:06 +0800)
committerFlorin Coras <florin.coras@gmail.com>
Thu, 27 Apr 2017 07:30:17 +0000 (07:30 +0000)
Change-Id: Ie43b8f1c91600d44dff67e9348fb2fe83efc60c2
Signed-off-by: flyingeagle23 <wang.hui56@zte.com.cn>
src/vnet/tcp/tcp_debug.h [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index eaca672..ecbf788
@@ -337,7 +337,8 @@ typedef enum _tcp_dbg_evt
 #define TCP_EVT_TIMER_POP_HANDLER(_tc_index, _timer_id, ...)            \
 {                                                                      \
   tcp_connection_t *_tc;                                               \
-  if (_timer_id == TCP_TIMER_RETRANSMIT_SYN)                                   \
+  if (_timer_id == TCP_TIMER_RETRANSMIT_SYN                            \
+    || _timer_id == TCP_TIMER_ESTABLISH)                               \
     {                                                                  \
       _tc = tcp_half_open_connection_get (_tc_index);                  \
     }                                                                  \