xref: /freebsd/contrib/tcpdump/print-smtp.c (revision ee67461e56828dd1f8de165947ba83f6d9148a87)
18bdc5a62SPatrick Kelsey /*
28bdc5a62SPatrick Kelsey  * Redistribution and use in source and binary forms, with or without
38bdc5a62SPatrick Kelsey  * modification, are permitted provided that: (1) source code
48bdc5a62SPatrick Kelsey  * distributions retain the above copyright notice and this paragraph
58bdc5a62SPatrick Kelsey  * in its entirety, and (2) distributions including binary code include
68bdc5a62SPatrick Kelsey  * the above copyright notice and this paragraph in its entirety in
78bdc5a62SPatrick Kelsey  * the documentation or other materials provided with the distribution.
88bdc5a62SPatrick Kelsey  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND
98bdc5a62SPatrick Kelsey  * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
108bdc5a62SPatrick Kelsey  * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
118bdc5a62SPatrick Kelsey  * FOR A PARTICULAR PURPOSE.
128bdc5a62SPatrick Kelsey  */
138bdc5a62SPatrick Kelsey 
143340d773SGleb Smirnoff /* \summary: Simple Mail Transfer Protocol (SMTP) printer */
153340d773SGleb Smirnoff 
168bdc5a62SPatrick Kelsey #ifdef HAVE_CONFIG_H
17*ee67461eSJoseph Mingrone #include <config.h>
188bdc5a62SPatrick Kelsey #endif
198bdc5a62SPatrick Kelsey 
20*ee67461eSJoseph Mingrone #include "netdissect-stdinc.h"
218bdc5a62SPatrick Kelsey 
228bdc5a62SPatrick Kelsey #include "netdissect.h"
238bdc5a62SPatrick Kelsey 
248bdc5a62SPatrick Kelsey void
258bdc5a62SPatrick Kelsey smtp_print(netdissect_options *ndo, const u_char *pptr, u_int len)
268bdc5a62SPatrick Kelsey {
27*ee67461eSJoseph Mingrone 	ndo->ndo_protocol = "smtp";
28*ee67461eSJoseph Mingrone 	txtproto_print(ndo, pptr, len, NULL, 0);
298bdc5a62SPatrick Kelsey }
30