Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet Add comments to the tcp flags.



details:   https://anonhg.NetBSD.org/src/rev/5497586257bd
branches:  trunk
changeset: 966507:5497586257bd
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Nov 01 13:54:59 2019 +0000

description:
Add comments to the tcp flags.

diffstat:

 sys/netinet/tcp.h |  18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diffs (32 lines):

diff -r c3123c89e23a -r 5497586257bd sys/netinet/tcp.h
--- a/sys/netinet/tcp.h Fri Nov 01 13:30:02 2019 +0000
+++ b/sys/netinet/tcp.h Fri Nov 01 13:54:59 2019 +0000
@@ -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 @@
                  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 */



Home | Main Index | Thread Index | Old Index