Commit Graph

43 Commits

Author SHA1 Message Date
Ulf Lamping 4e973150ea fix bug #660: we must alphabetically sort columns 0&1, not 0&2
svn path=/trunk/; revision=16974
2006-01-07 11:08:07 +00:00
Guy Harris f34e1a97c6 Have cf_retap_packets() take an argument that indicates whether to
generate columns; use cf_retap_packets instead of cf_redissect_packets()
when running taps (the general flow graph stat uses the Info column).

svn path=/trunk/; revision=15793
2005-09-14 08:59:41 +00:00
Ulf Lamping eafbbbcabb renamed ui_util.c/.h to gui_utils.c/.h to prevent confusion with identical named ui_util.h in / dir
svn path=/trunk/; revision=15465
2005-08-20 12:09:48 +00:00
Ulf Lamping d28861b607 removed tons of MSVC const related warnings.
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-10 19:49:45 +00:00
Luis Ontanon 222cd82f4f have the definition of init_hostlist_table *ACTUALLY* match its declaration.
svn path=/trunk/; revision=15229
2005-08-05 22:36:28 +00:00
Luis Ontanon 90badc628d have the definition of init_hostlist_table match the declaration.
svn path=/trunk/; revision=15228
2005-08-05 22:34:45 +00:00
Jörg Mayer 4e1f4b18ab More char -> const char warning fixes.
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-05 20:59:08 +00:00
Ulf Lamping 832fc14ad8 MSVC: fix some guint64 related compiler warnings, could someone please review my comment(s), I don't think it's currently implemented correct
svn path=/trunk/; revision=14887
2005-07-09 11:26:46 +00:00
Ronnie Sahlberg 897a12c305 make the packets/bytes counters 64bit integers to not wrap when using really large captures.
setting packet counter to 64bit is overkill but makes it consistent with the very similar bytes counter.



svn path=/trunk/; revision=14872
2005-07-07 22:24:28 +00:00
Anders Broman 2ab0496a72 From Mike Duigou:
In order to get filtering of conversations and
> endpoints to work from the endpoints and conversations windows I found 
> it necessary to add a new AT_URI address type and a SAT_JXTA. This also 
> necessitated a change to to_str.c to avoid a buffer overflow problem. 
> Please review these changes carefully.
> 
> Also includes some changes to the jxta dissector to fix filtering on
> generated fields and some changes to the types used for ints/unsigned ints.
> 
> Fixes a bug with the processing of messages containing namespaces.

svn path=/trunk/; revision=14714
2005-06-20 20:14:22 +00:00
Luis Ontanon f0c8a7ab65 From Francisco Alcoba:
changed the behaviour of get_addr_name:
 - resolve to a name if the address supports it
 - call address_to_str if it does not, but the address is valid
 - return "NONE" if it is AT_NONE


svn path=/trunk/; revision=13463
2005-02-22 01:55:04 +00:00
Ulf Lamping 0861927ce3 huge cleanup of capture file API (functions in file.c/file.h).
This includes: all functions in file.h now have a cf_ prefix, will have doxygen tags, will have the capture_file *cf as the first parameter and I tried to generalize the return values for non trivial functions.

Hopefully, I didn't introduced any new bugs, as I had to change a lot of files...

