]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-smtp.c
CI: Add warning exemptions for Sun C (suncc-5.15) on Solaris 10
[tcpdump] / print-smtp.c
index fe0bbc2f224cec5784735849f0c951f157697267..fba7f2371ba5e33422c3162f025bbbe3b5c8b23e 100644 (file)
  * FOR A PARTICULAR PURPOSE.
  */
 
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
+/* \summary: Simple Mail Transfer Protocol (SMTP) printer */
 
-#include <tcpdump-stdinc.h>
+#include <config.h>
 
-#include <stdio.h>
-#include <stdlib.h>
+#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);
 }