X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/513f782ae18791f0c925b9235da749b38159b607..346122ac064a81e1eb1ad4dbcfee00d0ffa145c6:/print-http.c diff --git a/print-http.c b/print-http.c index 3bed0e44..cdb1fd71 100644 --- a/print-http.c +++ b/print-http.c @@ -13,17 +13,11 @@ /* \summary: Hypertext Transfer Protocol (HTTP) printer */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif +#include #include "netdissect-stdinc.h" -#include -#include - #include "netdissect.h" -#include "extract.h" /* * Includes WebDAV requests. @@ -73,5 +67,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); }