mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-16 03:40:09 +00:00
define tcp_backlog_set() as dummy-define when backlog feature is disable
This commit is contained in:
parent
3a62a45bcd
commit
44e1a2d8e2
@ -1350,9 +1350,7 @@ lwip_netconn_do_listen(void *m)
|
||||
} else if (msg->conn->state == NETCONN_LISTEN) {
|
||||
/* already listening, allow updating of the backlog */
|
||||
msg->err = ERR_OK;
|
||||
#if TCP_LISTEN_BACKLOG
|
||||
tcp_backlog_set(msg->conn->pcb.tcp, msg->msg.lb.backlog);
|
||||
#endif /* TCP_LISTEN_BACKLOG */
|
||||
}
|
||||
} else {
|
||||
msg->err = ERR_ARG;
|
||||
|
@ -586,7 +586,7 @@ tcp_listen_with_backlog(struct tcp_pcb *pcb, u8_t backlog)
|
||||
#endif /* LWIP_CALLBACK_API */
|
||||
#if TCP_LISTEN_BACKLOG
|
||||
lpcb->accepts_pending = 0;
|
||||
tcp_backlog_set(lpcb, backlog);
|
||||
lpcb->backlog = backlog;
|
||||
#endif /* TCP_LISTEN_BACKLOG */
|
||||
TCP_REG(&tcp_listen_pcbs.pcbs, (struct tcp_pcb *)lpcb);
|
||||
return (struct tcp_pcb *)lpcb;
|
||||
|
@ -366,6 +366,7 @@ void tcp_err (struct tcp_pcb *pcb, tcp_err_fn err);
|
||||
#else /* TCP_LISTEN_BACKLOG */
|
||||
#define tcp_accepted(pcb) LWIP_ASSERT("pcb->state == LISTEN (called for wrong pcb?)", \
|
||||
(pcb)->state == LISTEN)
|
||||
#define tcp_backlog_set(pcb, new_backlog)
|
||||
#endif /* TCP_LISTEN_BACKLOG */
|
||||
|
||||
void tcp_recved (struct tcp_pcb *pcb, u16_t len);
|
||||
|
Loading…
x
Reference in New Issue
Block a user