]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-http.c
Handle rpcaps:// URLs as well, for rpcap-over-TLS.
[tcpdump] / print-http.c
index 0aec75818263c4d6dc90ca8288f273ee3567b496..c8b6be127bc462c6b19c4a99329be630bd808757 100644 (file)
 /* \summary: Hypertext Transfer Protocol (HTTP) printer */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif
 
-#include <netdissect-stdinc.h>
+#include "netdissect-stdinc.h"
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -73,5 +73,6 @@ static const char *httpcmds[] = {
 void
 http_print(netdissect_options *ndo, const u_char *pptr, u_int len)
 {
+       ndo->ndo_protocol = "http";
        txtproto_print(ndo, pptr, len, "http", httpcmds, RESP_CODE_SECOND_TOKEN);
 }