aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
AgeCommit message (Collapse)AuthorFilesLines
2008-09-30From jmmikkel@mit.edu (Bug 2895):Sake Blok1-1/+10
We might receive new packets while redissecting and don't want to dissect those before the packet-list is fully rebuilt. svn path=/trunk/; revision=26309
2008-08-26#include <emem.h> not req'dBill Meier1-1/+0
svn path=/trunk/; revision=26093
2008-08-01Remove a few warnings.Stig Bjørlykke1-3/+3
svn path=/trunk/; revision=25899
2008-06-24Have separate callback mechanisms in file.c and capture.c; pass theGuy Harris1-2/+2
capture callbacks the capture_options * as its second argument in all cases. This makes it a bit clearer what arguments callbacks take, and means we can get rid of all global_capture_opts references in gtk/main_statusbar.c. Put the interface between gtk/main.c and gtk/main_statusbar.c into a private header. svn path=/trunk/; revision=25576
2008-06-14Update all time columns when changing the time precision.Stig Bjørlykke1-11/+12
Not implemented for conversation relative and delta time yet, because this will need a reload as they are set by the dissectors and does not exist in the frame data. svn path=/trunk/; revision=25452
2008-05-30Return the appropriate "everything OK" types.Guy Harris1-2/+2
svn path=/trunk/; revision=25405
2008-05-30Again, the err_info returned from wtap_read() and wtap_seek_read() is aGuy Harris1-1/+1
g_mallocated string, so it's not const. Fix a comment to reflect reality (err_info is some additional information about the error returned by Wiretap, e.g. some gory details about the error, mainly useful to developers and support people). svn path=/trunk/; revision=25401
2008-05-30Free up the err_info string returned by wtap_read() andGuy Harris1-2/+4
wtap_seek_read(). Clean up indentation. svn path=/trunk/; revision=25400
2008-05-22Move the file utility functions from wiretap to libwsutil so thatJeff Morriss1-23/+23
libwireshark (and the plugins using those functions) do not depend on wiretap on Windows. While doing that, rename the eth_* functions to ws_*. svn path=/trunk/; revision=25354
2008-04-14we don't need stat_menu.h hereUlf Lamping1-1/+0
svn path=/trunk/; revision=25010
2008-04-12move tap_dfilter_dlg.h from / to /gtk (and use the callback mechanism in ↵Ulf Lamping1-2/+0
main.c instead) svn path=/trunk/; revision=24956
2008-04-12Fetch return from g_list_remove.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=24945
2008-04-12improve the "simple" callback mechanism, so more than one listener is possibleUlf Lamping1-14/+40
svn path=/trunk/; revision=24936
2008-03-26Do not add packet length twice to cum_bytes when having a TIME REF frame.Stig Bjørlykke1-5/+5
This fixes bug 2387. svn path=/trunk/; revision=24730
2008-03-18Allow custom columns in export as CSV and PSML.Stig Bjørlykke1-4/+10
svn path=/trunk/; revision=24683
2008-03-18Bah, committed the wrong file.Stig Bjørlykke1-2/+2
Second try on allow custom columns when printing. svn path=/trunk/; revision=24682
2008-03-17Allow custom columns when printing.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=24679
2008-03-11From Francesco Fondelli (bug 2349):Stig Bjørlykke1-0/+59
Attached is a patch to export packets data as "C Arrays". I often have the need to [re]send data captured with wireshark using a raw/pf_packet socket. Output format is one char[] per packet, it looks like almost the same as the one produced by "Follow TCP stream". svn path=/trunk/; revision=24604
2008-03-10Removed an unused variable.Stig Bjørlykke1-1/+0
svn path=/trunk/; revision=24597
2008-03-10Fix bug #2343: Huge increase in Wireshark runtime memory foot print ...Stephen Fisher1-13/+2
svn path=/trunk/; revision=24595
2008-03-01Custom column updates:Stephen Fisher1-0/+17
- Change apply / prepare / ... as filter to use the field's value, which is now stored in fdata as well as cinfo. Now we don't have to reprocess the entire packet list when using these features. This also prevents the use of these features from overwriting custom column information. (custom columns can now be used in apply / prepare ... as filter) - Break col_expr and col_expr_val out into a struct that is included not only in cinfo, but now also fdata. - Have col_custom_set_fstr() quote FT_STRING & FT_STRINGZ when storing the col_expr_val value (for filter creation). svn path=/trunk/; revision=24511
2008-02-13Check in changes originally checked in as SVN revision 24308 (new columnStephen Fisher1-3/+7
type: Custom) that were backed out in SVN revision 24309. Changes since that revision include a reworking of the handling of the cfile/cinfo variables in epan/column-utils.c, addition of three new functions to libwireshark.def and a bug fix to prevent a crash when no custom columns were not in use. Compilation verified locally on MacOS X, Linux and Windows. svn path=/trunk/; revision=24317
2008-02-12Revert commit 24308 until I can get it to compile on Windows/Linux/SolarisStephen Fisher1-7/+3
(strangely, it compiled fine on my MacOS X machine). svn path=/trunk/; revision=24309
2008-02-12Introduce a new column type called custom, which lets you put any displayStephen Fisher1-3/+7
filter name in the description field and it will display that field in the packet list if it occurs in that packet. Note that the more common fields are implemented, but a number of them remain to be implemented in epan/proto.c. I will work on these other fields as I have time. svn path=/trunk/; revision=24308
2008-01-24Fixed some malloc -> g_malloc, free -> g_free, strdup -> g_strdup.Stig Bjørlykke1-3/+3
svn path=/trunk/; revision=24179
2007-12-05Make sure the "auto scroll in live capture" toolbar button and menu itemGerald Combs1-15/+13
correctly reflect the auto scroll state. Re-enable the ability to use the auto scroll toolbar button and menu item during a live capture. svn path=/trunk/; revision=23777
2007-11-28Apply coloring rules also when a frame is marked so that when a frameSake Blok1-5/+6
is un-marked *after* enabling coloring it is still colored. Fixes bug 2038 svn path=/trunk/; revision=23648
2007-07-30As per Ulf's request add ${proto.field} macros that will use the value of ↵Luis Ontanon1-1/+4
the given field has in the last selected packet. svn path=/trunk/; revision=22427
2007-07-09From Dustin Johnson: If "Update list of packets in real time" andGerald Combs1-2/+6
"Automatic scrolling in live capture" are both enabled, make the scroll bar behavior more natural. If the packet list is scrolled to the bottom, scroll automatically. If the user scrolls back, keep the packet list scrolled at that point instead of jumping back to the end. svn path=/trunk/; revision=22277
2007-06-04Fix for bug #93: changes to the columns has no effect until restartStephen Fisher1-0/+1
These changes allow the packet list clist to be destroyed and recreated with the new column titles/values/order that the user changed in the preferences without restarting Wireshark. svn path=/trunk/; revision=22038
2007-05-29Use G_GINT64_MODIFIER, rather than the PRI[douxX]64 macros, for GLibGuy Harris1-2/+2
routines and routines using those routines. GLib might use different modifiers for 64-bit quantities than the platform's C library does. svn path=/trunk/; revision=21990
2007-05-21From Sake Blok:Stephen Fisher1-6/+6
Fix for bug #1056 svn path=/trunk/; revision=21867
2007-04-03Fix warnings on Linux/gcc 4.1.1Stephen Fisher1-2/+5
svn path=/trunk/; revision=21330
2007-03-28Remove almost all of the casts I committed recently and in place ofStephen Fisher1-3/+3
them, add -Wno-pointer-sign to CFLAGS when gcc will accept it. svn path=/trunk/; revision=21253
2007-03-23Fix about 150 warnings new to gcc 4.0 in the error on warning directories.Stephen Fisher1-3/+3
Comment out -Werror in plugins/asn1/ until warnings can be fixed. svn path=/trunk/; revision=21158
2007-03-23From Sake Blok:Stephen Fisher1-7/+11
Fix for bug #491: Unexpected frame.time_delta behavior This patch ... fixes bug 491. It does this by changing the behaviour of the frame.time_delta field so it reflects the delta time between captured packets (tshark already did this). To keep the delta time between displayed packets, the field frame.time_delta_displayed is created. svn path=/trunk/; revision=21154
2007-03-22Add -Werror when using GCC only to the Makefile.am of the baseStephen Fisher1-7/+8
directory and most of the plugins to match the same command put in the Makefile.nmake files for Windows compliations. Fix a few warnings when compiling under gcc 3.4.4 on FreeBSD. Create new automake file variable called USING_GCC in configure.in and wiretap/configure.in to acomplish the above -Werror addition. svn path=/trunk/; revision=21127
2007-03-14Don't enable "Save As" if you don't have an unsaved live capture fileGuy Harris1-0/+22
and there are no formats in which the file can be saved by some means other than copying the raw data; "Save As" isn't a very useful function in that case, and that prevents us from having an empty list of formats in which the file can be saved. svn path=/trunk/; revision=21032
2007-02-20Squelch some unused variable warningsJeff Morriss1-1/+1
svn path=/trunk/; revision=20873
2007-02-01we dont have auto_scroll_live if we dont have PCAP so ifdef this out unless ↵Ronnie Sahlberg1-0/+2
PCAP is available (to allow it to compile when pcap is not available) svn path=/trunk/; revision=20662
2007-01-18Add separate union entries to fvalue.value for signed and unsignedMartin Mathieson1-1/+1
32-bit numbers. Separate signed and unsigned accessors have been added and used where appropriate. Definitely not for 0.99.5. svn path=/trunk/; revision=20472
2007-01-15instead of simply doing an assert when running out of memory in emem, throw ↵Ulf Lamping1-4/+60
a new OutOfMemoryError Exception, so file.c can show at least a better explanation to the user before Wireshark terminates XXX - to prevent a busy wait, I need a portable way to wait for a short time period, like Sleep() for Windows svn path=/trunk/; revision=20437
2007-01-15minor bugfix of file loading: don't update the packet list if loading a ↵Ulf Lamping1-1/+4
smaller file, the update takes longer than the file to load. svn path=/trunk/; revision=20434
2007-01-13New "decode as ..." feature for BER-encoded files (WTAP_FILE_BER). Graeme Lunt1-0/+6
A BER-encoded file can be dissected as one of a number of registered syntaxes (registered using register_ber_syntax_dissector()). Syntaxes may also be associated with OIDs (or other strings) using register_ber_oid_syntax(). A default syntax with which to dissect a BER-encoded file is determined from its filename (extension). For example, ".cer" and ".crt" files will be dissected as "Certificate". svn path=/trunk/; revision=20414
2007-01-11Fix for bug #1140: Filtering messes up packet list sort orderStephen Fisher1-0/+3
svn path=/trunk/; revision=20394
2007-01-11Fix for bug #1196: packet detail & packet bytes windows not updated underStephen Fisher1-0/+4
certain circumstances when applying a display filter that does not include the currently selected packet. svn path=/trunk/; revision=20389
2007-01-01break out dfcode from the capture file structure and declare it locally ↵Ronnie Sahlberg1-18/+84
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 svn path=/trunk/; revision=20251
2006-11-21while loading a huge capture file, enable the main window to show packets ↵Ulf Lamping1-0/+6
rushing into the packet list svn path=/trunk/; revision=19943
2006-11-14New feature to automatically highlight the field found when doing a find.Stephen Fisher1-0/+8
This works for both string and hex searches. This resolves feature request bug #776. svn path=/trunk/; revision=19897
2006-11-05change all file offsets from long to gint64 so we can - theoretically - ↵Ulf Lamping1-6/+6
handle files > 2GB correct. Please distclean Win32 builds! svn path=/trunk/; revision=19814