diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-07-07 22:52:57 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-07-07 22:52:57 +0000 |
commit | 07f42b5b31f9523deeb147226521f77a2c8dd797 (patch) | |
tree | c720d2a42f11c9d14ac1a161eb785b438c2c4b14 /packet-rtsp.c | |
parent | fba49cfe85d4b23ebbffa97fae126a379e913ecd (diff) | |
download | wireshark-07f42b5b31f9523deeb147226521f77a2c8dd797.tar.gz wireshark-07f42b5b31f9523deeb147226521f77a2c8dd797.tar.bz2 wireshark-07f42b5b31f9523deeb147226521f77a2c8dd797.zip |
Created a new protocol tree implementation and a new display filter
mechanism that is built into ethereal. Wiretap is now used to read all
file formats. Libpcap is used only for capturing.
svn path=/trunk/; revision=342
Diffstat (limited to 'packet-rtsp.c')
-rw-r--r-- | packet-rtsp.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/packet-rtsp.c b/packet-rtsp.c index 785d17b39a..350286306a 100644 --- a/packet-rtsp.c +++ b/packet-rtsp.c @@ -4,7 +4,7 @@ * Jason Lango <jal@netapp.com> * Liberally copied from packet-http.c, by Guy Harris <guy@netapp.com> * - * $Id: packet-rtsp.c,v 1.1 1999/07/07 00:34:56 guy Exp $ + * $Id: packet-rtsp.c,v 1.2 1999/07/07 22:51:53 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -104,10 +104,9 @@ void dissect_rtsp(const u_char *pd, int offset, frame_data *fd, rtsp_tree = NULL; if (tree) { - ti = proto_tree_add_item(tree, offset, END_OF_FRAME, + ti = proto_tree_add_text(tree, offset, END_OF_FRAME, "Real Time Streaming Protocol"); - rtsp_tree = proto_tree_new(); - proto_item_add_subtree(ti, rtsp_tree, ETT_RTSP); + rtsp_tree = proto_item_add_subtree(ti, ETT_RTSP); } while (data < dataend) { @@ -195,7 +194,7 @@ void dissect_rtsp(const u_char *pd, int offset, frame_data *fd, * Put this line. */ if (rtsp_tree) { - proto_tree_add_item(rtsp_tree, offset, linelen, "%s", + proto_tree_add_text(rtsp_tree, offset, linelen, "%s", format_text(data, linelen)); } offset += linelen; @@ -208,7 +207,7 @@ void dissect_rtsp(const u_char *pd, int offset, frame_data *fd, col_add_str(fd, COL_PROTOCOL, "RTSP/SDP"); } else if (rtsp_tree && data < dataend) { - proto_tree_add_item(rtsp_tree, offset, END_OF_FRAME, + proto_tree_add_text(rtsp_tree, offset, END_OF_FRAME, "Data (%d bytes)", END_OF_FRAME); } } |