Fixed LWIP_TCP_SACK_VALID and its usage

This commit is contained in:
goldsimon
2017-07-03 21:41:34 +02:00
parent 6796bcf7ad
commit 1a1c360f1d
2 changed files with 2 additions and 2 deletions

View File

@@ -246,7 +246,7 @@ struct tcp_pcb {
#if LWIP_TCP_SACK_OUT
/* SACK ranges to include in ACK packets (entry is invalid if left==right) */
struct tcp_sack_range rcv_sacks[LWIP_TCP_MAX_SACK_NUM];
#define LWIP_TCP_SACK_VALID(pcb, idx) ((pcb)->rcv_sacks[idx].left == (pcb)->rcv_sacks[idx].right)
#define LWIP_TCP_SACK_VALID(pcb, idx) ((pcb)->rcv_sacks[idx].left != (pcb)->rcv_sacks[idx].right)
#endif /* LWIP_TCP_SACK_OUT */
/* Retransmission timer. */