aboutsummaryrefslogtreecommitdiffstats
path: root/lib/src/protocol/tcp.c
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2019-02-11 14:13:35 +0100
committerMauro Sardara <msardara@cisco.com>2019-02-11 14:13:35 +0100
commit6248a13f86d0f04051539321ae63c910cd533a0e (patch)
tree3c219a632e87c5017a89ef906efab22b913515a8 /lib/src/protocol/tcp.c
parentb98d1bb135b617bf28202d328c44ed7a6eff025c (diff)
[HICN-43] Fix AH_FLAG set during packet forging.
Change-Id: I6aa224b17e9e1ec30d6f7d263ddaf628f179a5f0 Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'lib/src/protocol/tcp.c')
-rw-r--r--lib/src/protocol/tcp.c2
1 files changed, 1 insertions, 1 deletions
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;