aboutsummaryrefslogtreecommitdiffstats
path: root/packet-gre.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-08-26 07:34:43 +0000
committerGuy Harris <guy@alum.mit.edu>1999-08-26 07:34:43 +0000
commitf93c76fd10c0899a5ce6b8eae5009c5b374cdbd8 (patch)
treebd78b3a5917f10ac3c0089bfed2d856bf0db57c7 /packet-gre.c
parent8b2e03eea6229b300b3de3322f14c446d0c303e9 (diff)
Convert a bunch of uses of "fd->cap_len" to use "pi.captured_len" (or to
use END_OF_FRAME), so that they don't look at stuff in an IP datagram past the end of the IP datagram (i.e., frame padding). svn path=/trunk/; revision=584
Diffstat (limited to 'packet-gre.c')
-rw-r--r--packet-gre.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-gre.c b/packet-gre.c
index 21d3b02ef4..9a6a57fbd7 100644
--- a/packet-gre.c
+++ b/packet-gre.c
@@ -2,7 +2,7 @@
* Routines for the Generic Routing Encapsulation (GRE) protocol
* Brad Robel-Forrest <brad.robel-forrest@watchguard.com>
*
- * $Id: packet-gre.c,v 1.4 1999/07/29 05:46:55 gram Exp $
+ * $Id: packet-gre.c,v 1.5 1999/08/26 07:34:42 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
@@ -77,7 +77,7 @@ dissect_gre(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) {
col_add_str(fd, COL_INFO, "Encapsulated unknown");
}
- if (fd->cap_len > offset && tree) {
+ if (pi.captured_len > offset && tree) {
int is_ppp;
proto_item * ti;
proto_tree * gre_tree;