diff options
author | Vijay Subramanian <subramanian.vijay@gmail.com> | 2011-12-20 08:23:24 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-21 01:03:23 -0500 |
commit | ab56222a32b9dbaae19c1d37f07b0ac4fc3c27ec (patch) | |
tree | ce5eff7879a1d80c419835171de13e52c24afdfb /include/linux | |
parent | 08f4fc9da9a04d59f5c937e06e375158abb68206 (diff) |
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>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/tcp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/tcp.h b/include/linux/tcp.h index 7f59ee946983..46a85c9e1f25 100644 --- a/include/linux/tcp.h +++ b/include/linux/tcp.h | |||
@@ -238,6 +238,11 @@ struct tcp_sack_block { | |||
238 | u32 end_seq; | 238 | u32 end_seq; |
239 | }; | 239 | }; |
240 | 240 | ||
241 | /*These are used to set the sack_ok field in struct tcp_options_received */ | ||
242 | #define TCP_SACK_SEEN (1 << 0) /*1 = peer is SACK capable, */ | ||
243 | #define TCP_FACK_ENABLED (1 << 1) /*1 = FACK is enabled locally*/ | ||
244 | #define TCP_DSACK_SEEN (1 << 2) /*1 = DSACK was received from peer*/ | ||
245 | |||
241 | struct tcp_options_received { | 246 | struct tcp_options_received { |
242 | /* PAWS/RTTM data */ | 247 | /* PAWS/RTTM data */ |
243 | long ts_recent_stamp;/* Time we stored ts_recent (for aging) */ | 248 | long ts_recent_stamp;/* Time we stored ts_recent (for aging) */ |