svn path=/trunk/; revision=13289
2005-02-04 18:44:44 +00:00
Ulf Lamping 66ce7f3623 add some more online help functionality and help buttons at various dialog boxes, if a help page *is* available. However, the new help system needs a lot more work before completed.
svn path=/trunk/; revision=13152
2005-01-20 23:17:23 +00:00
Guy Harris 4df2c4abd9 Make the signatures of functions passed to "register_tap_listener()"
match what "register_tap_listener()" expects (rather than squelching
warnings about the differences by casting function pointers to "void
*").

Make static some functions not used outside the module in which they're
defined. 

svn path=/trunk/; revision=12913
2005-01-01 12:49:54 +00:00
Guy Harris 0ccf418724 Add a "get_addr_name()" routine that takes an "address *" and attempts
to resolve it to a name.

Fix up some const-pointer-to-non-const-pointer, and
function-pointer-to-void-*, conversions.

Fix some comments.

svn path=/trunk/; revision=12863
2004-12-30 02:10:24 +00:00
Guy Harris 6472876ab3 Move the tap infrastructure to the epan directory.
svn path=/trunk/; revision=12128
2004-09-29 00:06:36 +00:00
Gerald Combs 9cde8d8a70 Put the "copy" button back in the conversation and host list tables.
svn path=/trunk/; revision=11624
2004-08-08 03:56:02 +00:00
Guy Harris 3a583aeb59 From Albert Chin: rename resolv.{ch} to addr_resolv.{ch}, so that an
include of <resolv.h> in any system header file gets the system
<resolv.h> (needed for builds on Tru64 with GTK+ 1.2[.x]).

svn path=/trunk/; revision=11615
2004-08-06 19:57:49 +00:00
Guy Harris b104e6e3eb From Ian Schorr: fix a bug where addresses were drawn to the wrong rows
in the clist, and get rid of some duplicated code.

svn path=/trunk/; revision=11613
2004-08-06 19:22:04 +00:00
Ulf Lamping 65766e4fcb from ian schorr: some performance improvements in conversation and hostlist tables, by keep freezing the clist(s) most of the time
svn path=/trunk/; revision=11539
2004-07-27 18:34:02 +00:00
Ulf Lamping f6c9daa5ec use gtk_clipboard_get(), so the "copy to clipboard" is available in all GTK2 versions
svn path=/trunk/; revision=11472
2004-07-22 18:42:50 +00:00
Ronnie Sahlberg 1824fa29c2 GdkDisplay is only available in gtk 2.2 and later
it is not available in gtk 2.0 which all of us using more prooven and stable (==obsolete) versions use.


svn path=/trunk/; revision=11455
2004-07-21 08:51:08 +00:00
Ulf Lamping 1f4829897a from Thomas Palmer: copy content of hostlist table to clipboard in csv format.
svn path=/trunk/; revision=11450
2004-07-20 23:48:50 +00:00
Guy Harris 8a8b883450 Set the svn:eol-style property on all text files to "native", so that
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
2004-07-18 00:24:25 +00:00
Ulf Lamping 683c8f587a Conversation/Endpoint list performance patch from Ian Schorr
svn path=/trunk/; revision=11373
2004-07-13 18:14:00 +00:00
Ulf Lamping 8f1057754e changed column headers, don't talk of frames but of packets
svn path=/trunk/; revision=11361
2004-07-10 11:53:51 +00:00
Guy Harris 64d5806cec Make static some routines and variables not used outside the source file
defining them.

Move declarations of some callbacks outside the source files using them
into the appropriate header, and arrange that the appropriate header is
included by those source files.

Move the SAT_E definition into a "sat.h" file, included both by
"endpoint_talkers_table.h" and "hostlist_table.h", so that both of the
latter headers can be included by the same file ("menu.c" has to include
both, as per the change in the previous paragraph).

svn path=/trunk/; revision=11096
2004-06-03 21:46:27 +00:00
Ulf Lamping 92ddb18b8c move "extern GtkWidget *main_display_filter_widget" from
various stats files to gtkglobals.h

svn path=/trunk/; revision=11073
2004-06-02 07:12:11 +00:00
Guy Harris d3b788f247 Make the definition of "add_hostlist_table_data()" match its
declaration.

Give the address and port arguments to "add_hostlist_table_data()"
appropriate names and Doxygen comments (they're not a source address and
port, they're just an address and port), and do the same for the address
and port members of a "hostlist_talker_t".

Get rid of extra unnecessary variables in "add_hostlist_table_data()".

Clean up indentation.

svn path=/trunk/; revision=11066
2004-06-01 23:00:24 +00:00
Ulf Lamping 09c030170a minor bugfix from previous check in
svn path=/trunk/; revision=11064
2004-06-01 22:00:22 +00:00
Ulf Lamping 1f27d91439 add details for doxygen, various code cleanups as a result of this
svn path=/trunk/; revision=11062
2004-06-01 21:56:04 +00:00
Ulf Lamping cc68368037 use new functions in window API (ui_util.h),
use window_new instead of dlg_window_new for the statistics windows
(as these are no dialog windows)
do some code cleanup

svn path=/trunk/; revision=10979
2004-05-23 23:24:07 +00:00
Ulf Lamping bd96071d8c rename context menu items:
Match -> Apply as Filter
Prepare -> Prepare a Filter
and prepended a ... at appropriate submenu items

svn path=/trunk/; revision=10814
2004-05-07 12:15:24 +00:00
Ulf Lamping 870b3b1caf add name resolution to both endpoint and conversation lists
svn path=/trunk/; revision=10778
2004-05-03 22:15:22 +00:00
Ulf Lamping 314328d453 build a endpoints (aka hostlist) dialog,
which shows all kinds of endpoints in a notebook

svn path=/trunk/; revision=10773
2004-05-02 21:16:09 +00:00
Ulf Lamping 07e8972f61 after retapping, immediately redraw table to avoid
annoying redraw even on "static" capture files

svn path=/trunk/; revision=10770
2004-05-02 15:23:42 +00:00
Ulf Lamping 52a04a6f71 bugfix: remove all elements on "tree reset", don't keep the first entry in the list
svn path=/trunk/; revision=10757
2004-05-01 19:24:44 +00:00
Ulf Lamping 1717eed35f added a close button to the dialogs
svn path=/trunk/; revision=10583
2004-04-12 07:10:11 +00:00
Ulf Lamping 7b62a629e8 replaced sprintf / snprintf by g_snprintf,
various other string related changes

svn path=/trunk/; revision=10373
2004-03-13 15:15:26 +00:00
Guy Harris 6064ef84c2 Add a "force" argument to "filter_packets()" and
"main_filter_packets()", to force the filtering to be done even if the
filter is the same as the current one; this is necessary in order to
make sure "Follow TCP Stream" gets the packets processed even if you're
filtering the stream that's currently filtered in.

svn path=/trunk/; revision=10209
2004-02-23 22:48:52 +00:00
Guy Harris ab788d2688 Make the tap names for host statistics use "hosts" instead of "conv",
and make the tap names for endpoint statistics use "endpoints" instead
of "conv".

Similarly, make the titles for their windows say "Hosts" or "Endpoints"
rather than "Conversations".

svn path=/trunk/; revision=10195
2004-02-23 05:35:47 +00:00
Guy Harris e333d94262 FN_{SRC,DST}_ADDRESS and FN_{SRC,DST}_PORT aren't used - get rid of
them.

Add support for "Find Frame" and "Colorize Host Traffic" menus, similar
to what the endpoint table has.

svn path=/trunk/; revision=10121
2004-02-20 09:27:24 +00:00
Guy Harris 9c7c10744a From Ian Schorr: taps to keep statistics of traffic by host.
svn path=/trunk/; revision=10120
2004-02-20 09:09:12 +00:00