Index: [Article Count Order] [Thread]

Date: Tue, 26 May 2009 10:36:31 +0800
From: Wei Yongjun <yjwei@cn.fujitsu.com>
Subject: [users:01205] [PATCH] ipsec: fix the TCP ACK packet definition in ipsec.p2/p2_HTR_TCP_common.def
To: users@tahi.org, Yukiyo Akisada <akisada@tahi.org>
Message-Id: <4A1B55AF.1020905@cn.fujitsu.com>
X-Mail-Count: 01205

The definition of TCP ACK packet is the same as SYN packet, which
is used by p2_HTR_E_TCP_tunnelPadding.seq. So the TCP connection
can not be established. The ACK packet name is:
'esptun_from_sg1_net1_ack_request_from_host1_net2_to_host0_net0'

This patch fixed the packet definition.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
---
 ipsec.p2/p2_HTR_TCP_common.def |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ipsec.p2/p2_HTR_TCP_common.def b/ipsec.p2/p2_HTR_TCP_common.def
index 03f63cd..d533f08 100644
--- a/ipsec.p2/p2_HTR_TCP_common.def
+++ b/ipsec.p2/p2_HTR_TCP_common.def
@@ -101,7 +101,8 @@ FEM_tcp6(
 		_SPORT(10000);
 		_DPORT(DESTINATION_PORT);
 		SequenceNumber       = SEQ;
-		SYNFlag              = 1;
+		AcknowledgmentNumber = ACK;
+		ACKFlag              = 1;
 //		Window               = 16384;
 //		option               = opt_syn;
 	},
-- 
1.5.3.8