]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-tcp.c
WHOIS: Add its own printer source file and printer function
[tcpdump] / print-tcp.c
index 0c250a07491d86fa62042a9ef49b480ab3c6b323..86b70511e63d2ee1808b507f5032b1db06f2d638 100644 (file)
@@ -753,8 +753,7 @@ tcp_print(netdissect_options *ndo,
                 smtp_print(ndo, bp, length);
         } else if (IS_SRC_OR_DST_PORT(WHOIS_PORT)) {
                 ND_PRINT(": ");
-                ndo->ndo_protocol = "whois";   /* needed by txtproto_print() */
-                txtproto_print(ndo, bp, length, NULL, 0); /* RFC 3912 */
+                whois_print(ndo, bp, length);
         } else if (IS_SRC_OR_DST_PORT(BGP_PORT))
                 bgp_print(ndo, bp, length);
         else if (IS_SRC_OR_DST_PORT(PPTP_PORT))