aboutsummaryrefslogtreecommitdiffstats
path: root/packet-sdp.c
diff options
context:
space:
mode:
authorgram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>1999-07-07 22:52:57 +0000
committergram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>1999-07-07 22:52:57 +0000
commit6d610d5a736194dc2ba998ca285ed31937b962fa (patch)
treec720d2a42f11c9d14ac1a161eb785b438c2c4b14 /packet-sdp.c
parentbe35348d2e6dc8f996c9de344ded516f054a501f (diff)
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@342 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-sdp.c')
-rw-r--r--packet-sdp.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/packet-sdp.c b/packet-sdp.c
index 25f5f28a83..c81554b712 100644
--- a/packet-sdp.c
+++ b/packet-sdp.c
@@ -4,7 +4,7 @@
* Jason Lango <jal@netapp.com>
* Liberally copied from packet-http.c, by Guy Harris <guy@netapp.com>
*
- * $Id: packet-sdp.c,v 1.1 1999/07/07 00:34:56 guy Exp $
+ * $Id: packet-sdp.c,v 1.2 1999/07/07 22:51:53 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -68,10 +68,9 @@ void dissect_sdp(const u_char *pd, int offset, frame_data *fd,
if (!tree)
return;
- ti = proto_tree_add_item(tree, offset, END_OF_FRAME,
+ ti = proto_tree_add_text(tree, offset, END_OF_FRAME,
"Session Description Protocol");
- sdp_tree = proto_tree_new();
- proto_item_add_subtree(ti, sdp_tree, ETT_SDP);
+ sdp_tree = proto_item_add_subtree(ti, ETT_SDP);
section = 0;
for (; data < dataend; offset += linelen, data = lineend) {
@@ -89,7 +88,7 @@ void dissect_sdp(const u_char *pd, int offset, frame_data *fd,
type = data[0];
if (data[1] != '=') {
- proto_tree_add_item(sdp_tree, offset, linelen,
+ proto_tree_add_text(sdp_tree, offset, linelen,
"Invalid line: %s",
format_text(data, linelen));
continue;
@@ -164,13 +163,13 @@ void dissect_sdp(const u_char *pd, int offset, frame_data *fd,
break;
}
- proto_tree_add_item(sdp_tree, offset, linelen,
+ proto_tree_add_text(sdp_tree, offset, linelen,
"%s (%c): %s", typename, type,
format_text(value, valuelen));
}
if (data < dataend) {
- proto_tree_add_item(sdp_tree, offset, END_OF_FRAME,
+ proto_tree_add_text(sdp_tree, offset, END_OF_FRAME,
"Data (%d bytes)", END_OF_FRAME);
}
}