Ethereal-dev: [Ethereal-dev] Bad offset in capture_arcnet?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Peter Fales <psfales@xxxxxxxxxx>
Date: Thu, 18 Dec 2003 15:46:00 -0600
capture_arcnet() in packet-arcnet.c begins:

57   void
58   capture_arcnet (const guchar *pd, int len, packet_counts *ld,
59                   gboolean has_offset, gboolean has_exception)
60   {
61     int offset = has_offset ? 2 : 4;
62   

Is this correct?   I believe the intent is that linux (which sets 
has_offset to TRUE) has an extra two-byte offset field at the beginning
of the packet, so the protocol ID byte is at offset 4.  I had to 
change this to 

	int offset = has_offset ? 4 : 2;

to get the proper behavior on my linux system.

-- 
Peter Fales			  Lucent Technologies, Room 1C-436
N9IYJ            		  2000 N Naperville Rd PO Box 3033
internet: psfales@xxxxxxxxxx	  Naperville, IL 60566-7033
			 	  work:	(630) 979-8031