Ethereal-dev: [Ethereal-dev] Some VMS TCPIPtrace logs not recognized

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

From: Marc Milgram <mmilgram@xxxxxxxxxxxx>
Date: Tue, 15 Jan 2002 13:39:14 -0500
If there are not exactly 3 spaces before TCPIPtrace in the trace file, the trace may not be recognized.
This fixes that problem.

-Marc Milgram

Index: wiretap/vms.c
===================================================================
RCS file: /cvsroot/ethereal/wiretap/vms.c,v
retrieving revision 1.3
diff -u -r1.3 wiretap/vms.c
--- wiretap/vms.c	2002/01/08 22:30:29	1.3
+++ wiretap/vms.c	2002/01/09 20:49:18
@@ -64,7 +64,7 @@
 
 /* Magic text to check for VMS-ness of file */
 static const char vms_hdr_magic[]  =
-{ ' ', ' ', ' ', 'T', 'C', 'P', 'I', 'P', 't', 'r', 'a', 'c', 'e', ' '};
+{ 'T', 'C', 'P', 'I', 'P', 't', 'r', 'a', 'c', 'e', ' '};
 #define VMS_HDR_MAGIC_SIZE  (sizeof vms_hdr_magic  / sizeof vms_hdr_magic[0])
 
 /* Magic text for start of packet */