aboutsummaryrefslogtreecommitdiffstats
path: root/tethereal.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2000-04-14 05:39:43 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2000-04-14 05:39:43 +0000
commit61167a3c28f1413cfe0f3a3fb0f9454815a02b16 (patch)
tree939261d5f15a73a162f634864c4c25a5deb23a5b /tethereal.c
parentd716875317fdf7597ece0639082efe943598bccd (diff)
Change dfilter_apply() to 4-argument function. 4th argument is not yet used,
but will be in the future, and it's easier for me to keep my local branch in sync with the source with the calls to dfilter_apply() already modified tothe 4-arg format. Add a CPP macro to ipv4.h to define ipv4_addr_ne(). Use it in dfilter.c svn path=/trunk/; revision=1854
Diffstat (limited to 'tethereal.c')
-rw-r--r--tethereal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tethereal.c b/tethereal.c
index d5767f793f..e24f734af9 100644
--- a/tethereal.c
+++ b/tethereal.c
@@ -1,6 +1,6 @@
/* tethereal.c
*
- * $Id: tethereal.c,v 1.25 2000/04/13 20:39:19 gram Exp $
+ * $Id: tethereal.c,v 1.26 2000/04/14 05:39:43 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -831,7 +831,7 @@ wtap_dispatch_cb_write(u_char *user, const struct wtap_pkthdr *phdr, int offset,
fill_in_fdata(&fdata, cf, phdr, offset);
protocol_tree = proto_tree_create_root();
dissect_packet(buf, &fdata, protocol_tree);
- passed = dfilter_apply(cf->rfcode, protocol_tree, buf);
+ passed = dfilter_apply(cf->rfcode, protocol_tree, buf, fdata.cap_len);
} else {
protocol_tree = NULL;
passed = TRUE;
@@ -866,7 +866,7 @@ wtap_dispatch_cb_print(u_char *user, const struct wtap_pkthdr *phdr, int offset,
protocol_tree = NULL;
dissect_packet(buf, &fdata, protocol_tree);
if (cf->rfcode)
- passed = dfilter_apply(cf->rfcode, protocol_tree, buf);
+ passed = dfilter_apply(cf->rfcode, protocol_tree, buf, fdata.cap_len);
if (passed) {
/* The packet passed the read filter. */
if (verbose) {