[Ns-bugs] [Bug 329] pcap files generated in native win32 (mingw) are always corrupt
bugzilla-daemon@nsnam-www.ece.gatech.edu
bugzilla-daemon at nsnam-www.ece.gatech.edu
Mon Oct 20 10:39:55 PDT 2008
http://www.nsnam.org/bugzilla/show_bug.cgi?id=329
------- Comment #5 from gjcarneiro at gmail.com 2008-10-20 13:39 -------
>From ascii(7) manpage:
012 10 0A LF ’\n’ (new line) 112 74 4A J
013 11 0B VT ’\v’ (vertical tab) 113 75 4B K
014 12 0C FF ’\f’ (form feed) 114 76 4C L
015 13 0D CR ’\r’ (carriage ret) 115 77 4D M
So the extra 0x0d's are carriage returns.
I suspect this could be a result of the pcap file being opened in text mode by
default, in particular in PcapWriter::Open. See
http://www.cplusplus.com/doc/tutorial/files.html
"""
Text file streams are those where we do not include the ios::binary flag in
their opening mode. These files are designed to store text and thus all values
that we input or output from/to them can suffer some formatting
transformations, which do not necessarily correspond to their literal binary
value.
"""
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Ns-bugs
mailing list