aboutsummaryrefslogtreecommitdiffstats
path: root/filters.c
AgeCommit message (Collapse)AuthorFilesLines
2002-08-28Removed trailing whitespaces from .h and .c files using thejmayer1-9/+9
winapi_cleanup tool written by Patrik Stridvall for the wine project. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6117 f5534014-38df-0310-8fa8-9805f1628bb7
2002-01-21Include files from the "epan" directory and subdirectories thereof withguy1-2/+2
"epan/..." pathnames, so as to avoid collisions with header files in any of the directories in which we look (e.g., "proto.h", as some other package has its own "proto.h" file which it installs in the top-level include directory). Don't add "-I" flags to search "epan", as that's no longer necessary (and we want includes of "epan" headers to fail if the "epan/" is left out, so that we don't re-introduce includes lacking "epan/"). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4586 f5534014-38df-0310-8fa8-9805f1628bb7
2001-10-24Have a routine that takes a file name for a personal configuration fileguy1-15/+6
and generates the path name; have it, if the file is to be opened for reading on Win32, check whether it exists and, if not, check for it in the old home directory-based configuration directory and, if so, return that path instead, so that files saved with earlier versions of Ethereal will be seen. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4072 f5534014-38df-0310-8fa8-9805f1628bb7
2001-10-23Add a new routine to create the ".ethereal" directory for a user.guy1-17/+1
Use that routine rather than duplicating that code in the routines to write out the preference file and filter files. Use it in the code for the color filter dialog, so that the directory in question is created if necessary. As that routine returns an error indication, have the code that calls that routine put up a message box if the attempt fails. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4065 f5534014-38df-0310-8fa8-9805f1628bb7
2001-10-22Add a routine to get the directory in which personal configuration filesguy1-22/+19
reside. Use it, rather than concatenating the user's home directory and ".ethereal" in a number of files. Fix up some additional places to use G_DIR_SEPARATOR_S as the pathname separator. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4061 f5534014-38df-0310-8fa8-9805f1628bb7
2001-10-21Use G_DIR_SEPARATOR_S rather than "/" as a pathname separator in formatguy1-9/+11
strings used to generate pathnames. Move the definition of PF_DIR from <epan/epan.h> to <epan/filesystem.h>, so that files requiring only the definition of PF_DIR don't have to include <epan/epan.h>, and get rid of no-longer-necessary includes of <epan/epan.h>. Add a routine to get the directory for "system files" such as "/etc/ethers" - it's "/etc" on UNIX, and the datafile directory on Windows (as there's no "/etc" on Windows). Use that to construct the pathname of the ethers and ipxnet files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4056 f5534014-38df-0310-8fa8-9805f1628bb7
2001-04-02"get_home_dir()", in "epan/filesystem.c", usesguy1-2/+2
"find_last_pathname_separator()" on Win32; move the other pathname manipulation routines from "util.c" into "epan/filesystem.c". Remove from "util.h" the declarations of routines not defined in "util.c", and put them into "epan/filesystem.h" if they're not already there. Adjust #includes to make the above work. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3241 f5534014-38df-0310-8fa8-9805f1628bb7
2001-03-15Win32 doesn't have an "atomic rename" operation of the sort that UNIXguy1-3/+18
has - or, if it does, it's not "MoveFile()", and "rename()" doesn't use it, so you have to make sure the target of a rename doesn't exist before doing the rename. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3134 f5534014-38df-0310-8fa8-9805f1628bb7
2001-03-13It's generally considered Bad Form to free something up if you've handedguy1-2/+1
it to somebody else to use; don't do that. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3127 f5534014-38df-0310-8fa8-9805f1628bb7
2001-02-03Increment the line number for every line seen.guy1-12/+11
Fix the handling of one error case. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2981 f5534014-38df-0310-8fa8-9805f1628bb7
2001-02-03Allow filter names and expressions of arbitrary length, and, in theguy1-30/+170
filter files, escape quotes and backslashes so that quotes and backslashes in filter names work. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2980 f5534014-38df-0310-8fa8-9805f1628bb7
2001-01-28Include <direct.h>, if we have it, to declare "mkdir()" on Windows.guy1-1/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2953 f5534014-38df-0310-8fa8-9805f1628bb7
2001-01-28Have separate capture and display filter lists; some filter dialog boxesguy1-37/+261
use the capture filter lists, and others use the display filter list, as appropriate. Have separate menu items for editing the capture and display filter lists. Have separate "~/.ethereal/cfilters" and "~/.ethereal/dfilters" files for the two lists; if either of those files isn't found, we try "~/.ethereal/filters", which means that you will start out with two identical lists holding all your filters - if certain filters belong only in one list, you'll have to delete them by hand from the other list. Do I/O error checking when reading and writing filter lists; when writing a filter list, write it to a new file, and then rename the new file on top of the old file, so that you don't lose your old filter list if, for example, you run out of disk space or disk quota. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2948 f5534014-38df-0310-8fa8-9805f1628bb7
2001-01-28Call "get_filter_list()" when Ethereal starts up.guy1-8/+21
Have it free up any list of filters we already have before reading in new filters. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2947 f5534014-38df-0310-8fa8-9805f1628bb7
2001-01-28Pull the stuff to read and write the list of filter expressions up intoguy1-0/+144
a file in the top-level directory. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2946 f5534014-38df-0310-8fa8-9805f1628bb7