mirror of
https://github.com/rtbrick/bngblaster.git
synced 2024-05-06 15:54:57 +00:00
LWIP: copy TTL/TOS from listen socket
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user