Add flags for upcoming patches related to improved ECN handling.

No functional change.
Submitted by:		Richard Scheffenegger
Reviewed by:		rgrimes@, tuexen@
Differential Revision:	https://reviews.freebsd.org/D22429
This commit is contained in:
Michael Tuexen 2019-12-31 14:32:48 +00:00
parent 83a2839fb9
commit 493c98c6d2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=356227
2 changed files with 6 additions and 1 deletions

View File

@ -71,8 +71,9 @@ struct tcphdr {
#define TH_URG 0x20
#define TH_ECE 0x40
#define TH_CWR 0x80
#define TH_AE 0x100 /* maps into th_x2 */
#define TH_FLAGS (TH_FIN|TH_SYN|TH_RST|TH_PUSH|TH_ACK|TH_URG|TH_ECE|TH_CWR)
#define PRINT_TH_FLAGS "\20\1FIN\2SYN\3RST\4PUSH\5ACK\6URG\7ECE\10CWR"
#define PRINT_TH_FLAGS "\20\1FIN\2SYN\3RST\4PUSH\5ACK\6URG\7ECE\10CWR\11AE"
u_short th_win; /* window */
u_short th_sum; /* checksum */

View File

@ -90,6 +90,10 @@ struct syncache {
#define SCF_SIGNATURE 0x20 /* send MD5 digests */
#define SCF_SACK 0x80 /* send SACK option */
#define SCF_ECN 0x100 /* send ECN setup packet */
#define SCF_ACE_N 0x200 /* send ACE non-ECT setup */
#define SCF_ACE_0 0x400 /* send ACE ECT0 setup */
#define SCF_ACE_1 0x800 /* send ACE ECT1 setup */
#define SCF_ACE_CE 0x1000 /* send ACE CE setup */
struct syncache_head {
struct mtx sch_mtx;