Wireshark-commits: [Wireshark-commits] rev 38790: /trunk/wiretap/ /trunk/wiretap/: pcapng.c
Date: Tue, 30 Aug 2011 06:01:45 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=38790

User: guy
Date: 2011/08/29 11:01 PM

Log:
 A zero snaplen means "snaplen unknown", as in "the file format from
 which we read the data to be written doesn't record the snapshot
 length".  A snapshot length of 0 in a pcap or pcap-ng file is not
 handled well by many programs reading those files; for pcap files, we
 write out WTAP_MAX_PACKET_SIZE as the snapshot length in that case, so
 do so for pcap-ng files as well.

Directory: /trunk/wiretap/
  Changes    Path          Action
  +2 -1      pcapng.c      Modified