aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>1999-04-07 22:22:06 +0000
committerJulian Elischer <julian@FreeBSD.org>1999-04-07 22:22:06 +0000
commit29089b519d96d0ec98b476d3130df56c7f88ca95 (patch)
tree275c6b84a1d0248daccf323d3d5080b81879d972 /sys/netinet
parentc0bd94a75d5c8060af52caefe3162aa752d5f703 (diff)
downloadsrc-29089b519d96d0ec98b476d3130df56c7f88ca95.tar.gz
src-29089b519d96d0ec98b476d3130df56c7f88ca95.zip
Two cosmetic changes, one a typo and the other, a clarification.
Notes
Notes: svn path=/head/; revision=45439
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/tcp_fsm.h18
-rw-r--r--sys/netinet/tcp_output.c4
2 files changed, 15 insertions, 7 deletions
diff --git a/sys/netinet/tcp_fsm.h b/sys/netinet/tcp_fsm.h
index 804a55e1a6d8..4a535564dc36 100644
--- a/sys/netinet/tcp_fsm.h
+++ b/sys/netinet/tcp_fsm.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_fsm.h 8.1 (Berkeley) 6/10/93
- * $Id: tcp_fsm.h,v 1.9 1997/02/22 09:41:39 peter Exp $
+ * $Id: tcp_fsm.h,v 1.10 1997/08/16 19:15:38 wollman Exp $
*/
#ifndef _NETINET_TCP_FSM_H_
@@ -71,10 +71,18 @@
* if all data queued for output is included in the segment.
*/
static u_char tcp_outflags[TCP_NSTATES] = {
- TH_RST|TH_ACK, 0, TH_SYN, TH_SYN|TH_ACK,
- TH_ACK, TH_ACK,
- TH_FIN|TH_ACK, TH_ACK, TH_FIN|TH_ACK, TH_ACK, TH_ACK,
-};
+ TH_RST|TH_ACK, /* 0, CLOSED */
+ 0, /* 1, LISTEN */
+ TH_SYN, /* 2, SYN_SENT */
+ TH_SYN|TH_ACK, /* 3, SYN_RECEIVED */
+ TH_ACK, /* 4, ESTABLISHED */
+ TH_ACK, /* 5, CLOSE_WAIT */
+ TH_FIN|TH_ACK, /* 6, FIN_WAIT_1 */
+ TH_ACK, /* 7, CLOSING */
+ TH_FIN|TH_ACK, /* 8, LAST_ACK */
+ TH_ACK, /* 9, FIN_WAIT_2 */
+ TH_ACK, /* 10, TIME_WAIT */
+};
#endif
#ifdef KPROF
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
index 36f431ac6182..ddf4e4efa166 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_output.c 8.4 (Berkeley) 5/24/95
- * $Id: tcp_output.c,v 1.31 1998/07/13 11:53:59 bde Exp $
+ * $Id: tcp_output.c,v 1.32 1999/01/20 17:31:59 fenner Exp $
*/
#include "opt_tcpdebug.h"
@@ -128,7 +128,7 @@ again:
* clear the FIN bit. Usually this would
* happen below when it realizes that we
* aren't sending all the data. However,
- * if we have exactly 1 byte of unset data,
+ * if we have exactly 1 byte of unsent data,
* then it won't clear the FIN bit below,
* and if we are in persist state, we wind
* up sending the packet without recording