X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/49b23c5a9b0198bb382dcf43c458d46fcf2fa809..refs/pull/1034/head:/print-http.c diff --git a/print-http.c b/print-http.c index 0aec7581..6845d0d3 100644 --- a/print-http.c +++ b/print-http.c @@ -14,16 +14,12 @@ /* \summary: Hypertext Transfer Protocol (HTTP) printer */ #ifdef HAVE_CONFIG_H -#include "config.h" +#include #endif -#include - -#include -#include +#include "netdissect-stdinc.h" #include "netdissect.h" -#include "extract.h" /* * Includes WebDAV requests. @@ -73,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); }