From 3118e2a0c231dad93f76aeff7228b86ea7b3d182 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 19 Dec 2003 01:24:09 +0000 Subject: 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 --- packet-arcnet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packet-arcnet.c') 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 * - * $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 @@ -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++; -- cgit v1.2.1