mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 18:14:53 +00:00
tcp: map tcp_ack_now() directly to tcp_set_flags()
Also remove extra set of parenthesis in tcp_ack()
This commit is contained in:
parent
fed916b852
commit
902d393aef
@ -443,7 +443,7 @@ struct tcp_seg *tcp_seg_copy(struct tcp_seg *seg);
|
|||||||
#define tcp_ack(pcb) \
|
#define tcp_ack(pcb) \
|
||||||
do { \
|
do { \
|
||||||
if((pcb)->flags & TF_ACK_DELAY) { \
|
if((pcb)->flags & TF_ACK_DELAY) { \
|
||||||
tcp_clear_flags((pcb), TF_ACK_DELAY); \
|
tcp_clear_flags(pcb, TF_ACK_DELAY); \
|
||||||
(pcb)->flags |= TF_ACK_NOW; \
|
(pcb)->flags |= TF_ACK_NOW; \
|
||||||
} \
|
} \
|
||||||
else { \
|
else { \
|
||||||
@ -452,9 +452,7 @@ struct tcp_seg *tcp_seg_copy(struct tcp_seg *seg);
|
|||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define tcp_ack_now(pcb) \
|
#define tcp_ack_now(pcb) \
|
||||||
do { \
|
tcp_set_flags(pcb, TF_ACK_NOW)
|
||||||
(pcb)->flags |= TF_ACK_NOW; \
|
|
||||||
} while (0)
|
|
||||||
|
|
||||||
err_t tcp_send_fin(struct tcp_pcb *pcb);
|
err_t tcp_send_fin(struct tcp_pcb *pcb);
|
||||||
err_t tcp_enqueue_flags(struct tcp_pcb *pcb, u8_t flags);
|
err_t tcp_enqueue_flags(struct tcp_pcb *pcb, u8_t flags);
|
||||||
|
Loading…
Reference in New Issue
Block a user