summaryrefslogtreecommitdiff
path: root/src/user/app/netstack/tcp.c
diff options
context:
space:
mode:
authordzwdz2022-08-24 12:31:20 +0200
committerdzwdz2022-08-24 12:31:20 +0200
commit039363ede4b868c8ea5cedce89c16123f91b2c05 (patch)
treefbbc4348a874184c0f31fe618309197edb9ce84f /src/user/app/netstack/tcp.c
parent9201820097ef333e967f72450dc18ea727c30e2e (diff)
user/netstack: fix the sequence number when connecting
Diffstat (limited to 'src/user/app/netstack/tcp.c')
-rw-r--r--src/user/app/netstack/tcp.c1
1 files changed, 1 insertions, 0 deletions
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) {