]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ftp.c
CHANGES: Add/move change(s) backported to 4.99
[tcpdump] / print-ftp.c
index 9359139557b339af7fa0326d5a79cf84a8606a1f..927618f577f26d0554e4375c47f250bb3b187a9d 100644 (file)
  * FOR A PARTICULAR PURPOSE.
  */
 
-#ifndef lint
-static const char rcsid[] _U_ =
-    "@(#) $Header$";
-#endif
+/* \summary: File Transfer Protocol (FTP) printer */
 
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
+#include <config.h>
 
-#include <netdissect-stdinc.h>
-
-#include <stdio.h>
-#include <stdlib.h>
+#include "netdissect-stdinc.h"
 
 #include "netdissect.h"
-#include "extract.h"
 
 void
 ftp_print(netdissect_options *ndo, const u_char *pptr, u_int len)
 {
-       txtproto_print(ndo, pptr, len, "ftp", NULL, 0);
+       ndo->ndo_protocol = "ftp";
+       txtproto_print(ndo, pptr, len, NULL, 0);
 }