]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-rtsp.c
gre: add support for MikroTik Ethernet-over-IP hack.
[tcpdump] / print-rtsp.c
index 7b6edb63be07e6a9a6552fbd042a71e58baeb46c..626a5ed9c89c1d5bf08a385bdde7427d46f541fd 100644 (file)
  * 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 <config.h>
 #endif
 
-#include <netdissect-stdinc.h>
-
-#include <stdio.h>
-#include <stdlib.h>
+#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);
 }