aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/ngsniffer.c
AgeCommit message (Collapse)AuthorFilesLines
1999-03-01Added display filters to wiretap.Gilbert Ramirez1-12/+11
svn path=/trunk/; revision=198
1999-01-07I removed the per-file encapsulation type from wiretap, and make all filetypesGilbert Ramirez1-1/+2
provide a per-packet encapsulation type. this required minor modifications to ethereal. svn path=/trunk/; revision=162
1998-12-17Added Guy Harris' patch to read Sniffer ATM trace files. Very nice.Gilbert Ramirez1-116/+569
svn path=/trunk/; revision=128
1998-12-15Fix the bitmask for the hour field in a DOS-format time (not that itGuy Harris1-2/+2
matters, as that code is commented out). svn path=/trunk/; revision=125
1998-12-13Added Guy's patch to calculate date of Sniffer packet trace. I copiedGilbert Ramirez1-4/+40
bits of it to do the same for Lanalyzer packets. svn path=/trunk/; revision=123
1998-11-23Added time-stamp decoding to LANalyzer decodes, made minor comment changes toGilbert Ramirez1-6/+6
ngsniffer.c, and removed DLT_* defines from wtap.h svn path=/trunk/; revision=119
1998-11-21The Sniffer-reading code now checks to make sure that it is tryingGilbert Ramirez1-9/+19
to read an uncompressed Sniffer file. svn path=/trunk/; revision=118
1998-11-15Add support to wiretap for reading Sun "snoop" capture files.Guy Harris1-4/+15
That requires that, in the packet-reading loop, we pass to the callback routine the offset in the file of a packet's data, because we can no longer compute that offset by subtracting the size of the captured packet data from the offset in the file after the data was read - "snoop" may stick padding in after the packet data to align packet headers on 4-byte boundaries. Doing that required that we arrange that we do that for "libpcap" capture files as well; the cleanest way to do that was to write our own code for reading "libpcap" capture files, rather than using the "libpcap" code to do it. Make "wtap_dispatch_cb()" and "pcap_dispatch_cb()" static to "file.c", as they're not used elsewhere. If we're using wiretap, don't define in "file.h" stuff used only when we're not using wiretap. Update the wiretap README to reflect Gilbert's and my recent changes. Clean up some memory leaks in "wiretap/lanalyzer.c" and "wiretap/ngsniffer.c", where the capture-file-format-specific data wasn't freed if the open failed. svn path=/trunk/; revision=91
1998-11-13The Sniffer-reading code in wiretap now decodes the time field for eachGilbert Ramirez1-19/+87
packet. The date is still not taken into account, so all the traces appear to start on Jan 1, 1970. But the time of day is correct, so at least you get good delta times. svn path=/trunk/; revision=89
1998-11-13Now that I know where to find the file format of Sniffer trace files, wiretapGilbert Ramirez1-43/+114
now *properly* reads Sniffer files. I now know the field in the file header which denotes link type. svn path=/trunk/; revision=88
1998-11-12I added the LANalzyer file format to wiretap. I cleaned up some code in theGilbert Ramirez1-1/+66
wiretap functions to be more generic and therefore allow an easier integration of more packet-capture file types. I also put in all the GPL copyrights in the wiretap code. svn path=/trunk/; revision=83
1998-11-12A lengthy patch to add the wiretap library. Wiretap is not used by defaultGilbert Ramirez1-0/+36
because it is still in its infancy, but it can be compiled in optionally. The library exists in its own subdirectory ethereal/wiretap. This patch also edits all the packet-*.c files to remove the #include <pcap.h> line which is unnecessary in these files. In the ethereal code, file.c is the most heavily modified with #ifdef WITH_WIRETAP lines for the optional library. svn path=/trunk/; revision=82