From 039363ede4b868c8ea5cedce89c16123f91b2c05 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 24 Aug 2022 12:31:20 +0200 Subject: user/netstack: fix the sequence number when connecting --- src/user/app/netstack/tcp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/user/app/netstack/tcp.c b/src/user/app/netstack/tcp.c index 9e6e3bb..2f13a31 100644 --- a/src/user/app/netstack/tcp.c +++ b/src/user/app/netstack/tcp.c @@ -134,6 +134,7 @@ struct tcp_conn *tcpc_new( conns_append(c); tcpc_sendraw(c, FlagSYN, NULL, 0); + c->lseq++; return c; } size_t tcpc_tryread(struct tcp_conn *c, void *buf, size_t len) { -- cgit v1.2.3