summaryrefslogtreecommitdiff
path: root/epan/dfilter/dfilter.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2002-05-09 23:50:34 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2002-05-09 23:50:34 +0000
commit41cc7f0707c5c62ae5651fcd70a9e9b12a4ce387 (patch)
tree46737517f86dbb9ec37210737dd521c9c3920608 /epan/dfilter/dfilter.c
parent9625720a39eddda6ef4c34725fe8017160cf05d9 (diff)
downloadwireshark-41cc7f0707c5c62ae5651fcd70a9e9b12a4ce387.tar.gz
Merge the work in Novell_NCP_branch into the mainline code.
A little work still needs to be done on the new NCP dissector -- make some of the COL_INFO texts more useful, handle a Unicode issue, and modify some of the cases that use "request conditions". But the NCP dissector as it stands is very usable now. Note: I didn't merge in the PROTO_LENGTH_UNTIL_END macro... I wanted to think about the various possible macros and review an email conversation I had with Guy on the subject. svn path=/trunk/; revision=5432
Diffstat (limited to 'epan/dfilter/dfilter.c')
-rw-r--r--epan/dfilter/dfilter.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/epan/dfilter/dfilter.c b/epan/dfilter/dfilter.c
index 19af1c3179..e76029c225 100644
--- a/epan/dfilter/dfilter.c
+++ b/epan/dfilter/dfilter.c
@@ -1,5 +1,5 @@
/*
- * $Id: dfilter.c,v 1.9 2002/04/29 07:55:32 guy Exp $
+ * $Id: dfilter.c,v 1.10 2002/05/09 23:50:30 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -284,26 +284,25 @@ FAILURE:
gboolean
-dfilter_apply(dfilter_t *df, tvbuff_t *tvb, proto_tree *tree)
+dfilter_apply(dfilter_t *df, proto_tree *tree)
{
- return dfvm_apply(df, tvb, tree);
+ return dfvm_apply(df, tree);
}
gboolean
dfilter_apply_edt(dfilter_t *df, epan_dissect_t* edt)
{
- return dfvm_apply(df, edt->tvb, edt->tree);
+ return dfvm_apply(df, edt->tree);
}
void
-dfilter_foreach_interesting_field(dfilter_t *df, GFunc func,
- gpointer user_data)
+dfilter_prime_proto_tree(dfilter_t *df, proto_tree *tree)
{
int i;
for (i = 0; i < df->num_interesting_fields; i++) {
- func(GINT_TO_POINTER(df->interesting_fields[i]), user_data);
+ proto_tree_prime_hfid(tree, df->interesting_fields[i]);
}
}