Lines Matching refs:err
172 err_t err;
208 err = ERR_OK;
216 err = ERR_OK;
222 err = ERR_OK;
229 err = tcp_send_fin(pcb);
230 if (err == ERR_OK) {
236 err = tcp_send_fin(pcb);
237 if (err == ERR_OK) {
243 err = tcp_send_fin(pcb);
244 if (err == ERR_OK) {
251 err = ERR_OK;
256 if (pcb != NULL && err == ERR_OK) {
267 return err;
494 tcp_accept_null(void *arg, struct tcp_pcb *pcb, err_t err)
498 LWIP_UNUSED_ARG(err);
794 err_t err;
796 err = ERR_OK;
989 TCP_EVENT_POLL(prev, err);
993 /* if err == ERR_ABRT, 'prev' is already deallocated */
994 if (err == ERR_OK) {
1087 err_t err;
1095 TCP_EVENT_RECV(pcb, refused_data, ERR_OK, err);
1096 if (err == ERR_OK) {
1104 TCP_EVENT_CLOSED(pcb, err);
1105 if (err == ERR_ABRT) {
1109 } else if (err == ERR_ABRT) {
1110 /* if err == ERR_ABRT, 'pcb' is already deallocated */
1197 tcp_recv_null(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err)
1203 } else if (err == ERR_OK) {
1297 /* adjust err stats: memp_malloc failed twice before */
1298 MEMP_STATS_DEC(err, MEMP_TCP_PCB);
1302 /* adjust err stats: timewait PCB was freed above */
1303 MEMP_STATS_DEC(err, MEMP_TCP_PCB);
1416 * @param pcb tcp_pcb to set the err callback
1417 * @param err callback function to call for this pcb when a fatal error
1421 tcp_err(struct tcp_pcb *pcb, tcp_err_fn err)
1423 LWIP_ASSERT("invalid socket state for err callback", pcb->state != LISTEN);
1424 pcb->errf = err;