X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/99c91c3aec40b691641374f58e798bd8d6b657bd..c39d40a767a1ae36171e5bcbf6f157ff3e80fb6c:/print-rtsp.c?ds=sidebyside diff --git a/print-rtsp.c b/print-rtsp.c index 7b6edb63..626a5ed9 100644 --- a/print-rtsp.c +++ b/print-rtsp.c @@ -11,22 +11,15 @@ * FOR A PARTICULAR PURPOSE. */ -#ifndef lint -static const char rcsid[] _U_ = - "@(#) $Header$"; -#endif +/* \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", @@ -46,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); }