148 |
queuelen = pcb->snd_queuelen; |
queuelen = pcb->snd_queuelen; |
149 |
if (queuelen >= TCP_SND_QUEUELEN) { |
if (queuelen >= TCP_SND_QUEUELEN) { |
150 |
LWIP_DEBUGF(TCP_OUTPUT_DEBUG | 3, ("tcp_enqueue: too long queue %u (max %u)\n", queuelen, TCP_SND_QUEUELEN)); |
LWIP_DEBUGF(TCP_OUTPUT_DEBUG | 3, ("tcp_enqueue: too long queue %u (max %u)\n", queuelen, TCP_SND_QUEUELEN)); |
151 |
goto memerr; |
TCP_STATS_INC(tcp.memerr); |
152 |
|
return ERR_MEM; |
153 |
} |
} |
154 |
if (queuelen != 0) { |
if (queuelen != 0) { |
155 |
LWIP_ASSERT("tcp_enqueue: pbufs on queue => at least one queue non-empty", |
LWIP_ASSERT("tcp_enqueue: pbufs on queue => at least one queue non-empty", |
353 |
} |
} |
354 |
|
|
355 |
return ERR_OK; |
return ERR_OK; |
356 |
memerr: |
memerr: |
357 |
TCP_STATS_INC(tcp.memerr); |
TCP_STATS_INC(tcp.memerr); |
358 |
|
|
359 |
if (queue != NULL) { |
if (queue != NULL) { |