aboutsummaryrefslogtreecommitdiffstats
path: root/cfile.h
AgeCommit message (Collapse)AuthorFilesLines
2010-04-01Keep a copy of the interface description and capture filter around so thatgerald1-0/+1
we can use it in the main window title during and after capture. Add a "-X" option for providing a description for stdin. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32357 f5534014-38df-0310-8fa8-9805f1628bb7
2009-12-17Introduce "Ignore Packet" in the packet list.stig1-0/+1
This will remove the package from the dissection functions without removing it from the capture file. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31287 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-22Rename init_cap_file() to cap_file_init()krj1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30073 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-22Introduce cap_file_add_fdata() and start using itkrj1-0/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30071 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-21Remove unused 'vers' member in capture_filekrj1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30049 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-21Remove unused 'pstats' member in capture_filekrj1-2/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30048 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-21Rename capture_file.plist to capture_file.plist_start to make it consistent ↵krj1-2/+2
with capture_file.plist_end git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30047 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-24Use g_slice if glib >=2.10etxrab1-0/+7
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29187 f5534014-38df-0310-8fa8-9805f1628bb7
2009-02-15Adjust some spacing ....wmeier1-45/+45
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27457 f5534014-38df-0310-8fa8-9805f1628bb7
2008-11-18Optimized finding current row from cfile.current_frame.stig1-0/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26804 f5534014-38df-0310-8fa8-9805f1628bb7
2008-09-30From jmmikkel@mit.edu (Bug 2895):sake1-0/+1
We might receive new packets while redissecting and don't want to dissect those before the packet-list is fully rebuilt. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26309 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-01break out dfcode from the capture file structure and declare it locally ↵sahlberg1-1/+0
where it is needed. allocate and release the dfcode program as needed instead of having it hang around in the capture file structure. this will ensure that dfcode will not have longer than se scope lifetime in case we need that property of it later git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20251 f5534014-38df-0310-8fa8-9805f1628bb7
2006-11-14New feature to automatically highlight the field found when doing a find.sfisher1-0/+1
This works for both string and hex searches. This resolves feature request bug #776. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19897 f5534014-38df-0310-8fa8-9805f1628bb7
2006-11-05change all file offsets from long to gint64 so we can - theoretically - ↵ulfl1-1/+1
handle files > 2GB correct. Please distclean Win32 builds! git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19814 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21name changesahlberg1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18197 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-25timestamp display precision:ulfl1-4/+4
- automatic adjustment depending on file format - manual adjustment through menu items save the setting in the recent file git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15534 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-24EVERYTHING IN THE BUILDBOT IS GOING TO BE RED!!! Sorry! ulfl1-2/+3
I've done more than a day to change the timestamp resolution from microseconds to nanoseconds. As I really don't want to loose those changes, I'm going to check in the changes I've done so far. Hopefully someone else will give me a helping hand with the things left ... What's done: I've changed the timestamp resolution from usec to nsec in almost any place in the sources. I've changed parts of the implementation in nstime.s/.h and a lot of places elsewhere. As I don't understand the editcap source (well, I'm maybe just too tired right now), hopefully someone else might be able to fix this soon. Doing all those changes, we get native nanosecond timestamp resolution in Ethereal. After fixing all the remaining issues, I'll take a look how to display this in a convenient way... As I've also changed the wiretap timestamp resolution from usec to nsec we might want to change the wiretap version number... git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15520 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-20Get rid of f_len field in capture_file structure - we can just keepguy1-1/+0
the length locally. within cf_read(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15454 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-19Add APIs to Wiretap to return the file of the size as supplied by the OSguy1-2/+1
(so if the file's gzipped, it's *NOT* the size of the file after uncompressing), and an approximation of the amount of that data read sequentially so far. Use those for various progress bars and the like. Make the fstat() in the Ascend trace reader directly use wth->fd, as it's inside Wiretap; that gets rid of the last caller of wtap_fd() (as we're no longer directly using fstat() or lseek() in Ethereal), so get rid of wtap_fd(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15437 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-19Have "f_datalen" keep track of the number of bytes of uncompressed fileguy1-1/+2
data, so that "f_len" still keeps the size of the underlying file (which is necessary in order to make the progress bar when files are being read work correctly). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15415 f5534014-38df-0310-8fa8-9805f1628bb7
2005-02-06another two steps towards privilege seperation:ulfl1-5/+1
move another two capture related fields (iface and cfilter) from cfile to capture_opts also move the handling of capture related command line options from main.c to capture.c, that way a future privilege seperated capture program can use the same code to parse it's command line than Ethereal. It might be even possible to share this parser code even with Tethereal, didn't took a closer look at this. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13320 f5534014-38df-0310-8fa8-9805f1628bb7
2005-02-04(some) redesign of capture data structures.ulfl1-1/+0
don't use global cfile at all but only an untpyed handle to call the cf_... functions in file.c move the save_file member from capture_file to capture_opts, as it's only used while capturing and while preparing it git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13276 f5534014-38df-0310-8fa8-9805f1628bb7
2005-02-03move capture_file_fd field from capture_file to capture_opts type, as this ↵ulfl1-1/+0
is the place where it should be git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13268 f5534014-38df-0310-8fa8-9805f1628bb7
2004-07-18Set the svn:eol-style property on all text files to "native", so thatguy1-1/+1
they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11400 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-15Rename a bunch of variables and routines that pertain to string searchguy1-2/+2
with "string" rather than "ascii", to make it clearer what they're involved with. Use "gtk_toggle_button_set_active()", not "gtk_toggle_button_set_state()" (the latter is a deprecated alias for the former, probably dating back to GTK+ 1.0[.x] - 1.2[.x] and later have "gtk_toggle_button_set_active()"). Do *NOT* change the radio buttons for the type of string search to do based on whether we're doing a string search or not - doing so means we don't correctly remember the type of string search. Get rid of code to fetch some values that we don't subsequently use. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10609 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-03added some more info to the statusbar (filesize, packet count, ..),ulfl1-1/+2
fixed a minor bug in the cfile handling (file length in summary dialog) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9961 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-25There's no need to keep a "FILE *" for the file being printed to in aguy1-2/+1
"capture_file" structure. Keep it locally, instead. Check for errors when printing packets. Report failure to open a print destination and failure to write to a print destination differently. Don't have the "print preamble" and "print final" routines return success/failure indications - revert to the old scheme where they didn't, and have the callers use "ferror()" to check for errors. Report write errors when printing dissections in Tethereal. Report print errors as errors, not warnings. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9828 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-09We don't need to keep the progress bar quantum or next step in theguy1-3/+1
capture_file structure - just make it local to the routine scanning through the packets. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9616 f5534014-38df-0310-8fa8-9805f1628bb7
2003-09-24Make "finfo_selected" a member of a "capture_file" structure rather thanguy1-1/+2
an independent global variable. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8524 f5534014-38df-0310-8fa8-9805f1628bb7
2003-09-15Add a routine to return the display name for a "capture_file" structure,guy1-2/+1
rather than constructing that name when a capture file is opened and putting a pointer to it in that structure. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8476 f5534014-38df-0310-8fa8-9805f1628bb7
2003-09-15Keep a "display name" as part of a capture_file structure; for liveguy1-1/+2
capture temporary files, it's "<capture", and for saved capture files, it's the last component of the pathname of the file. Use that in various places when displaying the file name. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8474 f5534014-38df-0310-8fa8-9805f1628bb7
2003-08-29Get rid of the EBCDIC stuff in the find dialog - it's not supported yet,guy1-5/+16
so we shouldn't torment the users by offering it. Check the string type and convert it to an internal representation in the GUI code; have the search code deal only with the internal representation. Save the case-sensitivity flag, and the indication of where string searches look, along with other search parameters. Upper-casify the string, for case-insensitive searches, in the GUI code; don't save the upper-casified string, so it doesn't SHOUT at you when you next pop up a "find" dialog. Convert the hex value string to raw binary data in the GUI code, rather than doing so in the search code. Check that it's a valid string. Connect the signals to the radio buttons after the pointers have been attached to various GUI items - the signal handlers expect some of those pointers to be attached, and aren't happy if they're not. Have "find_packet()" contain a framework for searching, but not contain the matching code; instead, pass it a pointer to a matching routine and an opaque pointer to be passed to the matching routine. Have all the routines that do different types of searching have their own matching routines, and use the common "find_packet()" code, rather than duplicating that code. Search for the Info column by column type, not by name (the user can change the name). When matching on the protocol tree, don't format the entire protocol tree into a big buffer - just have a routine that matches the text representation of a protocol tree item against a string, and, if it finds a match, sets a "we found a match flag" and returns; have that routine not bother doing any more work if that flag is set. (Unfortunately, you can't abort "g_node_children_foreach()" in the middle of a traversal.) Free the generated display filter code after a find-by-display-filter finishes. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8306 f5534014-38df-0310-8fa8-9805f1628bb7
2003-07-22From Greg Morris: code to support searches for text or raw binary dataguy1-1/+4
in a frame in Find Frame. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8067 f5534014-38df-0310-8fa8-9805f1628bb7
2002-09-06Forgot to add two filessahlberg1-0/+84
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6204 f5534014-38df-0310-8fa8-9805f1628bb7