X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/b83e04bd09ac42db9e362a627568a8efbe099c22..HEAD:/print-smtp.c diff --git a/print-smtp.c b/print-smtp.c index fe0bbc2f..fba7f237 100644 --- a/print-smtp.c +++ b/print-smtp.c @@ -11,20 +11,17 @@ * FOR A PARTICULAR PURPOSE. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif +/* \summary: Simple Mail Transfer Protocol (SMTP) printer */ -#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); }