From 6248a13f86d0f04051539321ae63c910cd533a0e Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Mon, 11 Feb 2019 14:13:35 +0100 Subject: [HICN-43] Fix AH_FLAG set during packet forging. Change-Id: I6aa224b17e9e1ec30d6f7d263ddaf628f179a5f0 Signed-off-by: Mauro Sardara --- lib/src/protocol/tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/src/protocol') diff --git a/lib/src/protocol/tcp.c b/lib/src/protocol/tcp.c index 92ded5c29..bbe25fc6d 100644 --- a/lib/src/protocol/tcp.c +++ b/lib/src/protocol/tcp.c @@ -58,7 +58,7 @@ tcp_init_packet_header (hicn_type_t type, hicn_protocol_t * h) TCP_DEFAULT_SYN << 1 | TCP_DEFAULT_FIN << 0,.window = htons (TCP_DEFAULT_WINDOW_SIZE),.csum = 0,.urg_ptr = 65000,}; - uint8_t ah_flag = type.l2 == IPPROTO_AH ? AH_FLAG : ~AH_FLAG; + uint8_t ah_flag = type.l2 == IPPROTO_AH ? AH_FLAG : 0; h->tcp.flags |= ah_flag; -- cgit 1.2.3-korg