Wireshark-commits: [Wireshark-commits] rev 32393: /trunk/wiretap/ /trunk/wiretap/: pcapng.c

Date: Mon, 05 Apr 2010 22:20:24 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=32393

User: guy
Date: 2010/04/05 03:20 PM

Log:
 Treat the first block we read, when opening, specially:
 
 	1) if it's not an SHB, just say "this is not a pcap-ng file",
 	   don't try to process it (we can't process it, as we haven't
 	   finished setting up all the state information yet);
 
 	2) if it has the right SHB type code, but isn't a valid SHB,
 	   just say "this is not a pcap-ng file".
 
 For all other SHB's, treat anything that renders it invalid as an error.

Directory: /trunk/wiretap/
  Changes    Path          Action
  +60 -20    pcapng.c      Modified