]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-smtp.c
Makefile.in: don't remove configure and config.h.in in make distclean.
[tcpdump] / print-smtp.c
index f1a2582b2068014e01db3cbe3b8d732fcbb5a519..4acf87c962a60539ef273c0c4258dcc0f5237320 100644 (file)
 
 #include "netdissect-stdinc.h"
 
-#include <stdio.h>
-#include <stdlib.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);
 }