X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/b38f324af9dd953a661b9f35910f8c6d8eb2cc06..0023eaa78f123676bfa9c5fba72ea4b8a59aaa70:/print-smtp.c diff --git a/print-smtp.c b/print-smtp.c index 0cdcf1d9..fba7f237 100644 --- a/print-smtp.c +++ b/print-smtp.c @@ -13,20 +13,15 @@ /* \summary: Simple Mail Transfer Protocol (SMTP) printer */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif +#include -#include - -#include -#include +#include "netdissect-stdinc.h" #include "netdissect.h" -#include "extract.h" void smtp_print(netdissect_options *ndo, const u_char *pptr, u_int len) { - txtproto_print(ndo, pptr, len, "smtp", NULL, 0); + ndo->ndo_protocol = "smtp"; + txtproto_print(ndo, pptr, len, NULL, 0); }