]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-http.c
Makefile.in: don't remove configure and config.h.in in make distclean.
[tcpdump] / print-http.c
index 49df1748ededdcda5018e931e7904f361ad1d65a..6845d0d3152827fa7aef020a4ca91b82dd2e1e35 100644 (file)
  * FOR A PARTICULAR PURPOSE.
  */
 
-#ifndef lint
-static const char rcsid[] _U_ =
-    "@(#) $Header$";
-#endif
+/* \summary: Hypertext Transfer Protocol (HTTP) printer */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif
 
-#include <tcpdump-stdinc.h>
-
-#include <stdio.h>
-#include <stdlib.h>
+#include "netdissect-stdinc.h"
 
-#include "interface.h"
-#include "extract.h"
+#include "netdissect.h"
 
 /*
  * Includes WebDAV requests.
@@ -76,5 +69,6 @@ static const char *httpcmds[] = {
 void
 http_print(netdissect_options *ndo, const u_char *pptr, u_int len)
 {
-       txtproto_print(ndo, pptr, len, "http", httpcmds, RESP_CODE_SECOND_TOKEN);
+       ndo->ndo_protocol = "http";
+       txtproto_print(ndo, pptr, len, httpcmds, RESP_CODE_SECOND_TOKEN);
 }