]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-tcp.c
Update the "Error converting time" tests for packet times
[tcpdump] / print-tcp.c
index f9dfbb7cbc4739a5a9ea82ea70a4d702dfbc374c..308915bcb7e1610b19d53b10a41e45be3ecf90fe 100644 (file)
@@ -128,7 +128,7 @@ static const struct tok tcp_option_values[] = {
         { TCPOPT_TIMESTAMP, "TS" },
         { TCPOPT_CC, "cc" },
         { TCPOPT_CCNEW, "ccnew" },
-        { TCPOPT_CCECHO, "" },
+        { TCPOPT_CCECHO, "ccecho" },
         { TCPOPT_SIGNATURE, "md5" },
         { TCPOPT_SCPS, "scps" },
         { TCPOPT_UTO, "uto" },
@@ -445,7 +445,7 @@ tcp_print(netdissect_options *ndo,
                 hlen -= sizeof(*tp);
                 cp = (const u_char *)tp + sizeof(*tp);
                 ND_PRINT(", options [");
-                while (hlen > 0) {
+                while (hlen != 0) {
                         if (ch != '\0')
                                 ND_PRINT("%c", ch);
                         opt = GET_U_1(cp);