aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
AgeCommit message (Collapse)AuthorFilesLines
1999-05-11Fixed problem where filename of capture file would not be displayed inGilbert Ramirez1-2/+4
status bar if invoked by "ethereal -r filename". svn path=/trunk/; revision=278
1999-05-11Live data capture and display enhancement that allows network capture andLaurent Deniel1-3/+163
display of fully decoded packets at the same time. Options added: -F : fork capture process -S : sync mode ala tail -f (implies -F) -f : filter expression -Q : exit after capture (implies -k) svn path=/trunk/; revision=276
1999-04-06Capturing packets from ethereal now saves the capture in an "anonymous" ↵Gilbert Ramirez1-7/+14
buffer. That is, it's a random name chosen by tempnam(), unknown to the user. If the user decides to save that trace, he then uses File | Save to save it to a file. File | Save As lets him make a copy of his named trace file as well. I also updated my e-mail address in the various credit locations. svn path=/trunk/; revision=242
1999-03-23Removed all references to gtk objects from packet*.[ch] files. They nowGilbert Ramirez1-2/+2
reference the protocol tree with struct proto_tree and struct proto_item objects. That way, the packet decoding source code file can be used with non-gtk packet decoders, like a curses-based ethereal, e.g. I also re-arranged some of the information in packet.h to more appropriate places (like other packet-*.[ch] files). svn path=/trunk/; revision=223
1999-03-20Re-wrote the NCP module in accordance with how NCP is really organized.Gilbert Ramirez1-2/+6
NCP is still not decoded much, but the infrastructure for doing so is now in place, including a hashtable to record the NCP type of each request so that we now how to parse the response. svn path=/trunk/; revision=215
1999-03-01Added display filters to wiretap.Gilbert Ramirez1-1/+7
svn path=/trunk/; revision=198
1999-01-21I changed the wtap_open_offline() function so that it takes only theGilbert Ramirez1-2/+2
filename as the parameter. So far all the filetypes that wiretap can read can be inferred from the first few bytes of the file, so we never have to give wiretap a hint as to the file type. svn path=/trunk/; revision=173
1999-01-07I removed the per-file encapsulation type from wiretap, and make all filetypesGilbert Ramirez1-6/+2
provide a per-packet encapsulation type. this required minor modifications to ethereal. svn path=/trunk/; revision=162
1999-01-03The "lnk_t" field of per-packet data, and the "pkt_encap" field in theGuy Harris1-1/+3
packet header, are there only if "wiretap" is used, so protect their use with "#ifdef WITH_WIRETAP". svn path=/trunk/; revision=147
1999-01-02Added the iptrace (AIX's packet-capture tool) file format to wiretap.Gilbert Ramirez1-1/+2
This necessitated a change in ethereal because iptrace supports multi-NIC packet capturing, including multi-datalink-type capturing. svn path=/trunk/; revision=145
1998-12-29* Added Joerg Mayer's Vines patchGerald Combs1-118/+28
* Added Joerg to the AUTHORS file * Added Guy's bitfield decode patch * Fixed time output svn path=/trunk/; revision=142
1998-12-17A patch spread across many files to let Ethereal compile under GTK+-1.1.x.Gilbert Ramirez1-2/+12
Tests for GTK versions are done during compilation, not during "./configure". The big problems have been taken care of in this patch (functional change in the packet clist and conversion of menu_factory to item_factory), but plenty of smaller problems with dialogue boxes abound. I have fixed a small problem with file_open*(), but have left 2 comments in just in case I'm not going about this the right way. Can someone verify? svn path=/trunk/; revision=127
1998-11-17* Added column formatting functionality.Gerald Combs1-7/+9
* Added check_col(), add_col_str() and add_col_fmt() to replace references to ft->win_info. * Added column prefs handling code. svn path=/trunk/; revision=97
1998-11-15Add support to wiretap for reading Sun "snoop" capture files.Guy Harris1-7/+19
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-12A lengthy patch to add the wiretap library. Wiretap is not used by defaultGilbert Ramirez1-4/+49
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
1998-10-13Squelch a number of "-Wall" errors by:Guy Harris1-1/+6
1) renaming "snprintf.h" to "snprintf-imp.h" (it contains stuff used by the "snprintf()" *implementation*, but not stuff it *exports*); 2) creating a new "snprintf.h" to declare "vsnprintf()" and "snprintf()"; 3) removing an unused variable; 4) fixing a call to "add_item_to_tree()" to handle the possibility of "ntohl()" returning a "long" rather than an "int". svn path=/trunk/; revision=47
1998-10-13* Pod page updateGerald Combs1-2/+2
* Minor tweaks to the filter prefs svn path=/trunk/; revision=40
1998-10-12- Fixed status bar printing error (the total number of packets were beingGerald Combs1-2/+2
printed instead of the total number of drops) svn path=/trunk/; revision=39
1998-10-12- Added match_strval function to packet.cGerald Combs1-8/+10
- Separated display and capture filters; rearranged some of the look and feel - Lots of other miscellaneous fixes and updates svn path=/trunk/; revision=38
1998-10-10* OSPF alignment fixes (Gerald)Gerald Combs1-1/+5
* FDDI support (Laurent, Guy) svn path=/trunk/; revision=36
1998-09-27Merged in a _huge_ patch from Guy Harris. It adds a time stap column,Gerald Combs1-13/+48
generalizes the column printing code, adds a "frame" tree item to the tree view, and fixes a bunch of miscellaneous coding bugs. svn path=/trunk/; revision=31
1998-09-25* Ethernet manufacturer support (Laurent)Gerald Combs1-2/+2
* PPP fixes (Gerald) * Null/loopback interface support (Gerald) svn path=/trunk/; revision=25
1998-09-17* Added Mike Hall's TCP reconstruction code.Gerald Combs1-1/+4
svn path=/trunk/; revision=10
1998-09-16Added ID tags to the beginning of each source file.Gerald Combs1-0/+2
svn path=/trunk/; revision=7
1998-09-16Initial revisionGerald Combs1-0/+356
svn path=/trunk/; revision=2