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-nntp.c | |
parent | fba49cfe85d4b23ebbffa97fae126a379e913ecd (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.
svn path=/trunk/; revision=342
Diffstat (limited to 'packet-nntp.c')
-rw-r--r-- | packet-nntp.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/packet-nntp.c b/packet-nntp.c index 7aabb1382e..d4fd4900aa 100644 --- a/packet-nntp.c +++ b/packet-nntp.c @@ -2,7 +2,7 @@ * Routines for nntp packet dissection * Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com> * - * $Id: packet-nntp.c,v 1.1 1999/04/06 02:02:11 guy Exp $ + * $Id: packet-nntp.c,v 1.2 1999/07/07 22:51:49 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@unicom.net> @@ -77,10 +77,9 @@ dissect_nntp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree, int if (tree) { - ti = proto_tree_add_item(tree, offset, END_OF_FRAME, + ti = proto_tree_add_text(tree, offset, END_OF_FRAME, "Network News Transfer Protocol"); - nntp_tree = proto_tree_new(); - proto_item_add_subtree(ti, nntp_tree, ETT_NNTP); + nntp_tree = proto_item_add_subtree(ti, ETT_NNTP); /* * Show the request or response as text, a line at a time. @@ -100,7 +99,7 @@ dissect_nntp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree, int /* * Put this line. */ - proto_tree_add_item(nntp_tree, offset, linelen, "%s", + proto_tree_add_text(nntp_tree, offset, linelen, "%s", format_text(data, linelen)); offset += linelen; data = lineend; |