From fe1a5f6ef20eb5fda2505832b24b6ea2f903e379 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Thu, 7 Jul 2016 11:56:53 -0400 Subject: Fix SYN sequence number. Finally protocol is Wireshark-clean. --- src/client.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/client.c b/src/client.c index c78f3b1..1c3fb4e 100644 --- a/src/client.c +++ b/src/client.c @@ -180,6 +180,7 @@ static int c_send_syn(struct o_c_sock *sock) { .th_flags = TH_SYN }; c_prep_s_addr(sock, &buf); + sock->seq_num++; uint16_t tsz = htons(sizeof(buf)); buf.th_sum = ~csum_partial(&buf.th_seq, 16, csum_partial(&tsz, sizeof(tsz), sock->csum_p)); -- cgit v1.2.3-70-g09d2