X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/99c91c3aec40b691641374f58e798bd8d6b657bd..b5068d5380c73e02bc35a96f641cad18d9b03f3d:/print-http.c?ds=sidebyside diff --git a/print-http.c b/print-http.c index b18b8861..866f3827 100644 --- a/print-http.c +++ b/print-http.c @@ -11,16 +11,13 @@ * 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 #endif -#include +#include "netdissect-stdinc.h" #include #include @@ -76,5 +73,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); }