xref: /dflybsd-src/contrib/tcpdump/print-smtp.c (revision 59c07fbdf8168fa08c76c515186d561b5a92690c)
1411677aeSAaron LI /*
2411677aeSAaron LI  * Redistribution and use in source and binary forms, with or without
3411677aeSAaron LI  * modification, are permitted provided that: (1) source code
4411677aeSAaron LI  * distributions retain the above copyright notice and this paragraph
5411677aeSAaron LI  * in its entirety, and (2) distributions including binary code include
6411677aeSAaron LI  * the above copyright notice and this paragraph in its entirety in
7411677aeSAaron LI  * the documentation or other materials provided with the distribution.
8411677aeSAaron LI  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND
9411677aeSAaron LI  * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
10411677aeSAaron LI  * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
11411677aeSAaron LI  * FOR A PARTICULAR PURPOSE.
12411677aeSAaron LI  */
13411677aeSAaron LI 
14411677aeSAaron LI /* \summary: Simple Mail Transfer Protocol (SMTP) printer */
15411677aeSAaron LI 
16411677aeSAaron LI #ifdef HAVE_CONFIG_H
17*ed775ee7SAntonio Huete Jimenez #include <config.h>
18411677aeSAaron LI #endif
19411677aeSAaron LI 
20*ed775ee7SAntonio Huete Jimenez #include "netdissect-stdinc.h"
21411677aeSAaron LI 
22411677aeSAaron LI #include "netdissect.h"
23411677aeSAaron LI 
24411677aeSAaron LI void
smtp_print(netdissect_options * ndo,const u_char * pptr,u_int len)25411677aeSAaron LI smtp_print(netdissect_options *ndo, const u_char *pptr, u_int len)
26411677aeSAaron LI {
27*ed775ee7SAntonio Huete Jimenez 	ndo->ndo_protocol = "smtp";
28*ed775ee7SAntonio Huete Jimenez 	txtproto_print(ndo, pptr, len, NULL, 0);
29411677aeSAaron LI }
30