Re: [tcpdump-workers] new file format

2004-07-26 Thread Guy Harris
On Jul 23, 2004, at 11:57 AM, Gianluca Varenni wrote: If the file is transfered from win to unix in ASCII mode, the file should become \n\n\r .. In this case we recognize the first three characters "\n\n\r", try to convert the first 12 bytes from unix-ascii to win-ascii, and check the by

Re: [tcpdump-workers] new file format

2004-07-26 Thread Fulvio Risso
I would like to propose the string "\r\n\r\x1A", so that: - correct byte order, correct ftp transfer ==> "\r\n\r\x1A" - correct byte order, wrong ftp UNIX to Win ==> "\r\n\n\r\" - correct byte order, wrong ftp Win to UNIX ==> "\n\r\x1A\?" - changed byte order, correct ftp transfer ==> "\x1A\r\n\