tcp_listen() did not copy the pcb's prio

This commit is contained in:
goldsimon 2010-03-22 10:06:49 +00:00
parent 5d153ca1b3
commit 124ca0fed2
2 changed files with 6 additions and 2 deletions

View File

@ -169,6 +169,9 @@ HISTORY
++ Bugfixes:
2010-03-22: Simon Goldschmidt
* tcp.c: tcp_listen() did not copy the pcb's prio.
2010-03-19: Simon Goldschmidt
* snmp_msg.c: Fixed bug #29256: SNMP Trap address was not correctly set

View File

@ -484,6 +484,7 @@ tcp_listen_with_backlog(struct tcp_pcb *pcb, u8_t backlog)
lpcb->callback_arg = pcb->callback_arg;
lpcb->local_port = pcb->local_port;
lpcb->state = LISTEN;
lpcb->prio = pcb->prio;
lpcb->so_options = pcb->so_options;
lpcb->so_options |= SOF_ACCEPTCONN;
lpcb->ttl = pcb->ttl;
@ -1072,7 +1073,7 @@ tcp_kill_prio(u8_t prio)
LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_prio: killing oldest PCB %p (%"S32_F")\n",
(void *)inactive, inactivity));
tcp_abort(inactive);
}
}
}
/**
@ -1098,7 +1099,7 @@ tcp_kill_timewait(void)
LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_timewait: killing oldest TIME-WAIT PCB %p (%"S32_F")\n",
(void *)inactive, inactivity));
tcp_abort(inactive);
}
}
}
/**