mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Update TCPS_HAVERCVDFIN() macro to correctly include all states a connection
can be in after receiving a FIN. FWIW, NetBSD has this change for quite some time. This has been tested at Netflix and Limelight in production traffic. Reported by: Sam Kumar <samkumar99 at gmail.com> on transport@ Reviewed by: rrs MFC after: 4 weeks Sponsored by: Limelight Networks Differential Revision: https://reviews.freebsd.org/D7475
This commit is contained in:
parent
7df135c055
commit
e7106d6be2
1 changed files with 2 additions and 1 deletions
|
|
@ -73,7 +73,8 @@
|
|||
|
||||
#define TCPS_HAVERCVDSYN(s) ((s) >= TCPS_SYN_RECEIVED)
|
||||
#define TCPS_HAVEESTABLISHED(s) ((s) >= TCPS_ESTABLISHED)
|
||||
#define TCPS_HAVERCVDFIN(s) ((s) >= TCPS_TIME_WAIT)
|
||||
#define TCPS_HAVERCVDFIN(s) \
|
||||
((s) == TCPS_CLOSE_WAIT || ((s) >= TCPS_CLOSING && (s) != TCPS_FIN_WAIT_2))
|
||||
|
||||
#ifdef TCPOUTFLAGS
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue