X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/b38f324af9dd953a661b9f35910f8c6d8eb2cc06..c39d40a767a1ae36171e5bcbf6f157ff3e80fb6c:/print-rtsp.c diff --git a/print-rtsp.c b/print-rtsp.c index 54cc930e..626a5ed9 100644 --- a/print-rtsp.c +++ b/print-rtsp.c @@ -14,16 +14,12 @@ /* \summary: Real Time Streaming Protocol (RTSP) printer */ #ifdef HAVE_CONFIG_H -#include "config.h" +#include #endif -#include - -#include -#include +#include "netdissect-stdinc.h" #include "netdissect.h" -#include "extract.h" static const char *rtspcmds[] = { "DESCRIBE", @@ -43,5 +39,6 @@ static const char *rtspcmds[] = { void rtsp_print(netdissect_options *ndo, const u_char *pptr, u_int len) { - txtproto_print(ndo, pptr, len, "rtsp", rtspcmds, RESP_CODE_SECOND_TOKEN); + ndo->ndo_protocol = "rtsp"; + txtproto_print(ndo, pptr, len, rtspcmds, RESP_CODE_SECOND_TOKEN); }