mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-26 14:17:26 -04:00
tcp: Replace constants with #define macros
to record the state of SACK/FACK and DSACK for better readability and maintenance. Signed-off-by: Vijay Subramanian <subramanian.vijay@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
08f4fc9da9
commit
ab56222a32
4 changed files with 11 additions and 6 deletions
|
@ -238,6 +238,11 @@ struct tcp_sack_block {
|
|||
u32 end_seq;
|
||||
};
|
||||
|
||||
/*These are used to set the sack_ok field in struct tcp_options_received */
|
||||
#define TCP_SACK_SEEN (1 << 0) /*1 = peer is SACK capable, */
|
||||
#define TCP_FACK_ENABLED (1 << 1) /*1 = FACK is enabled locally*/
|
||||
#define TCP_DSACK_SEEN (1 << 2) /*1 = DSACK was received from peer*/
|
||||
|
||||
struct tcp_options_received {
|
||||
/* PAWS/RTTM data */
|
||||
long ts_recent_stamp;/* Time we stored ts_recent (for aging) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue