aboutsummaryrefslogtreecommitdiffstats
path: root/packet-pptp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-09-17 05:56:58 +0000
committerGuy Harris <guy@alum.mit.edu>1999-09-17 05:56:58 +0000
commit96e79ab6f80abdad1e3b525f4febef278de7eacc (patch)
tree7b49cc8eb0de5d9a929aa1676bc1981c3ebcfad3 /packet-pptp.c
parentff20b92b67d90a1e14ef73fde3300cec25c54932 (diff)
Add a "BYTES_ARE_IN_FRAME()" macro, to test whether there are a
specified number of bytes of captured data in the frame at the specified offset, and a "IS_DATA_IN_FRAME()" macro, to test whether there are any bytes of captured data in the frame at the specified offset, and convert some bounds checks to use them. Add a dissector for the Internet Printing Protocol. svn path=/trunk/; revision=685
Diffstat (limited to 'packet-pptp.c')
-rw-r--r--packet-pptp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-pptp.c b/packet-pptp.c
index 376434ab1a..5ffe972ced 100644
--- a/packet-pptp.c
+++ b/packet-pptp.c
@@ -2,7 +2,7 @@
* Routines for the Point-to-Point Tunnelling Protocol (PPTP)
* Brad Robel-Forrest <brad.robel-forrest@watchguard.com>
*
- * $Id: packet-pptp.c,v 1.4 1999/08/26 07:34:40 guy Exp $
+ * $Id: packet-pptp.c,v 1.5 1999/09/17 05:56:55 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
@@ -390,7 +390,7 @@ dissect_pptp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) {
if (check_col(fd, COL_INFO))
col_add_fstr(fd, COL_INFO, "%s", cntrltype2str(cntrl_type));
- if (pi.captured_len > offset && tree) {
+ if (IS_DATA_IN_FRAME(offset) && tree) {
guint16 msg_type;
proto_item * ti;
proto_tree * pptp_tree;