xref: /freebsd/contrib/tcpdump/print-smtp.c (revision 3340d77368116708ab5b5b95acf6c9c710528300)
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 
14*3340d773SGleb Smirnoff /* \summary: Simple Mail Transfer Protocol (SMTP) printer */
15*3340d773SGleb Smirnoff 
168bdc5a62SPatrick Kelsey #ifdef HAVE_CONFIG_H
178bdc5a62SPatrick Kelsey #include "config.h"
188bdc5a62SPatrick Kelsey #endif
198bdc5a62SPatrick Kelsey 
20*3340d773SGleb Smirnoff #include <netdissect-stdinc.h>
218bdc5a62SPatrick Kelsey 
228bdc5a62SPatrick Kelsey #include <stdio.h>
238bdc5a62SPatrick Kelsey #include <stdlib.h>
248bdc5a62SPatrick Kelsey 
258bdc5a62SPatrick Kelsey #include "netdissect.h"
268bdc5a62SPatrick Kelsey #include "extract.h"
278bdc5a62SPatrick Kelsey 
288bdc5a62SPatrick Kelsey void
298bdc5a62SPatrick Kelsey smtp_print(netdissect_options *ndo, const u_char *pptr, u_int len)
308bdc5a62SPatrick Kelsey {
318bdc5a62SPatrick Kelsey 	txtproto_print(ndo, pptr, len, "smtp", NULL, 0);
328bdc5a62SPatrick Kelsey }
33