Have Wiretap set the snapshot length to 0 if it can't be derived from
[metze/wireshark/wip.git] / wiretap / etherpeek.c
index 6844e26e3addbe815bc4ff2146e830256ae04e56..6e99adb7c8967aa50c1abb8855825691d6909334 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for opening EtherPeek (and TokenPeek?) files
  * Copyright (c) 2001, Daniel Thompson <d.thompson@gmx.net>
  *
- * $Id: etherpeek.c,v 1.14 2002/01/29 09:45:58 guy Exp $
+ * $Id: etherpeek.c,v 1.15 2002/02/08 10:07:40 guy Exp $
  *
  * Wiretap Library
  * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
@@ -314,7 +314,7 @@ int etherpeek_open(wtap *wth, int *err)
                g_assert_not_reached();
        }
 
-       wth->snapshot_length   = 16384; /* just guessing */
+       wth->snapshot_length   = 0; /* not available in header */
 
        return 1;
 }