aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/main.c
AgeCommit message (Collapse)AuthorFilesLines
2005-09-20if the capture child pops up it's own console, title it as suchUlf Lamping1-2/+5
svn path=/trunk/; revision=15889
2005-09-08set the window title of the Win32 debug consoleUlf Lamping1-0/+3
svn path=/trunk/; revision=15720
2005-09-07don't wait for a keypress if this is a capture child. This was very ↵Ulf Lamping1-2/+2
annoying, as stopping a capture seems to freeze Ethereal, but it simply waits for a keypress on the capture_child's console window. svn path=/trunk/; revision=15718
2005-09-03Use the "svnversion" variable, exported by version_info.c, to print theGuy Harris1-6/+2
version number from SVN for non-release builds, just as Tethereal does. Fixes bug 408. svn path=/trunk/; revision=15674
2005-09-01convert one sprintf into g_snprintf()Ronnie Sahlberg1-4/+2
at the same time, make proto_construct_dfilter_string() return an emem allocated string. This fixes a tiny memleak in print.c that never freed the string returned by this function. svn path=/trunk/; revision=15651
2005-08-25timestamp display precision:Ulf Lamping1-4/+4
- automatic adjustment depending on file format - manual adjustment through menu items save the setting in the recent file svn path=/trunk/; revision=15534
2005-08-25The "secs" field of a "struct wtap_nstime" is a time_t, so it could beGuy Harris1-2/+4
an int or it could be a long; print stuff computed from it with %lu, and cast the arguments to "long" so that it works on platforms where time_t *isn't* a long and where "long int" and "int" have different sizes. svn path=/trunk/; revision=15523
2005-08-24EVERYTHING IN THE BUILDBOT IS GOING TO BE RED!!! Sorry! Ulf Lamping1-1/+1
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... svn path=/trunk/; revision=15520
2005-08-20Rename epan/stat.[ch] to epan/stat_cmd_args.[ch] - it only deals withGuy Harris1-1/+1
implementing the "-z" command-line arguments, it doesn't deal with *all* issues for stats. svn path=/trunk/; revision=15483
2005-08-20renamed ui_util.c/.h to gui_utils.c/.h to prevent confusion with identical ↵Ulf Lamping1-2/+2
named ui_util.h in / dir svn path=/trunk/; revision=15465
2005-08-19Move the stats.[ch] stuff into epan, so plugins can use it.Guy Harris1-1/+1
svn path=/trunk/; revision=15429
2005-08-19Move the APIs for registering and processing "-z" command-line argumentsGuy Harris1-17/+17
and "Statistics" menu items into "stat.h" and "stat.c", to separate them from the core tapping APIs. A tap could conceivably not register as a "-z" command-line argument or "Statistics" menu item, and a stat could conceivably not be implemented as a tap, and dissectors that implement tapping points don't need the UI-related stuff from "stat.h", they just want the tap-related stuff in <epan/tap.h>. svn path=/trunk/; revision=15427
2005-08-19Have "f_datalen" keep track of the number of bytes of uncompressed fileGuy Harris1-10/+10
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). svn path=/trunk/; revision=15415
2005-08-16Move SVNVERSION handling into version_info. That way, we won't haveJörg Mayer1-6/+2
to recompile tethereal.o etc each time the svn version has changed, relinking is sufficient. I'm not sure what to do about mergecap, as it currently doesn't link against version_info, so it's "overhead" either way. svn path=/trunk/; revision=15371
2005-08-12Add beginning of seasonal allocation in addition to the existing ephemeral ↵Ronnie Sahlberg1-0/+1
ones. svn path=/trunk/; revision=15301
2005-08-10removed tons of MSVC const related warnings.Ulf Lamping1-1/+1
This might at some places interfere with the changes for gcc4, we might have to negotiate in that case :-) Please note that a lot of these warnings were GTK1.x related only! svn path=/trunk/; revision=15286
2005-08-05More char -> const char warning fixes.Jörg Mayer1-1/+1
Removed (very few) casts that only change the warning message but don't remove it (with gcc-4). svn path=/trunk/; revision=15227
2005-08-02add some minor comments around the GTK main loopUlf Lamping1-0/+2
svn path=/trunk/; revision=15189
2005-08-02Fix more "no previous declaration" warningsJörg Mayer1-6/+6
svn path=/trunk/; revision=15173
2005-07-22EMEM : a simple and FAST api to allocate memory that will be automatically ↵Ronnie Sahlberg1-0/+3
freed() when the next packet is dissected. This offesr memory allocation with a packet scope making memory leaks less likely and memory management faster. Add initialization calls for both tethereal and ethereal. Convert the ip_to_str() function to use this and avoid doing the silly rotating buffers thing it previously did. We also need an equivalent set of functions for allocation with capture file scope (free when next capture is loaded) but i dont know where to put the free_all call. svn path=/trunk/; revision=14984
2005-07-19from Graeme Hewson: "Fixes for ethereal config files"Ulf Lamping1-4/+4
svn path=/trunk/; revision=14956
2005-06-26remove compiler warnings:Ulf Lamping1-1/+1
main.c(345) : warning C4090: 'function' : different 'const' qualifiers main.c(345) : warning C4022: 'simple_dialog_set_cb' : pointer mismatch for actual parameter 3 svn path=/trunk/; revision=14764
2005-06-25we are not a GNU program, so we shouldn't report as such in the command line ↵Ulf Lamping1-1/+1
help output svn path=/trunk/; revision=14753
2005-06-24More constification.Guy Harris1-2/+2
svn path=/trunk/; revision=14740
2005-06-23fix #135: handle the command line parameters -v, -h and -G completely in ↵Ulf Lamping1-99/+87
their own getopt() loop. This is done "long before" calling gtk_init() as this function requires a running X server, causing an error if running from the console only. svn path=/trunk/; revision=14736
2005-06-23Win32: "fix" handling of create_console(), hopefully clarifying usage of the ↵Ulf Lamping1-2/+4
corresponding prefs flag svn path=/trunk/; revision=14735
2005-06-23beautify version and usage outputUlf Lamping1-4/+4
svn path=/trunk/; revision=14734
2005-06-17fix a typo in the usage outputUlf Lamping1-1/+1
svn path=/trunk/; revision=14678
2005-06-16Don't hand a null pointer to a "%s" format.Guy Harris1-1/+4
svn path=/trunk/; revision=14656
2005-06-16Fix a typo, and squelch a compiler warning.Guy Harris1-1/+2
svn path=/trunk/; revision=14655
2005-06-10this is an attempt, please report problems:Ulf Lamping1-1/+19
after asking the devlist if this would break things and got no negative response, try to scan command line parameters twice, trying to "rewind" the getopt settings this way, fixing #135 svn path=/trunk/; revision=14610
2005-06-09fix positions of create_console()/destroy_console() calls for help and ↵Ulf Lamping1-3/+12
version output svn path=/trunk/; revision=14602
2005-06-09bugfix: don't crash, if cf->filename is NULL (which happens if an invalid ↵Ulf Lamping1-1/+1
capture filter is entered) svn path=/trunk/; revision=14601
2005-06-04update usage output and manual pages for both Ethereal and Tethereal to ↵Ulf Lamping1-15/+15
reflect the latest changes in the command line. clarifications of some command line parameter descriptions in the manual pages this also fixes #221 svn path=/trunk/; revision=14545
2005-05-31add new command line flag "-g", will go to a given packet, after loading a ↵Ulf Lamping1-1/+9
capture file with -r svn path=/trunk/; revision=14511
2005-05-30fix #148: (win32 only) use command line parameter -B to set capture buffer sizeUlf Lamping1-2/+6
svn path=/trunk/; revision=14484
2005-05-30First part to fix #148: use command line parameter -o not only for ↵Ulf Lamping1-25/+38
preferences but also for recent settings. This way we can simply remove the GUI related command line parameters -B, -P and -T, which are useless now. svn path=/trunk/; revision=14483
2005-05-26show the complete filename in the statusbar, as there's no good reason to ↵Ulf Lamping1-14/+26
hide it (bugzilla #198) fix various log related problems svn path=/trunk/; revision=14447
2005-05-26don't use stdout but stderr for logging, as this will confuse the capture ↵Ulf Lamping1-18/+6
childs sync_pipe (has to be solved later) svn path=/trunk/; revision=14440
2005-05-26avoid two gcc warningsUlf Lamping1-2/+3
svn path=/trunk/; revision=14439
2005-05-26use the log features of the GLib to have verbose output of the capturing ↵Ulf Lamping1-9/+72
engine, e.g. GLib provides different domains for different submodules. Output more verbose than warning level will be disabled by default (just like before). use the console_log_handler in main.c for win32 AND unix now Currently use the log for the capturing engine (only), as I desperately needed a log output for debugging. svn path=/trunk/; revision=14438
2005-05-25the capture child might not respond shortly after bringing it up (especially ↵Ulf Lamping1-12/+21
it will block, if no input coming from an input capture pipe (e.g. mkfifo) is coming in) to prevent problems, bring the main GUI into "capture mode" right after successfully spawn/exec the capture child, without waiting for any response from it svn path=/trunk/; revision=14436
2005-05-20win32 only: get interface details from WinPcap's packet.dll (direct access ↵Ulf Lamping1-3/+7
to NDIS specific driver information, upper second GTK part) svn path=/trunk/; revision=14407
2005-05-18fix #187: don't crash if using "Expand Subtrees" in an empty area, just do ↵Ulf Lamping1-5/+9
nothing in that case svn path=/trunk/; revision=14389
2005-04-30removed various gcc warningsUlf Lamping1-1/+1
svn path=/trunk/; revision=14246
2005-04-19bugfix: don't crash if we have no interface nameUlf Lamping1-1/+5
svn path=/trunk/; revision=14140
2005-04-18statusbar changes:Ulf Lamping1-13/+44
-show the current capture file size, if capturing in real time mode. -move the packet "Drops" count (if available) from file to packets statusbar part svn path=/trunk/; revision=14130
2005-04-16rename capture_clear() to capture_restart()Ulf Lamping1-1/+2
statusbar update should work now even in capture error case svn path=/trunk/; revision=14105
2005-04-16fix cf_cb_... callback handling (but it's still not perfect)Ulf Lamping1-28/+26
svn path=/trunk/; revision=14103
2005-04-12it should now be possible to use "Update packets in real time" even if used ↵Ulf Lamping1-2/+3
with one of the "Multiple files" option. If this is used together with an option where input files changes too fast (e.g. new file every second), capturing will be (hopefully) stopped. I've replaced the former capture pipe message format into a somewhat more general format to remove a lot of confusion. svn path=/trunk/; revision=14054