aboutsummaryrefslogtreecommitdiffstats
path: root/cfile.h
Commit message (Collapse)AuthorAgeFilesLines
* another two steps towards privilege seperation:Ulf Lamping2005-02-061-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. svn path=/trunk/; revision=13320
* (some) redesign of capture data structures.Ulf Lamping2005-02-041-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 svn path=/trunk/; revision=13276
* move capture_file_fd field from capture_file to capture_opts type, as this ↵Ulf Lamping2005-02-031-1/+0
| | | | | | is the place where it should be svn path=/trunk/; revision=13268
* Set the svn:eol-style property on all text files to "native", so thatGuy Harris2004-07-181-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. svn path=/trunk/; revision=11400
* Rename a bunch of variables and routines that pertain to string searchGuy Harris2004-04-151-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. svn path=/trunk/; revision=10609
* added some more info to the statusbar (filesize, packet count, ..),Ulf Lamping2004-02-031-1/+2
| | | | | | fixed a minor bug in the cfile handling (file length in summary dialog) svn path=/trunk/; revision=9961
* There's no need to keep a "FILE *" for the file being printed to in aGuy Harris2004-01-251-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. svn path=/trunk/; revision=9828
* We don't need to keep the progress bar quantum or next step in theGuy Harris2004-01-091-3/+1
| | | | | | | capture_file structure - just make it local to the routine scanning through the packets. svn path=/trunk/; revision=9616
* Make "finfo_selected" a member of a "capture_file" structure rather thanGuy Harris2003-09-241-1/+2
| | | | | | an independent global variable. svn path=/trunk/; revision=8524
* Add a routine to return the display name for a "capture_file" structure,Guy Harris2003-09-151-2/+1
| | | | | | | rather than constructing that name when a capture file is opened and putting a pointer to it in that structure. svn path=/trunk/; revision=8476
* Keep a "display name" as part of a capture_file structure; for liveGuy Harris2003-09-151-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. svn path=/trunk/; revision=8474
* Get rid of the EBCDIC stuff in the find dialog - it's not supported yet,Guy Harris2003-08-291-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. svn path=/trunk/; revision=8306
* From Greg Morris: code to support searches for text or raw binary dataGuy Harris2003-07-221-1/+4
| | | | | | in a frame in Find Frame. svn path=/trunk/; revision=8067
* Forgot to add two filesRonnie Sahlberg2002-09-061-0/+84
svn path=/trunk/; revision=6204