mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
tcp: copy port to listening tcb chilren
This commit is contained in:
@@ -984,6 +984,7 @@ __attribute__((noreturn)) static void tcp_worker() {
|
|||||||
newtcb->rcvwindow = TCB_RINGBUFFER_SIZE;
|
newtcb->rcvwindow = TCB_RINGBUFFER_SIZE;
|
||||||
newtcb->rcvurgent = 0;
|
newtcb->rcvurgent = 0;
|
||||||
newtcb->irs = tcpheader->seq;
|
newtcb->irs = tcpheader->seq;
|
||||||
|
newtcb->port = tcb->port;
|
||||||
|
|
||||||
// add tcb to the connection table
|
// add tcb to the connection table
|
||||||
if (tcbset(newtcb, &key, false)) {
|
if (tcbset(newtcb, &key, false)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user