LWIP: copy TTL/TOS from listen socket

This commit is contained in:
Christian Giese
2023-08-10 11:06:43 +00:00
parent c9ae05ad79
commit 5cf925dba2
+4
View File
@@ -677,6 +677,10 @@ tcp_listen_input(struct tcp_pcb_listen *pcb)
ip_addr_copy(npcb->remote_ip, *ip_current_src_addr());
npcb->local_port = pcb->local_port;
npcb->remote_port = tcphdr->src;
if(pcb->ttl) {
npcb->ttl = pcb->ttl;
}
npcb->tos = pcb->tos;
npcb->state = SYN_RCVD;
npcb->rcv_nxt = seqno + 1;
npcb->rcv_ann_right_edge = npcb->rcv_nxt;