aboutsummaryrefslogtreecommitdiffstats
path: root/packet-arcnet.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-12-19 01:24:09 +0000
committerGuy Harris <guy@alum.mit.edu>2003-12-19 01:24:09 +0000
commit3118e2a0c231dad93f76aeff7228b86ea7b3d182 (patch)
treeb2ee85814e93febd3c234fbe5137b391edfe18d3 /packet-arcnet.c
parent95e6fb64c08a02d6a1c92dd237a3c6f78482c8b8 (diff)
As noted by Peter Fales, the offset in "capture_arcnet()" should be 4 if
the extra offset field is present and 2 if it's absent, not the other way around. svn path=/trunk/; revision=9351
Diffstat (limited to 'packet-arcnet.c')
-rw-r--r--packet-arcnet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-arcnet.c b/packet-arcnet.c
index d21132c5ae..45d21b38b3 100644
--- a/packet-arcnet.c
+++ b/packet-arcnet.c
@@ -2,7 +2,7 @@
* Routines for arcnet dissection
* Copyright 2001-2002, Peter Fales <ethereal@fales-lorenz.net>
*
- * $Id: packet-arcnet.c,v 1.9 2003/01/23 10:11:54 guy Exp $
+ * $Id: packet-arcnet.c,v 1.10 2003/12/19 01:24:09 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -58,7 +58,7 @@ void
capture_arcnet (const guchar *pd, int len, packet_counts *ld,
gboolean has_offset, gboolean has_exception)
{
- int offset = has_offset ? 2 : 4;
+ int offset = has_offset ? 4 : 2;
if (!BYTES_ARE_IN_FRAME(offset, len, 1)) {
ld->other++;