]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-smtp.c
Handle rpcaps:// URLs as well, for rpcap-over-TLS.
[tcpdump] / print-smtp.c
index 0cdcf1d92c35489dabf856ab1ac941d8f2ed948e..a85ea8a9fc4c606ed1a47b8f503cd5f856139212 100644 (file)
 /* \summary: Simple Mail Transfer Protocol (SMTP) printer */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif
 
-#include <netdissect-stdinc.h>
+#include "netdissect-stdinc.h"
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -28,5 +28,6 @@
 void
 smtp_print(netdissect_options *ndo, const u_char *pptr, u_int len)
 {
+       ndo->ndo_protocol = "smtp";
        txtproto_print(ndo, pptr, len, "smtp", NULL, 0);
 }