summaryrefslogtreecommitdiffstats
path: root/lib/src/protocol/tcp.c
diff options
context:
space:
mode:
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;