X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/1e63a2f6903de9303931f3135db88932d4e5785a..b84bd2b4b55067d1eea6181e1a09043ac093d48c:/print-tcp.c diff --git a/print-tcp.c b/print-tcp.c index f9dfbb7c..308915bc 100644 --- a/print-tcp.c +++ b/print-tcp.c @@ -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);