X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/b83e04bd09ac42db9e362a627568a8efbe099c22..refs/heads/master:/print-rtsp.c diff --git a/print-rtsp.c b/print-rtsp.c index d721b8db..f240a90f 100644 --- a/print-rtsp.c +++ b/print-rtsp.c @@ -11,22 +11,13 @@ * 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" -#endif +#include -#include +#include "netdissect-stdinc.h" -#include -#include - -#include "interface.h" -#include "extract.h" +#include "netdissect.h" static const char *rtspcmds[] = { "DESCRIBE", @@ -46,5 +37,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); }