aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/service_response_time_table.c
AgeCommit message (Collapse)AuthorFilesLines
2006-02-01From Greg Morris:Anders Broman1-0/+1
epan/dissectors/ncp2222.py - Fixes the NCP group values for all NCP's. Also fixes some additional return values and cleanup. gtk/ncp_stat.c - Fixes the NCP group values for SRT. gtk/service_response_time_table.c: The SRT is broken if you hit the reload button or apply a filter. The table isn't cleared so each item in the list is duplicated and the second entries remain with initial values. This patch clears the GTK_CLIST so that the redundant entries no longer appear. svn path=/trunk/; revision=17139
2005-08-24EVERYTHING IN THE BUILDBOT IS GOING TO BE RED!!! Sorry! Ulf Lamping1-3/+2
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-22Add a "time_stat_init()" routine to initialize the fields of aGuy Harris1-59/+32
"timestat_t". Move "nstime_to_msec()" to "epan/nstime.c", as it has nothing to do with a "timestat_t". Use structure assignment when possible. Fix the "addtime()" macro and use it in "time_stat_update()". Use "timestat_t"s, and the routines to manipulate them, in the service response time table code. svn path=/trunk/; revision=15509
2005-08-21Use "g_strdup_printf()" rather than formatting into a fixed-lengthGuy Harris1-46/+41
buffer and "g_strdup()"ing it. Use the nstime.c routines to compute time deltas and to add up times. Don't add rows to the CList until a procedure gets a non-zero call count, so only the ones with non-zero call counts are displayed (and especially so that procedure numbers not corresponding to real procedures aren't displayed!). Ethereal requires 64-bit integer support, so don't bother checking whether we have it. Use the right format for 64-bit integers. svn path=/trunk/; revision=15506
2005-08-20renamed ui_util.c/.h to gui_utils.c/.h to prevent confusion with identical ↵Ulf Lamping1-1/+1
named ui_util.h in / dir svn path=/trunk/; revision=15465
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-06-27Add som more const qualifiers.Anders Broman1-1/+1
svn path=/trunk/; revision=14795
2005-06-24Constify a bunch of structure members and function arguments, to squelchGuy Harris1-1/+1
compiler warnings. Clean up indentation. svn path=/trunk/; revision=14739
2005-01-01As we've made the tap_specific_data field of a tap_packet_t structure aGuy Harris1-1/+1
const pointer (so that we don't get complaints when we make the tap-specific data argument to "tap_queue_packet()" a const pointer, allowing dissectors to hand const data to a tap without a complaint), we should make the tap per-packet function take a const pointer as an argument as well. Do so. In some taps, use _U_, or actually use the argument, rather than sticking in dummy "X = X" assignments to fake use of parameters. (This means that the tap functions in question no longer have the notion that they act on a particular static structure wired in.) svn path=/trunk/; revision=12910
2004-12-31In column sort routines, make the row pointers "const" pointers, as theGuy Harris1-2/+2
arguments passed in corresponding to those pointers are gconstpointers. svn path=/trunk/; revision=12884
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-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
2004-06-02move "extern GtkWidget *main_display_filter_widget" fromUlf Lamping1-2/+3
various stats files to gtkglobals.h svn path=/trunk/; revision=11073
2004-05-07rename context menu items:Ulf Lamping1-15/+15
Match -> Apply as Filter Prepare -> Prepare a Filter and prepended a ... at appropriate submenu items svn path=/trunk/; revision=10814
2004-04-07make service response time statistics work for "unknown" rpc programs.Ronnie Sahlberg1-2/+20
all proicedures will however get "interesting" names such as "proc-1" etc except procedure 0 which is ALWAYS "NULL" svn path=/trunk/; revision=10557
2004-03-13replaced sprintf / snprintf by g_snprintf,Ulf Lamping1-12/+12
various other string related changes svn path=/trunk/; revision=10373
2004-02-23Add a "force" argument to "filter_packets()" andGuy Harris1-2/+2
"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-06replaced every appearance of gtk_scrolled_window_new() withUlf Lamping1-3/+3
scrolled_window_new(). added gtk_scrolled_window_set_policy(AUTOMATIC,AUTOMATIC) to scrolled_window_new() added GTK2's gtk_scrolled_window_set_shadow(GTK_SHADOW_IN) to every place needed svn path=/trunk/; revision=9999
2004-01-31Pass ESD_BTN_OK rather than NULL as a second argument toGuy Harris1-2/+2
"simple_dialog()"; NULL might be #defined to be a pointer expression on some platforms, causing compiler warnings (and, on platforms where a null pointer doesn't have all its bits 0, possibly causing misbehavior, although I don't think there are any such platforms on which Ethereal runs). Don't allow 0 as button mask argument to "simple_dialog()". Squelch a compiler warning. Report fatal problems as errors, not warnings. Report file I/O errors with "file_open_error_message()". Report file write errors (including those reported by "close()", e.g. some errors writing to an NFS server) when saving raw packet data to a file. svn path=/trunk/; revision=9915
2004-01-25apply automatically generated filters strings to the recent dropdown list,Ulf Lamping1-2/+3
e.g. when applying a "Follow TCP stream", fix a bug in the recent function, discarding the newest entries when saving a full list (now discarding the oldest). svn path=/trunk/; revision=9849
2003-12-04In GTK+ 2.x, "gtk_entry_get_text()" returns a "const gchar *"; assignGuy Harris1-2/+2
its value to pointer-to-const variables. svn path=/trunk/; revision=9161
2003-11-05update for LDAPRonnie Sahlberg1-2/+1
measure the response time for some LDAP commands and add a service response time dialog for it svn path=/trunk/; revision=8885
2003-10-10Add a ColorizeProcedure menu option to the ServiceResponseTime statistics dialogRonnie Sahlberg1-1/+16
svn path=/trunk/; revision=8659
2003-10-10Add a Find Next/Previous menu option to the ServiceResponseTimeStatistics dialogRonnie Sahlberg1-4/+27
svn path=/trunk/; revision=8658
2003-09-05Add a popup to the ServicveResponseTime tables where the user can selectRonnie Sahlberg1-2/+176
Prepare/Match/FindFrame similar to chat the ConversationList has. Only enabled for SMB and ONC-RPC at this point svn path=/trunk/; revision=8391
2003-09-03fix to various stats tables.Ronnie Sahlberg1-5/+4
The code used to rely on min_time==0 to determine whether this was the first packet or not and whereby we had to initialize min_time to the current value. This obviously does not work for capture files with poor timestamp resolution where the response time is actually, according to the capture file, 0 and we got all sorts of weird effects like average response time being less than the minimum response time. note, the bug only affected the minimum response time in the tables and not max or average response time. it would "miss" tose minimum response times that were ==0 and display the minumin response time in the capture that were >0 svn path=/trunk/; revision=8358
2003-06-22From Lars Roland: Fix the service response time functions to work with GTK2.Gerald Combs1-9/+11
svn path=/trunk/; revision=7911
2003-06-21Cosmetic bug.Ronnie Sahlberg1-4/+4
When creating a new CList to display SRT stats, make the DECEND arrow for the second column be displayed since this is how the table will be sorted by default svn path=/trunk/; revision=7908
2003-06-21Make the default sorting for the list be column 2 in descending order so weRonnie Sahlberg1-9/+12
get the rocedures with the most number of calls at the top. Fix a bug added in previous checkin. When the table can be sorted in different ways than just the procedure number sorted in ascending order, the row for a specific procedure may change everytime we drawi/sort the table. Add code to keep track of which row a procedure is currently positioned at in the list so that we statistics are added to the correct entry. svn path=/trunk/; revision=7906
2003-06-21Update the ServiceResponseTime helper routines so that the columnsRonnie Sahlberg1-4/+141
can be sorted. "borrowed" lots of code for this from gtkclist.c Columns 0,1 sort in ascending order by default Columns 2-5 sort in ascending order by default svn path=/trunk/; revision=7905
2003-06-21Break out the code for the ahndling of the Service Response Time (formerly ↵Ronnie Sahlberg1-0/+234
known as RoundTripTime) table and change the table into a scrollable CList. As a first conversion to use the helper routines, convert DCERPC SRT statistics to use the new interface. This prevents some interfaces (SAMR/LSA) that contains a huge number of procedures from creating a huge table that does not fir on the screen. Later changes to the helpers may be to make the different columns sortable or to hide those procedures that has not been seen in the capture. svn path=/trunk/; revision=7903