]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Revert "Correct TCP option Kind value for TCP Auth and add SCPS-TP."
authorDenis Ovsienko <[email protected]>
Mon, 7 Nov 2016 23:43:17 +0000 (23:43 +0000)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 18 Jan 2017 08:16:35 +0000 (09:16 +0100)
This reverts commit 986b783f0574e50a9fc71c6937f0988b27f9529c.

print-tcp.c
tcp.h

index 35b18492f8cb018c08cd8e5cb4f5e1b62ca15a60..7a04a6ff70b1081a65b95d3ec4b77733fe5e0478 100644 (file)
@@ -127,9 +127,8 @@ static const struct tok tcp_option_values[] = {
         { TCPOPT_CCNEW, "ccnew" },
         { TCPOPT_CCECHO, "" },
         { TCPOPT_SIGNATURE, "md5" },
-        { TCPOPT_SCPS, "scps" },
-        { TCPOPT_UTO, "uto" },
         { TCPOPT_AUTH, "enhanced auth" },
+        { TCPOPT_UTO, "uto" },
         { TCPOPT_MPTCP, "mptcp" },
         { TCPOPT_FASTOPEN, "tfo" },
         { TCPOPT_EXPERIMENT2, "exp" },
@@ -538,12 +537,6 @@ tcp_print(netdissect_options *ndo,
 #endif
                                 break;
 
-                        case TCPOPT_SCPS:
-                                datalen = 2;
-                                LENCHECK(datalen);
-                                ND_PRINT((ndo, " cap %02x id %u", cp[0], cp[1]));
-                                break;
-
                         case TCPOPT_AUTH:
                                 ND_PRINT((ndo, " keyid %d", *cp++));
                                 datalen = len - 3;
diff --git a/tcp.h b/tcp.h
index 1084db9a2250dcd8ab631319b998b7d0c7c335ac..02df629594d511f07386d9eff569c1796a2bde5c 100644 (file)
--- a/tcp.h
+++ b/tcp.h
@@ -81,10 +81,9 @@ struct tcphdr {
 #define TCPOPT_SIGNATURE       19      /* Keyed MD5 (rfc2385) */
 #define    TCPOLEN_SIGNATURE           18
 #define TCP_SIGLEN 16                  /* length of an option 19 digest */
-#define TCPOPT_SCPS            20      /* SCPS-TP (CCSDS 714.0-B-2) */
+#define TCPOPT_AUTH             20      /* Enhanced AUTH option */
 #define        TCPOPT_UTO              28      /* tcp user timeout (rfc5482) */
 #define           TCPOLEN_UTO                  4
-#define TCPOPT_AUTH            29      /* Enhanced AUTH option (rfc5925) */
 #define        TCPOPT_MPTCP            30      /* MPTCP options */
 #define TCPOPT_FASTOPEN                34      /* TCP Fast Open (rfc7413) */
 #define TCPOPT_EXPERIMENT2     254     /* experimental headers (rfc4727) */