patch #6865: use so_options SOF_REUSEADDR instead of flags TF_REUSEADDR (which has ben removed again)

This commit is contained in:
goldsimon
2010-02-12 16:32:31 +00:00
parent bd3f86e505
commit 8768e4488a
3 changed files with 3 additions and 4 deletions

View File

@@ -319,7 +319,7 @@ tcp_bind(struct tcp_pcb *pcb, ip_addr_t *ipaddr, u16_t port)
}
/* Unless the REUSEADDR flag is set,
* we have to check the pcbs in TIME-WAIT state, also: */
if ((pcb->flags & TF_REUSEADDR) == 0) {
if ((pcb->so_options & SOF_REUSEADDR) == 0) {
for(cpcb = tcp_tw_pcbs; cpcb != NULL; cpcb = cpcb->next) {
if (cpcb->local_port == port) {
if (ip_addr_isany(&(cpcb->local_ip)) ||