From 3d4ba194f8ef9231bc0d9563314dc7a672c57264 Mon Sep 17 00:00:00 2001 From: guy Date: Sun, 27 May 2001 08:09:49 +0000 Subject: "END_OF_FRAME" should not be used in tvbuffified dissectors. Update Gerald's e-mail address. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3467 f5534014-38df-0310-8fa8-9805f1628bb7 --- packet-afs-macros.h | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) (limited to 'packet-afs-macros.h') 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 + * By Gerald Combs * 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; \ } - - -- cgit v1.2.3