Module Name: src
Committed By: christos
Date: Fri Nov 1 13:54:59 UTC 2019
Modified Files:
src/sys/netinet: tcp.h
Log Message:
Add comments to the tcp flags.
To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/netinet/tcp.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/netinet/tcp.h
diff -u src/sys/netinet/tcp.h:1.33 src/sys/netinet/tcp.h:1.34
--- src/sys/netinet/tcp.h:1.33 Tue Jan 10 15:32:27 2017
+++ src/sys/netinet/tcp.h Fri Nov 1 09:54:59 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp.h,v 1.33 2017/01/10 20:32:27 christos Exp $ */
+/* $NetBSD: tcp.h,v 1.34 2019/11/01 13:54:59 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@@ -61,14 +61,14 @@ struct tcphdr {
th_x2:4; /* (unused) */
#endif
uint8_t th_flags;
-#define TH_FIN 0x01
-#define TH_SYN 0x02
-#define TH_RST 0x04
-#define TH_PUSH 0x08
-#define TH_ACK 0x10
-#define TH_URG 0x20
-#define TH_ECE 0x40
-#define TH_CWR 0x80
+#define TH_FIN 0x01 /* Final: Set on the last segment */
+#define TH_SYN 0x02 /* Synchronization: New conn with dst port */
+#define TH_RST 0x04 /* Reset: Announce to peer conn terminated */
+#define TH_PUSH 0x08 /* Push: Immediately send, don't buffer seg */
+#define TH_ACK 0x10 /* Acknowledge: Part of connection establish */
+#define TH_URG 0x20 /* Urgent: send special marked segment now */
+#define TH_ECE 0x40 /* ECN Echo */
+#define TH_CWR 0x80 /* Congestion Window Reduced */
uint16_t th_win; /* window */
uint16_t th_sum; /* checksum */
uint16_t th_urp; /* urgent pointer */