aboutsummaryrefslogtreecommitdiffstats
path: root/packet-afs-macros.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-05-27 08:09:49 +0000
committerGuy Harris <guy@alum.mit.edu>2001-05-27 08:09:49 +0000
commit76301b827bb99cc1a4500ea9806ff017ae2057da (patch)
treee8caaf5d21273cd00a9e76f2f2eacc74a086f958 /packet-afs-macros.h
parent176eaa265a2cb24f573b2bec3406f34ed6609fdb (diff)
"END_OF_FRAME" should not be used in tvbuffified dissectors.
Update Gerald's e-mail address. svn path=/trunk/; revision=3467
Diffstat (limited to 'packet-afs-macros.h')
-rw-r--r--packet-afs-macros.h31
1 files changed, 15 insertions, 16 deletions
diff --git a/packet-afs-macros.h b/packet-afs-macros.h
index bdb17c6c7c..d811136190 100644
--- a/packet-afs-macros.h
+++ b/packet-afs-macros.h
@@ -8,10 +8,10 @@
* Portions based on information/specs retrieved from the OpenAFS sources at
* www.openafs.org, Copyright IBM.
*
- * $Id: packet-afs-macros.h,v 1.8 2001/05/27 01:48:23 guy Exp $
+ * $Id: packet-afs-macros.h,v 1.9 2001/05/27 08:09:49 guy Exp $
*
* Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
* Copyright 1998 Gerald Combs
*
* Copied from packet-tftp.c
@@ -352,18 +352,19 @@
{ \
unsigned int i,j,seen_null=0; \
for (i=0; i<255; i++) { \
- j = tvb_get_ntohl(tvb, offset); \
- if ( j != 0 ) { \
- OUT_IP(hf_afs_ubik_interface); \
- seen_null = 0; \
- } else { \
- if ( ! seen_null ) { \
- proto_tree_add_text(tree, tvb,offset,END_OF_FRAME, \
- "Null Interface Addresses"); \
- seen_null = 1; \
- } \
- offset += 4; \
- }\
+ j = tvb_get_ntohl(tvb, offset); \
+ if ( j != 0 ) { \
+ OUT_IP(hf_afs_ubik_interface); \
+ seen_null = 0; \
+ } else { \
+ if ( ! seen_null ) { \
+ proto_tree_add_text(tree, tvb, offset, \
+ tvb_length_remaining(tvb, offset), \
+ "Null Interface Addresses"); \
+ seen_null = 1; \
+ } \
+ offset += 4; \
+ }\
} \
}
@@ -487,5 +488,3 @@
sizeof(guint32),counter); \
tree = save; \
}
-
-