Commit Graph

3391 Commits

Author SHA1 Message Date
Jeff Morriss 75849c12f1 s/%ll/%" G_GINT64_MODIFIER "/g
svn path=/trunk/; revision=24181
2008-01-24 21:57:13 +00:00
Stig Bjørlykke 6a31f43f8b Always return a valid profile name from get_profile_name().
svn path=/trunk/; revision=24175
2008-01-24 17:06:22 +00:00
Bill Meier dc0b8a0727 One of fixes in SVN #24173 incomplete; Undo it for now
svn path=/trunk/; revision=24174
2008-01-24 05:39:48 +00:00
Bill Meier b01c07bcdd Fix two very minor memory leaks
svn path=/trunk/; revision=24173
2008-01-24 04:20:07 +00:00
Gerald Combs 690f8f51f8 Arrange things so that if '-o "capture.auto_scroll: FALSE"' is passed to
Wireshark on the command line, auto-scroll is actually disabled.

svn path=/trunk/; revision=24172
2008-01-24 01:23:19 +00:00
Bill Meier a054ed6040 Fix a minor memory leak; Remove some unused variables
svn path=/trunk/; revision=24168
2008-01-23 14:07:40 +00:00
Bill Meier 6bb8b5f9b9 Fix minor memory leak
svn path=/trunk/; revision=24167
2008-01-23 14:05:22 +00:00
Jaap Keuter 56222aed0e Fix for bug 1920:
Avoid double free, causing crash, and stop memory leak via normal code path.

svn path=/trunk/; revision=24152
2008-01-21 07:35:16 +00:00
Stig Bjørlykke edf727387f Fixed crash when save IO Graphs (bug 2126).
The problem was that configure_event() is called each time the window size
changes, and each time the pixmap buffer is recreated and a new signal added
to the save button.

svn path=/trunk/; revision=24145
2008-01-20 16:53:53 +00:00
Stig Bjørlykke 27db1b2798 Added "copy as CSV" button to IO Graphs.
svn path=/trunk/; revision=24143
2008-01-20 12:24:14 +00:00
Jaap Keuter d3e52cc1fe Cleanup the whitespace.
svn path=/trunk/; revision=24137
2008-01-19 07:46:52 +00:00
Stig Bjørlykke 1621224a86 Free allocated data in prefs_reset, removed need for uat_reload_all and
made some cleanups in profile_dlg.

svn path=/trunk/; revision=24136
2008-01-19 01:18:35 +00:00
Stig Bjørlykke cd259ecb55 I can't find any reason to unselect the current package only when an entry
in the packet details view is selected.  I suppose unselecting the field is
more correct.  The previous behaviour lead to some strange errors:

 Select a packet and an entry in the packet details.  Add a new column
 and change a protocol preference.  Observe the selected package is
 unselected and packet 1 is selected, which I think is wrong.

 Do the same as above with one of the following exceptions:
  - without selecting an entry in the packet details.
  - without adding a new column.
  - without changing a protocol preference.
 Observe the selected package is still selected, which is correct.

The correct behaviour here happens because of the cf_goto_frame call in
redraw_hex_dump_all, which causes the field to be unselected before
packet_list_set_sel_browse is called, and then the cf_unselect_package
is never called.  

Maybe someone with a deeper knowledge should have a look at this...

svn path=/trunk/; revision=24135
2008-01-18 22:51:37 +00:00
Jaap Keuter 44ea74a5da Move libsmi settings from virtual mibs protocol page to name resolution page.
svn path=/trunk/; revision=24131
2008-01-18 07:18:32 +00:00
Jaap Keuter 32e4818641 Whitespace cleanup of AIRPCAP code.
svn path=/trunk/; revision=24127
2008-01-17 22:28:31 +00:00
Jaap Keuter 2e0f8088c3 From Jim Young:
This patch provides a new RTP Player preferences dialog.  It allows one to
select the maximum number of visable channels in the RTP Player window.  The
default is four (4) channels which is the maximum number of usable channels 
that the RTP Player can display and still have access to the bottom row buttons 
on a 1024*768 resolution display.  Specifying a value less than 1 or greater than 
10 will be result in the RTP Player displaying the default 4 channels.

svn path=/trunk/; revision=24112
2008-01-16 07:36:34 +00:00
Stig Bjørlykke ac7dfec61d Changed to use GTK stock icon for preferences in the toolbar.
svn path=/trunk/; revision=24094
2008-01-15 00:24:59 +00:00
Stig Bjørlykke c6ab78409f Save the changes also when selecting a profile from the list.
svn path=/trunk/; revision=24092
2008-01-14 21:58:45 +00:00
Stig Bjørlykke ba3f5057b1 Several profile enhancements:
- Give initial focus to the profiles list
- Enter in the profiles list selects the profile
- Give focus to the profile name when creating a new profile

svn path=/trunk/; revision=24091
2008-01-14 21:43:10 +00:00
Stig Bjørlykke a6c7284e3b Added cast of argument to isspace.
svn path=/trunk/; revision=24090
2008-01-14 19:19:47 +00:00
Stig Bjørlykke a2d1e9005d This patch adds support for configuration profiles, which can be used to
configure and use more than one set of preferences and configuration files.

This can be found in the "Configuration Profiles..." menu item from the Edit
menu, or by pressing Shift-Ctrl-A.  It's also possible to start wireshark
and tshark with a named profile by using the "-C ProfileName" option.
A new status pane in the main window will show the current profile.

The configuration files currently stored in the Profiles are:
- Preferences
- Capture Filters
- Display Filters
- Coloring Rules
- Disabled Protocols
- User Accessible Tables

The recent data are by design not added to the profile.

Planned future enhancements:
- make a more convenient function to switch between profiles
- add a "clone profile" button to copy an existing profile
- make the profiles list active and accept return as OK
- save users "Decode as" in the profile
- make new, clone and deletion of profiles more secure
- make some of the recent values available in the profile

This patch also fixes:
- setting default status pane sizes
- a bug setting status pane for packets when not having main lower pane.

svn path=/trunk/; revision=24089
2008-01-14 16:40:23 +00:00
Stig Bjørlykke 8b4e80384a Fixed a few "statement not reached" warnings and a "assignment type mismatch" warning.
svn path=/trunk/; revision=24085
2008-01-14 09:39:55 +00:00
Stephen Fisher 9463667692 Fix for bug #2017: VoIP trace crashes Wireshark when specific RTP Player
buttons are clicked


svn path=/trunk/; revision=24073
2008-01-13 04:24:24 +00:00
Bill Meier addba66749 Use glib equivalent of ntohs
svn path=/trunk/; revision=24056
2008-01-10 14:42:55 +00:00
Stephen Fisher 430866e511 To ease troubleshooting of bug #2017 and for code clarity in the future, use
two different variables for types voip_rtp_stream_info_t (strinfo) and
voip_calls_info_t (callsinfo) instead of using strinfo for both.


svn path=/trunk/; revision=24038
2008-01-09 08:34:58 +00:00
Stig Bjørlykke eef80786a8 Fixed some small typos.
svn path=/trunk/; revision=24035
2008-01-08 23:14:13 +00:00
Stig Bjørlykke 6d4a2e7ebf Changed email address for Gerald from zing.org to wireshark.org
in a lot of files, which I suppose is correct.

svn path=/trunk/; revision=24034
2008-01-08 22:54:51 +00:00
Jaap Keuter 670e46f78b Make RTP player G.729 Annex B compatible.
svn path=/trunk/; revision=24032
2008-01-08 13:04:50 +00:00
Stig Bjørlykke 56bf2afc04 Never print x axis values outside the graph (we now have "view as time of day").
Fixed calculating first_interval (the scrollbar issue in bug 1763).

svn path=/trunk/; revision=23989
2008-01-03 01:17:47 +00:00
Stig Bjørlykke ddac83a322 Initialize io->view_as_time.
svn path=/trunk/; revision=23988
2008-01-02 20:09:20 +00:00
Stig Bjørlykke cb1448416f Fix a cut'n'paste error for GTK_VERSION < 2 in last commit.
Fixed some indentation.

svn path=/trunk/; revision=23975
2007-12-29 23:20:14 +00:00
Stig Bjørlykke 1776029a7c Add an option to view the X axis as time of day instead of seconds since
start of capture.

svn path=/trunk/; revision=23974
2007-12-29 20:57:15 +00:00
Stig Bjørlykke 69be72052c Add a warning in the IO Graph if too many elements.
svn path=/trunk/; revision=23973
2007-12-29 20:53:10 +00:00
Tomas Kukosa 487792b348 save RTP in 16-bit linear PCM instead of 8-bit G.711 u-Law
(preparation for more codecs support via codec plugins)

svn path=/trunk/; revision=23961
2007-12-28 13:01:55 +00:00
Jaap Keuter 789d4770d5 Fix menu sensitivity even for text only nodes.
svn path=/trunk/; revision=23936
2007-12-21 22:22:19 +00:00
Guy Harris 0cadc40746 Temporarily #if 0 out code that was causing crashes.
svn path=/trunk/; revision=23893
2007-12-16 22:33:03 +00:00
Sake Blok 9a2d18d386 Changes the name of the menu item "View/Reset Coloring" to
"View/Reset Coloring 1-10" and adds sensitivity to it so that
it will be greyed out when none of the temporary color filters
are used.

(as per discussion on wireshark-dev some time ago)


svn path=/trunk/; revision=23879
2007-12-15 23:38:29 +00:00
Jaap Keuter a629334be6 With increasing number of dissectors, heuristics cause sometimes false hits on packets. It's a pain to go through the menu / enabled protocols dialog to temporarily disable such dissector. This change adds an option to the packet detail menu to do a point-and-click style temporary disable of such protocol.
svn path=/trunk/; revision=23873
2007-12-15 13:26:09 +00:00
Jaap Keuter 14141c3275 Source code cleanup.
svn path=/trunk/; revision=23860
2007-12-14 07:06:22 +00:00
Stig Bjørlykke 74c6f15a03 Do not use calc_field unless in advanced y axis (bug 1763).
Register new tap listener (new filter) when going from advanced y axis.
Add parantheses to the filters to ensure they are correct when concatenated.

svn path=/trunk/; revision=23844
2007-12-12 09:31:02 +00:00
Ronnie Sahlberg 757e72e177 If not building for gtk 2.4.0, if out a function that is only used when
building for 2.4.0


svn path=/trunk/; revision=23830
2007-12-10 20:40:31 +00:00
Bill Meier 2b73cb3e19 Fix conversions so compiles for both 32-bit and 64-bit
svn path=/trunk/; revision=23826
2007-12-10 18:09:52 +00:00
Bill Meier df4f2f604e Fix Bug #2055: "File Save not working properly";
Change SVN #23487 patch to not use signal_connect each time the
the function of the save button is changed since that
results in multiple callbacks attached to the save button.
Intead: associate data with the save button which species its
current function.
(It sure would be nice if the original problem causing the 
 blank spot on the toolbar could be resolved; the work-around 
is starting to get messy).

svn path=/trunk/; revision=23821
2007-12-10 03:27:40 +00:00
Guy Harris d4672d13f5 Add macros for various filter actions and types, and to combine them
into a callback argument and split a callback argument up.

svn path=/trunk/; revision=23816
2007-12-09 09:04:58 +00:00
Guy Harris 7c03d14d60 Add macros for various filter actions, types, and directions, and to
combine them into a callback argument and split a callback argument up.

svn path=/trunk/; revision=23815
2007-12-09 09:04:39 +00:00
Guy Harris 88adb489c3 Add extra parenthesization, tweak name of argument to some macros to
more accurately reflect what it is.

svn path=/trunk/; revision=23814
2007-12-09 09:02:14 +00:00
Ronnie Sahlberg b57ce9e48f some updates to make it compile with gtk/glib < 2
svn path=/trunk/; revision=23810
2007-12-08 22:45:30 +00:00
Bill Meier 01ec87aee5 Revert SVN #23728 since change (to fix a Windows issue) is in code not used on Windows
and thus does not actually fix anything.
See Bug #2055 for further info.

svn path=/trunk/; revision=23809
2007-12-08 20:59:15 +00:00
Stig Bjørlykke 4783f12c08 Added "Apply as filter"/"Prepare a filter"/"Find frame"/"Colorize Protocol"
menu.  Simplified getting the Display filter.

svn path=/trunk/; revision=23786
2007-12-06 18:10:35 +00:00
Gerald Combs e66660cd84 Make sure the "auto scroll in live capture" toolbar button and menu item
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-12-05 23:50:28 +00:00
Stig Bjørlykke 11c616f11e Do not redraw graph and goto frame 1 if selecting an "item" outside the list
in Graph Analysis list.

svn path=/trunk/; revision=23770
2007-12-05 13:32:09 +00:00
Guy Harris d31730a21b Use G_GINT64_MODIFIER for gint64 and guint64 values.
svn path=/trunk/; revision=23763
2007-12-05 10:17:58 +00:00
Stig Bjørlykke d3c4d1b221 Do not create an illegal filter when having an empty display filter and
selecting Apply/Prepare "and/or (not) Selected" in Conversations, Endpoints
and Service Response Time.

svn path=/trunk/; revision=23756
2007-12-04 23:47:30 +00:00
Gerald Combs 0fa29bb1ea Add an oid_get_default_mib_path() function, and use it to display the MIB
path in About->Folders.

svn path=/trunk/; revision=23753
2007-12-04 18:43:40 +00:00
Tomas Kukosa 08bbd29c71 Support for RPCAP features in GUI (from Boris Misenov, see Bug 1366)
- retrieving the list of remote PCAP interfaces
  - password authentication support
  - UDP data fransfer
  - packet sampling (available in WinPcap 4.x)
  etc.

fix problem if non-default rpcap port is used

svn path=/trunk/; revision=23750
2007-12-04 11:19:29 +00:00
Tomas Kukosa 236e14d9f6 add missing emem.h include (prefs-int.h uses emem structures now)
svn path=/trunk/; revision=23748
2007-12-04 08:33:20 +00:00
Guy Harris 15f3b2c750 Add macros for various filter actions and types, and to combine them
into a callback argument and split a callback argument up.

svn path=/trunk/; revision=23747
2007-12-04 08:27:48 +00:00
Guy Harris a8ce49d758 More whitespace cleanup.
svn path=/trunk/; revision=23746
2007-12-04 07:53:23 +00:00
Guy Harris 353d921d66 Clean up indentation.
svn path=/trunk/; revision=23745
2007-12-04 07:50:44 +00:00
Guy Harris d226610d55 Add a break statement - not necessary in this case, but cleaner, and
matches similar code in other files.

svn path=/trunk/; revision=23744
2007-12-04 07:50:18 +00:00
Guy Harris 9f720bb78f Note in a comment the sad truth that CFURLCreateWithString() fails
either because of a bad URL string or a failure to allocate memory, and
that we can't easily determine which of those happened.

svn path=/trunk/; revision=23740
2007-12-04 04:33:44 +00:00
Stig Bjørlykke 1b7aed33ca - Added three more y axis scale values to be able to draw time values
up to 2000 seconds (maximum when using guint32).
- Combined some common code to draw the y axis values.

svn path=/trunk/; revision=23732
2007-12-04 01:28:38 +00:00
Stig Bjørlykke b20e64d4f9 Simplified y-positions for FBAR and DOT to ensure out-of-graph values are
drawn as they should be.  I hope this is the last fix this time...

svn path=/trunk/; revision=23729
2007-12-04 00:36:39 +00:00
Gerald Combs ed0bb11925 If we're using the native Windows file dialog, don't bother to see if the
file exists before we try to save it. The Windows file dialog code does that
for us.

svn path=/trunk/; revision=23728
2007-12-04 00:23:56 +00:00
Stig Bjørlykke 96586ead65 Use same notation for all y axis time labels, so we don't end up having one
in seconds, one in milliseconds and one in microseconds.

svn path=/trunk/; revision=23722
2007-12-03 22:11:06 +00:00
Guy Harris b370727bf3 Fix indentation.
svn path=/trunk/; revision=23720
2007-12-03 21:57:57 +00:00
Guy Harris 3066148a2b Clean up indentation.
svn path=/trunk/; revision=23719
2007-12-03 21:55:44 +00:00
Guy Harris 835bcbd5e5 If CoreFoundation create calls fail, fail, don't drive on.
svn path=/trunk/; revision=23716
2007-12-03 21:41:06 +00:00
Guy Harris ae459b483f Parenthesize the operand of the cast, to make it clearer that we're
casting the result of the entire computation.

svn path=/trunk/; revision=23714
2007-12-03 21:35:54 +00:00
Anders Broman ea19a489e1 Add another cast.
svn path=/trunk/; revision=23712
2007-12-03 20:53:26 +00:00
Stig Bjørlykke e9090e24bc Add some casts to get the windows compiler happy.
svn path=/trunk/; revision=23711
2007-12-03 20:43:30 +00:00
Stig Bjørlykke 96e82fb78f Added two more y axis scale values to be able to draw time values up to
200 seconds.

svn path=/trunk/; revision=23710
2007-12-03 20:17:31 +00:00
Stig Bjørlykke 4efc9ba371 Ensure we don't wrap the values when calculating advanced time values.
With default window size the limit for this wrap is ~27 seconds when having
0-50 seconds on the y axis, and decreases greatly on higher window size.  

svn path=/trunk/; revision=23708
2007-12-03 19:44:27 +00:00
Stig Bjørlykke 79b3da4b00 Changed from Ok button to Close button.
svn path=/trunk/; revision=23697
2007-12-02 14:43:41 +00:00
Ulf Lamping e4d7a5c236 fix bug #1594: compositions must be differentiated by both protocol and summary, not only the summary - otherwise this results in a single entry if two protocols share the same summary, e.g. TCP/UDP "Bad Checksum"
svn path=/trunk/; revision=23696
2007-12-02 10:13:57 +00:00
Sake Blok e8ca13de9e After taking a closer look at SVN 23089, I believe it was intended only to add the
file-name to the window title and not change the rest of the name.
(the graph window is both used from "Flow Graph" and from "VoIP calls")


svn path=/trunk/; revision=23695
2007-12-01 02:10:03 +00:00
Ulf Lamping a912ab234c move "Display Filter Macros" from View to Analyze menu, just below "Display Filter" - I guess it fit's much better there
svn path=/trunk/; revision=23693
2007-11-30 23:28:06 +00:00
Sake Blok e825cba61b Give the flow graph window the correct title.
svn path=/trunk/; revision=23689
2007-11-30 18:55:34 +00:00
Stig Bjørlykke 44145c21ed Show the Display filter in Protocol Hierarchy Statistics.
svn path=/trunk/; revision=23686
2007-11-30 15:37:21 +00:00
Stig Bjørlykke facb4b5d50 Move the "copy" button down to the button bar, to match the layout in
the conversations window.

svn path=/trunk/; revision=23685
2007-11-30 14:36:18 +00:00
Stig Bjørlykke 0abea9b7d9 More summary enhancements:
- Don't hide columns in the GUI
- Show Packets count first
- Always show values in Packets count
- Don't show Avg. packet size if 1 packet
- Don't show time between packets if 1 packet

svn path=/trunk/; revision=23684
2007-11-30 13:28:12 +00:00
Tomas Kukosa a5ca7ec384 hide implementation of module list
(it makes easier change from GList to GTree as we have many modules now and GList implementation is slow for searching)

svn path=/trunk/; revision=23669
2007-11-29 07:52:52 +00:00
Sake Blok e2598d0c92 Remove "Reset coloring" from context menu's to keep the GUI consistent
svn path=/trunk/; revision=23657
2007-11-28 22:36:53 +00:00
Sake Blok 069ddc1335 Add sensitivity to some temporary coloring menu items.
svn path=/trunk/; revision=23654
2007-11-28 22:07:44 +00:00
Stig Bjørlykke 311ec68206 Put double click on a frame link back.
svn path=/trunk/; revision=23644
2007-11-28 12:30:18 +00:00
Stephen Fisher 9d83eb39fc Fix bug #954 for LDAP SRT stats along with the same problem in all the other
SRT code.


svn path=/trunk/; revision=23640
2007-11-28 03:04:09 +00:00
Stephen Fisher c232d0b385 Fix a problem whereby the smb2 service resposne time statistics filter was
getting a comma added to be beginning of the filter that the user entered.


svn path=/trunk/; revision=23639
2007-11-28 02:54:23 +00:00
Ronnie Sahlberg e6ed260aca some more path fixes for g_ascii_strcasecmp.h
svn path=/trunk/; revision=23638
2007-11-28 01:31:23 +00:00
Ronnie Sahlberg abb4bc4fae no need to include those xpm's unless we are building for gtk2
svn path=/trunk/; revision=23637
2007-11-28 01:27:07 +00:00
Ronnie Sahlberg 2830cf2045 fix the path to include g_ascii_strcasecmp.h
svn path=/trunk/; revision=23636
2007-11-28 01:23:09 +00:00
Stig Bjørlykke 6e39bc94d1 Summary enhancements:
- Added traffic statistics for marked packages.
- Do not show Displayed column unless using it.
- Removed Marked packets line, as this info is in the marked packets column.

Will add documentation changes if keeping this feature.

svn path=/trunk/; revision=23633
2007-11-28 01:09:02 +00:00
Guy Harris 9c89cdaaa3 strcasecmp(), strncasecmp(), g_strcasecmp(), and g_strncasecmp() delenda
est.  Use g_ascii_strcasecmp() and g_ascii_strncasecmp(), and supply our
own versions if they're missing from GLib (as is the case with GLib
1.x).

In the code to build the list of named fields for Diameter, don't use
g_strdown(); do our own g_ascii_-style upper-case to lower-case mapping
in the hash function and use g_ascii_strcasecmp() in the compare
function.

We do this because there is no guarantee that toupper(), tolower(), and
functions that use them will, for example, map between "I" and "i" in
all locales; in Turkish locales, for example, there are, in both
upper case and lower case, versions of "i" with and without a dot, and
the upper-case version of "i" is "I"-with-a-dot and the lower-case
version of "I" is "i"-without-a-dot.  This causes strings that should
match not to match.

This finishes fixing bug 2010 - an earlier checkin prevented the crash
(as there are other ways to produce the same crash, e.g. a bogus
dictionary.xml file), but didn't fix the case-insensitive string matching.

svn path=/trunk/; revision=23623
2007-11-27 18:52:51 +00:00
Jaap Keuter 3f8ffe514f Fix for bug 2000. Make sure that both datalink layer and application layer agree that information is missing before refusing to write a payload.
svn path=/trunk/; revision=23618
2007-11-27 06:49:48 +00:00
Gerald Combs 85d12e73b3 Disable splash message logging, since it seems to ignore the log level mask.
svn path=/trunk/; revision=23611
2007-11-26 21:54:00 +00:00
Gerald Combs 9e16f1313c If the user has G_LOG_LEVEL_INFO enabled, provide startup progress messages.
svn path=/trunk/; revision=23606
2007-11-26 18:38:03 +00:00
Jeff Morriss dd0a4750b0 s/stat/eth_stat/ and s/unlink/eth_unlink/ to avoid non-ASCII filename problems on Windows.
svn path=/trunk/; revision=23605
2007-11-26 18:35:37 +00:00
Jeff Morriss be611615f8 From Florent Drouin via http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2015 : fix crash when editing UAT tables
svn path=/trunk/; revision=23604
2007-11-26 18:00:21 +00:00
Stig Bjørlykke 4b395e9e56 Check current_frame instead of finfo_selected before trying to build a
display filter based on the "selected" package.

svn path=/trunk/; revision=23597
2007-11-26 11:16:04 +00:00
Sake Blok 24c8b3a4b7 Check if a packet is selected before trying to build a display filter based
on the "selected" packet. Fixes bug 2020.


svn path=/trunk/; revision=23596
2007-11-26 09:10:37 +00:00
Sake Blok 61e7574a5c Reset the temporary coloring filters to defaults instead of doing it
implicitly by calling "color_filters_init()". This should probably
fix the crashes experienced when pressing ctrl-space a couple of times


svn path=/trunk/; revision=23583
2007-11-25 14:17:56 +00:00
Sake Blok db2f6ce546 Fixes crashing when opening color filters and pressing OK
(introduced in SVN 23560)


svn path=/trunk/; revision=23582
2007-11-25 12:36:33 +00:00
Stig Bjørlykke 6f1ab30f2f From Joe Eykholt:
Show content even if the trailer is missing.

From me:
Add proto_tree_set_appendix for the checksum and EOF.

svn path=/trunk/; revision=23581
2007-11-25 12:15:02 +00:00
Stig Bjørlykke e021e1441f Add a cast to make it compile again.
svn path=/trunk/; revision=23569
2007-11-24 20:55:03 +00:00
Sake Blok 9b6f806089 This patch adds (ten) temporary coloring rules which will only live until Wireshark is
quit. Temporary coloring filters can be set by:

- pressing <ctrl>-<digit> will create a conversation coloring filter based on the
  addresses of the currently selected packet (order TCP/UDP/IP/Ethernet)
  This can also be achieved from the "View|Colorize Conversation" menu.

- Rightclicking on a packet in the packet-list will give the option to
  "Colorize Conversation" just as "Conversation Filter" does.

- Rightclicking on an item in the packet-detail-list will give the option to
  "Colorize with filter" which works similar to "Apply as filter"

Temporary filters can be cleared from the same menus or by pressing <ctrl>-<space>.

This patch also adds an item to the above mentioned menu's to add a permanent color filter
in the same way.


The colors for the temporary coloring rules are now hardcoded as I do not know
how to change the color of menu-items and therefore I chose to use icons to
show the actual color of each of the ten temporary coloring rules. Is it at all
possible to have different menu items in different colors?

One other way of solving this is to recreate the icons on the fly after changing
the colors. I will have a look into that once it is clear whether I can use 
different colors within the menu structure.


svn path=/trunk/; revision=23560
2007-11-24 11:38:16 +00:00
Stig Bjørlykke f174dede0a Avoid redraw hex dump windows if redissecting.
svn path=/trunk/; revision=23532
2007-11-21 18:56:05 +00:00
Tomas Kukosa cfce233c75 fix crash caused with memory overwrite (flush buffer into window when we do not have space for next line)
svn path=/trunk/; revision=23527
2007-11-21 13:11:13 +00:00
Stephen Fisher d0b752c441 Fix bug #1841: Crash after adding&deleting a column (while packet capture
is in progress).


svn path=/trunk/; revision=23523
2007-11-20 23:21:33 +00:00
Gerald Combs dfb104544f Add relative start time, duration, and average data rate (bps) columns
to the conversation lists. Move the "copy" button down to the button bar
in order to free up some real estate. Add an nstime_cmp() function. Clean
up code in a few places.

svn path=/trunk/; revision=23516
2007-11-20 18:35:41 +00:00
Stephen Fisher 94af1b4929 Rest of fix for SVN revision 23487. This change also changes the callback
function for the Save/Save As button as necessary.


svn path=/trunk/; revision=23506
2007-11-20 00:34:16 +00:00
Stephen Fisher 64fe05e583 Fix my last commit (23487) to work with GTK 2.4 - 2.11+. I had accidently
used a GTK 2.12+ function in the last commit.


svn path=/trunk/; revision=23488
2007-11-19 04:37:45 +00:00
Stephen Fisher 854790d061 Fix a problem introduced with the GTK 2.4+ Toolbar API whereby the save/
save as button would disappear (leaving a blank spot on the toolbar) after
starting & stopping a capture session more than once.

This fix gets rid of the second save_as_button when using GTK 2.4+ in favor
of converting the stock id / tooltip text of the save_button to that of
the save as button when necessary and reverting it back to just save when
necessary.


svn path=/trunk/; revision=23487
2007-11-19 04:24:00 +00:00
Stephen Fisher 8a154bcfdd Fix bug #1164 again - this time for GTK1.
svn path=/trunk/; revision=23482
2007-11-18 04:20:14 +00:00
Anders Broman f6d282b6cd Apply yet another set of the optimization patches:
- Don't call tree_view_select on first button click event, it's already done by the tree widget.
- Factorize slow gtk_text_buffer_insert_with_tags_by_name() calls

svn path=/trunk/; revision=23477
2007-11-17 08:57:20 +00:00
Stig Bjørlykke ff0346154a Added some parentheses to clarify the gint64 cast.
svn path=/trunk/; revision=23447
2007-11-14 10:15:20 +00:00
Stig Bjørlykke b4980a48bd From Shiang-Ming Huang:
Removed unnecessary parentheses that make the average packets size 
calculated as an integer instead of a float.

svn path=/trunk/; revision=23446
2007-11-14 09:37:44 +00:00
Stephen Fisher dc7a454b71 From didier:
Fix for bug #1876: Resizing columns changes the currently-selected packet


svn path=/trunk/; revision=23445
2007-11-14 06:39:58 +00:00
Sake Blok de5a407bbb Open the coloring rule edit dialog when the coloring rule is
double-clicked.


svn path=/trunk/; revision=23427
2007-11-11 00:59:19 +00:00
Sake Blok adefd3367c Make the enable/disable buttons on the coloring rule list follow
the selection. There is a little difference between the behaviour
in GTK1 and GTK2 (As long as either one row or a block of rows with 
the same status is selected, GTK1 and GTK2 behave the same way):

GTK1:
- if the last selected row is disabled, grey out the disable button
- if the last selected row is enabled, grey out the enable button

GTK2:
- grey out both buttons when no rule is selected
- grey out the enable button when *all* selected rules are enabled
- grey out the disable button when *all* selected rules are disabled
- leave both buttons active if there is a mix of disabled and enabled
  rules



svn path=/trunk/; revision=23426
2007-11-10 23:05:35 +00:00
Stig Bjørlykke 6e3a2bdbf1 Ensure we pop any previous loaded filename from the statusbar
when loading a new file with a file already loaded.

svn path=/trunk/; revision=23425
2007-11-10 21:59:20 +00:00
Anders Broman 4093b817c6 Apply yet another set of the optimization patches:
there's two structures with the same name conversation_t, change one to conv_t

svn path=/trunk/; revision=23423
2007-11-10 16:09:10 +00:00
Sake Blok 508e268063 This patch makes it possible to disable individual coloring rules
without having to delete them. The patch has been tested on
Fedora-7 with GTK+ 1.2.10 and GTK+ 2.10.11.

Since I don't know how to use "strikethrough" in clists in GTK1
there is a little difference in how the disabled coloring rules
are displayed. In GTK2 they are striked through and in GTK1
they are shown in lightgrey on a white background.

Any info on how to use strikthrough in clists within GTK1 is more
than welcome :-)


svn path=/trunk/; revision=23421
2007-11-10 15:18:49 +00:00
Stephen Fisher eae32f15eb Back out part of revision 23395 - leave the toolbar arrow, but remove the
preference to turn it on / off per discussion on -dev list.


svn path=/trunk/; revision=23407
2007-11-09 02:08:00 +00:00
Stephen Fisher d7c1ba361f Add an arrow with drop-down menu including any toolbar buttons that do not
fit on the top of the screen.  This only works in GTK 2.4+ and there is
a layout preference setting to disable it.


svn path=/trunk/; revision=23395
2007-11-07 21:50:48 +00:00
Stephen Fisher bb71da97df Fix distcheck after my prior 2 commits
svn path=/trunk/; revision=23348
2007-11-03 06:23:02 +00:00
Stephen Fisher 367b809aec The rest of the Follow UDP Stream check-in
svn path=/trunk/; revision=23347
2007-11-03 04:46:22 +00:00
Stephen Fisher 700d8194b8 - Future improve/clean up the now generic follow stream code
- Add "Follow UDP Stream" feature


svn path=/trunk/; revision=23346
2007-11-03 04:45:35 +00:00
Tomas Kukosa 9b3c5f9f03 display SRTP isntead of RTP if stream is established like a SRTP
svn path=/trunk/; revision=23337
2007-11-02 07:43:49 +00:00
Mike Duigou 7dcafc5e82 Avoid casting directly from int to pointers. (It doesn't work on 64-bit linux)
svn path=/trunk/; revision=23322
2007-10-31 15:16:33 +00:00
Stephen Fisher 487abcdf5b Remove empty #if / #endif block
svn path=/trunk/; revision=23283
2007-10-27 05:11:50 +00:00
Tomas Kukosa d3a00ff8bf do not update call_state if new call_state == VOIP_NO_STATE
svn path=/trunk/; revision=23271
2007-10-25 12:24:01 +00:00
Tomas Kukosa 136de3920c new codec table for registering codecs by name
new codec plugin type
search registered codecs in rtp player
fix memory leak in rtp player

svn path=/trunk/; revision=23270
2007-10-25 09:38:15 +00:00
Martin Mathieson 977dbfc490 Add missing case.
svn path=/trunk/; revision=23264
2007-10-24 09:21:13 +00:00
Tomas Kukosa 97dde57b7e fix voip_calls.c:126: warning: missing initializer
svn path=/trunk/; revision=23263
2007-10-24 09:10:43 +00:00
Tomas Kukosa 28cb460c25 add common VoIP TAP listener "voip" which can be used in arbitrary experimental/proprietary protocol (implemented e.g. in plugin) and allows it to make graphs and replay streams
svn path=/trunk/; revision=23262
2007-10-24 08:30:46 +00:00
Bill Meier 09e7be9068 From Jim Young: Simple one line patch resolves compiler warning.: Bug #1929
svn path=/trunk/; revision=23240
2007-10-22 15:13:41 +00:00
Guy Harris 0ea7d1372f Silently ignore bogus geometry subkeys, just as we silently ignore other
bogus entries in the recent file.  This fixes bug 1925.

svn path=/trunk/; revision=23233
2007-10-20 02:34:41 +00:00
Tomas Kukosa 44800d2c5a H.460 new dissector implemented (H.460.2-H.460.22)
H.225
 - change RysMessage_vals to h225_Rasmessage_vals
 - use #.PDU directive for H323-UserInformation and RasMessage instead of implementing it by hands
 - register RasMessage_PDU as "h225.ras" dissector for calling it from H.460
asn2wrs make PDUs exportable

svn path=/trunk/; revision=23226
2007-10-18 13:35:57 +00:00
Sake Blok 6bec9d3d9e From tmiller@hcjbtech.org : Spelling error on GDS DB protocol dissector: "Buffer lenght:"
(recursively grepped through the source and corrected all occurences, even 
the ones just in comments)



svn path=/trunk/; revision=23211
2007-10-16 23:42:33 +00:00
Anders Broman 01fd1df04e Change mgcp include.
svn path=/trunk/; revision=23199
2007-10-16 05:45:03 +00:00
Anders Broman fcbc9389d6 Change mgcp include.
svn path=/trunk/; revision=23197
2007-10-15 22:20:53 +00:00
Alejandro Vaquero 4bf238547f VoIP Calls changes: Add the file name to the title window in VoIP calls, Voip graph and RTP player windows. Make the calls selection using standard multiple selection using the GTK buildin functions. Add a 'Select All' buttom to the VoIP calls window.
svn path=/trunk/; revision=23089
2007-10-08 00:31:26 +00:00
Tomas Kukosa e461d0d0e8 export more types from H.225.0 and H.245 which will be necessary for H.460.x, H.323 (Annex M,R), H.501
svn path=/trunk/; revision=23069
2007-10-05 07:44:03 +00:00
Stig Bjørlykke 8745da6ed0 - Added Tick interval 1 min and 10 min.
- Draw an empty graph if no items in given tick interval.
- Initialize interval_delta so we don't get overlaping x-scale labels.
- Some whitespace cleanup.

svn path=/trunk/; revision=22992
2007-09-26 22:50:53 +00:00
Jörg Mayer 6bb9369681 "fix" some warnings about "might be used uninitialized" variables
svn path=/trunk/; revision=22983
2007-09-26 07:09:51 +00:00
Gerald Combs f7c4b26cb4 In newer versions of GTK+ 2.x, if you have the mouse positioned above a
button that goes from insensitive to sensitive, the button won't respond
to mouse clicks.

This caused the Coloring Rules dialog behavior reported in bug 699.  Work 
around it by not making the up/down buttons insensitive while we're moving
a rule.

Fixup whitespace.

svn path=/trunk/; revision=22946
2007-09-25 05:12:44 +00:00
Bill Meier 29c4953c11 Fix bug #1457: Undersized array causing "smashed stack".
svn path=/trunk/; revision=22942
2007-09-24 21:34:58 +00:00
Jörg Mayer 094e2a9a5f Get rid of the remains of NET-SNMP in the build process.
svn path=/trunk/; revision=22934
2007-09-24 06:59:40 +00:00
Jaap Keuter b7d63247ad Get rid of the last warning.
svn path=/trunk/; revision=22930
2007-09-24 06:42:59 +00:00
Jaap Keuter f2c1b7e8f0 From Chad Singer:
I fixed a bug in packet_unistim.c which was causing a 'malformed packet' to
appear when an open stream command is read with no endpoint ip (as is sometimes
done) I added a simple msg_len check to avoid this. 
I also added UFTP to the unistim dissector and adjusted the unistim call-detection 
in voip-info.c to start on an open stream as well as keypresses..

svn path=/trunk/; revision=22929
2007-09-24 06:19:56 +00:00
Gerald Combs 6805bdaed6 Spell out each of the units in the status bar. A few people have remarked
that this would be helpful for new users.

svn path=/trunk/; revision=22922
2007-09-21 23:04:56 +00:00
Stig Bjørlykke 72af3183ab Added functionality to highlight the FCS bytes in Ethernet and IEEE 802.11
packets in the Packet Details View.

This "appendix" bytes are not copied with the Copy functions or in the
Export Selected Packet Bytes.

svn path=/trunk/; revision=22887
2007-09-17 12:12:02 +00:00
Stephen Fisher de33c21ae8 Free some recently added strings when we are done with them.
svn path=/trunk/; revision=22878
2007-09-16 05:42:02 +00:00
Gerald Combs d2d4fcd903 Add routines under Windows to check if npf.sys is running, and to
fetch the major OS version.  If we're running Windows >= 6 (Vista)
_and_ npf.sys isn't running, warn the user in Wireshark and TShark.
Add a recent prefs item to disable the warning in Wireshark.

svn path=/trunk/; revision=22877
2007-09-15 00:18:17 +00:00
Stephen Fisher a3202ff86b Standardize filenames and function names for Follow TCP & SSL stream functions
svn path=/trunk/; revision=22870
2007-09-13 22:25:20 +00:00
Stephen Fisher f673626e55 Finish the major part of merging duplicate code between follow TCP & SSL
stream functions.


svn path=/trunk/; revision=22869
2007-09-13 22:11:50 +00:00
Jaap Keuter 3888c12abf Make the splash screen look just a little bit better.
svn path=/trunk/; revision=22843
2007-09-11 16:54:27 +00:00
Stephen Fisher 7e1692e230 Some more code merging / cleanup in the Follow TCP & SSL Stream features
svn path=/trunk/; revision=22841
2007-09-10 23:50:46 +00:00
Bill Meier 5efc608d28 Fix bug in View ! Color Filter ! New ! (Fore|Back)ground Color & etc code
which resulted in a GtkCritcal msg and in disabling the "(Fore|Back)ground Color"
button when esc used to close the widget.

svn path=/trunk/; revision=22840
2007-09-10 22:28:42 +00:00
Jaap Keuter e1541263e4 From Chad Singer:
UNISTIM Tap interface plus call grapher.

svn path=/trunk/; revision=22834
2007-09-10 07:21:27 +00:00
Ulf Lamping 830c6e094a translate some german to english
svn path=/trunk/; revision=22832
2007-09-09 14:58:02 +00:00
Ulf Lamping 1366745e45 start an experiment to provide MS Visual Studio 2005 solution / project files for a lot easier debugging. They still use the underlying Makefile.nmake files for the actual build process.
svn path=/trunk/; revision=22831
2007-09-09 13:59:58 +00:00
Bill Meier df712c8574 Enable esc key for SCTP Associations window.
svn path=/trunk/; revision=22804
2007-09-06 12:46:29 +00:00
Bill Meier 7b02205d27 Prevent Gtk-Critical msg when invoking "+Expression" from Filter Toolbar in main window;
Fixes bug reported by Toralf Förster

svn path=/trunk/; revision=22795
2007-09-05 14:59:37 +00:00
Bill Meier fc162617f4 enable esc for new/edit/delete dialogs; remove some redundant code;
svn path=/trunk/; revision=22782
2007-09-04 12:37:19 +00:00
Anders Broman 8f1d357618 From Stas Maximov:
RTP analysis' jitter values are thrown off by RTP events
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1076
a) Ephemeral string (packet duration) was inserted into long-term hash of
dynamic payloads
b) There was no clock_rate mapping for MIME type "telephone-event".

svn path=/trunk/; revision=22780
2007-09-04 05:22:43 +00:00
Bill Meier 24c891ab1f default window_cancel_butoon_cb is not appropriate since a specific cancel cb is specified.
svn path=/trunk/; revision=22774
2007-09-03 00:17:47 +00:00
Bill Meier 30b61b7540 Fix my previous patch to enable esc on window
svn path=/trunk/; revision=22772
2007-09-02 23:37:40 +00:00
Bill Meier d5b126a552 Enable <esc> to cancel window; remove some redundant code
svn path=/trunk/; revision=22763
2007-08-31 23:22:45 +00:00
Sake Blok 27efb95042 This patch fixes the following two errors that appear when
configure is run with "--without-plugins"

cc1: warnings being treated as errors
about_dlg.c: In function ‘about_wireshark_cb’:
about_dlg.c:426: warning: unused variable ‘plugins_page’
make[2]: *** [about_dlg.o] Error 1

editcap.c: In function ‘main’:
editcap.c:663: error: ‘check_ts’ undeclared (first use in this function)
editcap.c:663: error: (Each undeclared identifier is reported only once
editcap.c:663: error: for each function it appears in.)
make[2]: *** [editcap.o] Error 1


svn path=/trunk/; revision=22761
2007-08-31 14:14:17 +00:00
Stig Bjørlykke 2b49760882 It seems like capture_stats is working as a correctly implemented pcap_stats.
Update the Packets count in Capture Interfaces according to this.

svn path=/trunk/; revision=22755
2007-08-30 17:36:38 +00:00
Greg Morris 82b75c4a19 Update to reflect new iteration verb 0x6e.
svn path=/trunk/; revision=22748
2007-08-30 10:26:20 +00:00
Stig Bjørlykke 4f13ccf33b Added #include <sys/types.h>
svn path=/trunk/; revision=22745
2007-08-30 09:28:41 +00:00
Gerald Combs 92802883a6 Change the "--enable-setuid-install" option to install dumpcap and TShark
setuid instead of Wireshark.  Remove the "DANGEROUS" notices, but leave it
disabled by default.  Whine if the user runs Wireshark or TShark as root.
Add a preference to disable the whining.  Add a "setuid-root" script that
can be used to switch dumpcap and TShark's setuid-ness on and off for
development and testing.  Update the release notes and README.packaging.

svn path=/trunk/; revision=22733
2007-08-30 00:24:40 +00:00
Stig Bjørlykke d106d8eadc Added "Dot" as new style in IO Graph.
svn path=/trunk/; revision=22666
2007-08-26 14:02:59 +00:00
Anders Broman 5abff6b3a4 Cast as (gfloat)
io->scrollbar_adjustment->value=(gfloat)first_interval;

svn path=/trunk/; revision=22653
2007-08-25 08:20:59 +00:00
Stig Bjørlykke e5850628b0 The code for resizing the scrollbar page_size was a bit strange and did
some strange justifications when having high "tick values" in the graph.

Simplified this to fix a problem with scrolling to X Axis zero and a
problem with interval values printed in the wrong time position.

svn path=/trunk/; revision=22645
2007-08-24 21:38:10 +00:00
Stig Bjørlykke d46fcba723 Print the first interval in the graph.
Print zero label string in the X Axis (not centered).
Always start the graph with the first interval, not at zero x value.

svn path=/trunk/; revision=22644
2007-08-24 21:23:34 +00:00
Richard van der Hoff aaf78a647e fix log msg typo
svn path=/trunk/; revision=22637
2007-08-24 15:29:13 +00:00
Gerald Combs c517f302a4 Move follow_infos into folow_stream.c and initialize it.
svn path=/trunk/; revision=22613
2007-08-23 23:01:20 +00:00
Stephen Fisher 1cd16d8493 Fix comment on top of file
svn path=/trunk/; revision=22611
2007-08-23 21:51:44 +00:00
Stig Bjørlykke 5040aa1613 Fixed drawing of X Axis decimal values: "0. 50" -> "0.050"
svn path=/trunk/; revision=22610
2007-08-23 21:51:36 +00:00
Jeff Morriss 535f6af89c autoscroll_button is not used if we don't HAVE_LIBPCAP so put it inside the #ifdef
svn path=/trunk/; revision=22589
2007-08-22 18:58:26 +00:00
Jeff Morriss 8043464c24 gcc 4 doesn't like my macro for getting the interface description: it says there's an invalid lvalue in it. I don't see what's wrong with it, but replace the macro with a function. Also: don't include the .xpm files in gtk/main.c if we're building without PCAP (as they're not used in that configuration).
svn path=/trunk/; revision=22588
2007-08-22 18:56:20 +00:00
Jeff Morriss 2f77efce7d Fix bug http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1757 :
Try to call get_interface_descriptive_name() as little as possible (storing
the result in capture_opts) to avoid a performance hit during live capture
(especially if you have lots of interfaces) and to avoid leaking memory.

One issue with this is that capture_opts.c cannot (without adding significant
dependencies) set the iface_descr so readers of that field (only gtk/main.c
and tshark.c) use a macro to (set if not already set and) get the value of
that field.

svn path=/trunk/; revision=22587
2007-08-22 16:30:16 +00:00
Bill Meier 64d7c80f56 Add #include needed to get defs for PT_PCMU & etc
svn path=/trunk/; revision=22549
2007-08-18 04:28:40 +00:00
Guy Harris e104794902 Use #defines, rather than raw numbers, for RTP payload types.
Note that we should return an error for payload types we don't support,
so the user knows we can't handle the audio.

svn path=/trunk/; revision=22547
2007-08-18 01:46:14 +00:00
Gerald Combs 72daa58e19 Instead of converting between 802.11 frequencies and channels umpteen
different ways, add a set of common conversion routines.  Add a
"Frequency/Channel" column and fill it in where we can.  Fix RSSI column
printing in PPI.

Fix up whitespace along the way.

svn path=/trunk/; revision=22538
2007-08-17 19:34:14 +00:00
Ulf Lamping 2efdf99f28 mark some parameters as unused
svn path=/trunk/; revision=22532
2007-08-16 23:35:28 +00:00
Ulf Lamping 4b215597ae experimental feature: dissector filters
add the possibility, that a dissector writer can provide (usually non-trivial) display filters specific for the protocol in question (with an example in packet-dcerpc-pn-io.c), that will appear in the GUI


svn path=/trunk/; revision=22530
2007-08-16 22:03:10 +00:00
Ulf Lamping 696e992a8c fix build problems under Win32
svn path=/trunk/; revision=22523
2007-08-16 04:54:30 +00:00
Stephen Fisher 7bef902e14 Initial work on merging common code between follow TCP & SSL stream features
svn path=/trunk/; revision=22520
2007-08-16 03:36:38 +00:00
Jaap Keuter c55f11cc73 Fixing the GTK1 build shouldn't break the GTK2 build.
svn path=/trunk/; revision=22485
2007-08-11 08:03:46 +00:00
Jaap Keuter 7e33de36d7 Fix GTK1 compilation.
svn path=/trunk/; revision=22479
2007-08-09 20:41:09 +00:00
Luis Ontanon d8e818e9da Make sure that wiretap plugins are loaded before dissectors are (if a new encap type is registered the plugin probably needs it before reg_handoff)
svn path=/trunk/; revision=22461
2007-08-07 20:07:43 +00:00
Stephen Fisher 2e398bcb6e Change the export object/export object http code to only be included
in the code for GTK versions 2.4 and up instead of 2 and up.


svn path=/trunk/; revision=22455
2007-08-04 17:52:38 +00:00
Gerald Combs 89a2966ced Add a "-S" flag to dumpcap, which prints out interface statistics. Use
this in the GUI rather than calling pcap_stats() directly. This gets rid
of the last pcap_open_live() call in the GUI code. Update
README.packaging.

svn path=/trunk/; revision=22443
2007-08-02 21:45:27 +00:00
Luis Ontanon d229a6a3c2 from Florent DROUIN:
I did load an k12 file (.rf5), and want to save the selected frames in a new file.
I got the error "Wireshark can't save this capture in that format"
I think this is due to this correction: http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=22214
I have got a patch to force the type of file to libpcap, only if no other format is available. It should solve both problems.


svn path=/trunk/; revision=22403
2007-07-25 21:30:51 +00:00
Ulf Lamping 6cae0b2193 for the Ethernet conversation filter, don't use ethertype but the data link address type being Ethernet. If the ethertype field is a length (0-1500), it will contain 0 - and the filter wouldn't work that way
svn path=/trunk/; revision=22389
2007-07-23 20:18:01 +00:00
Gerald Combs c02e0c7b4a Remove the "-I" flag from dumpcap, and add a "-M" flag used to specify
that "-D" and "-L" should produce machine-readable output.  Use this to
move an indirect get_pcap_linktype() call from the GUI to dumpcap.

svn path=/trunk/; revision=22367
2007-07-20 21:43:07 +00:00
Michael Tüxen 06ff527c5b Make debugging static.
svn path=/trunk/; revision=22347
2007-07-18 07:06:46 +00:00
Jeff Morriss 7060dbbde2 Don't use gtk_clist_row_is_visible() but rather eth_clist_row_is_visible() so that GTK1.2 builds work (without a warning).
svn path=/trunk/; revision=22335
2007-07-17 18:09:01 +00:00
Jeff Morriss 22d2547547 Fix a couple "cast to pointer from integer of different size" warnings when building with GTK1.2 on Redhat AS4 64-bit
svn path=/trunk/; revision=22329
2007-07-16 22:19:59 +00:00
Gerald Combs a4153c5c0f From Dustin Johnson: AirPcap display update.
svn path=/trunk/; revision=22278
2007-07-09 16:36:29 +00:00
Gerald Combs cc0f2c6efe From Dustin Johnson: If "Update list of packets in real time" and
"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-07-09 16:31:39 +00:00
Martin Mathieson 0426247b20 Add 422 "Session Timer Too Small" response code from RFC 4028
svn path=/trunk/; revision=22222
2007-06-29 10:47:46 +00:00
Stephen Fisher ce7d9544ce Fix a bug where you couldn't save individual packets from a file type that
Wireshark doesn't support writing to.  The default in the drop-down menu
was libpcap, but since gtk_option_menu_set_history() doesn't send the
activate signal we set up earlier, you would have to manually click on the
drop-down and reselect libpcap for it to work.  Now it works as expected.


svn path=/trunk/; revision=22214
2007-06-27 23:26:24 +00:00
Gerald Combs 12b9651ce9 In the wireless key management dialog, apply the 802.11 preferences when
the "OK," "Apply," or "Cancel" buttons are pressed.  Remove some duplicate
code.  Add a comment about "Cancel" not working as expected.

svn path=/trunk/; revision=22211
2007-06-27 21:03:25 +00:00
Gerald Combs 4345560f29 If we have problems with "Save All" in the HTTP object list, show a single
error dialog instead of one dialog per unsaved file.

svn path=/trunk/; revision=22198
2007-06-27 05:39:13 +00:00
Stephen Fisher 1f786cac31 Updates to initial check-in of pixmap saving feature:
- Bump minimum GTK version from 2.4 to 2.6 in code and users manual
 - Free some strings after we're done with them 
 

svn path=/trunk/; revision=22170
2007-06-23 05:58:01 +00:00
Stephen Fisher 0ba44094e6 Fix enhancement bug #1337: Export IO Graphs
This new code adds a save button to the Statistics IO Graphs window and
is also reusable by any other code that uses GDK Pixmaps to draw graphs.
The Gdk-pixbuf library included in GTK is used for this save function.


svn path=/trunk/; revision=22166
2007-06-22 22:22:10 +00:00
Ronnie Sahlberg 946af07b3a gtk1 does not have gtk_window_get_modal
svn path=/trunk/; revision=22120
2007-06-17 19:57:47 +00:00
Ronnie Sahlberg cf1eb444f4 column_entry_changed_cb is not used by the GTK1 code. ifdef it out for
gtk1


svn path=/trunk/; revision=22119
2007-06-17 19:51:20 +00:00
Stephen Fisher c4ba5ad2b0 Fix bug #1334 and a problem where a user couldn't interact with the
filter dialog's add expression dialog when going to it through file->open
or file->merge (because dialogs in between are set to modal).


svn path=/trunk/; revision=22115
2007-06-17 00:54:58 +00:00
Jaap Keuter db0a89220f Just keep it simple.
svn path=/trunk/; revision=22081
2007-06-12 18:43:24 +00:00
Gerald Combs e9f1a0b692 One more step in privilege separation.
Add a capture_interface_list(), which works similar to
get_interface_list() except that it forks dumpcap instead of calling
the pcap routines directly.  Use it in the GUI.

Add a "-I" flag to dumpcap, which prints out verbose interface
information.

Tested under Windows and Linux.

svn path=/trunk/; revision=22071
2007-06-11 03:58:58 +00:00
Stephen Fisher d1d72fd232 Fix for bug #93: changes to the columns has no effect until restart
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-06-04 20:15:10 +00:00
Bill Meier a6dab6d644 (Minor) Use _WIN32 (instead of WIN32) like the rest of Wireshark
svn path=/trunk/; revision=22030
2007-06-03 16:07:07 +00:00
Stephen Fisher 2745f06d96 From Lars Ruoff:
find attached several trivial diffs for viewing RTP SSRC values in Hex
rather than Dec at various places in the UI.
Also includes change from BASE_DEC to BASE_HEX_DEC for corresponding RTP
and RTCP dissector header fields.


svn path=/trunk/; revision=22017
2007-05-31 18:41:25 +00:00
Stephen Fisher c638ab8e6d Fix bug #1530 this time for GTK1 builds.
svn path=/trunk/; revision=22009
2007-05-30 19:43:33 +00:00
Stephen Fisher d3454df68a Update to revision 22000: change #if GTK_MAJOR_VERSION > 2 to >= 2
svn path=/trunk/; revision=22001
2007-05-30 03:28:12 +00:00
Stephen Fisher 6049eda556 Wrap call to gtk_window_set_destroy_with_parent() within check for GTK_MAJOR_VERSION > 2 to get the Windows build-bot going again. This means that bug #1530 has to be reopened awaiting a fix that covers GTK1 also.
svn path=/trunk/; revision=22000
2007-05-30 02:37:37 +00:00
Stephen Fisher 5eb2b42d30 Fix for bug #1530: Graph Analysis window misbehaves if Flow Window that
created it is closed.

The fix is to close the graph analysis window when the flow graph setup
window is closed since closing the flow graph window first destroys all
of the data structures.


svn path=/trunk/; revision=21994
2007-05-29 23:09:09 +00:00
Guy Harris 5a43799a17 Use G_GINT64_MODIFIER, rather than the PRI[douxX]64 macros, for GLib
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-29 18:52:42 +00:00
Guy Harris d2ac4f7133 Check for G_GINT64_MODIFIER in Wireshark as we do in Wiretap.
In all the places where a cast to "long long" or "unsigned long long"
was done, use G_GINT64_MODIFIER and get rid of the cast, as

	1) there's no guarantee that "%ll" works

and

	2) there's no guarantee that "long long" works

(the latter definitely does *NOT* work with MSVC++; the former doesn't
work with regular printf in MSVC++, but it might work with the GLib
printf-based functions).

svn path=/trunk/; revision=21978
2007-05-29 06:56:07 +00:00
Sebastien Tandel 76729e5d0f From David Howells :
Fix compilation failures when building wireshark-0.99.6-SVN-21916 on an
x86_64-unknown-linux-gnu target with gcc version 4.1.2 20070403 (Red Hat
4.1.2-8).

The failures fall into two categories:
  (1) Casts between pointers and 32-bit integers without an intermediary cast
via 'long' or 'unsigned long'.  This results in a compiler warning complaining
about casts between a pointer and an integer of a different size.
  (2) Passing values to "%lld" or similar printf-style format options that the
compiler thinks are a different size.  Such values need to be cast to 'long
long' or 'unsigned long long'.

svn path=/trunk/; revision=21975
2007-05-29 02:43:18 +00:00
Sebastien Tandel d3d3f9bc68 fix warnings for gcc 4.2
svn path=/trunk/; revision=21974
2007-05-29 02:29:38 +00:00
Guy Harris 944d2e5487 Squelch some qualifier (const vs. non-const) warnings.
svn path=/trunk/; revision=21938
2007-05-25 19:13:49 +00:00
Gerald Combs b6408d1673 As Martin pointed out, we were comparing the wrong variable against our
modifier mask (and using the wrong bitwise operator to boot).

svn path=/trunk/; revision=21937
2007-05-25 17:24:35 +00:00
Luis Ontanon 11f06217ce Have editcap and capinfos loading the wiretap plugins.
epan/filesystem.c
   have get_plugin_dir() calling init_plugin_dir() if necessary

epan/epan.c and epan/report_err.c
   move the report_failure family into the new report_err.c file, have epan_init() calling the initializer

epan/plugins.h and epan/proto.c
   do not have init_plugins() calling the proto_reg functions instead do it in init_proto()

gtk/main.c and tshark.c
   init_plugin_dir() has become suprefluous

capinfos.c and editcap.c
   load the wiretap plugins

Makefiles
   do what's needed to build withe the above changes.




svn path=/trunk/; revision=21935
2007-05-25 17:22:32 +00:00
Luis Ontanon c22f70ec1b - epan/uat.h: change the UAT_PROTO_DEF macro to handle both the name of the dissector and the handle
- packet-user_encap.c: use the new UAT_PROTO_DEF
- gtk/uat_gui.c:  change the order of "containment" of the widgets to have the clist fields sized to the scrolledwindow instead of the whole window


svn path=/trunk/; revision=21934
2007-05-25 16:47:22 +00:00
Luis Ontanon 869732d121 Prepare wireshark and tshark for wiretap plugins
svn path=/trunk/; revision=21928
2007-05-24 22:26:51 +00:00
Bill Meier eb61e72efd When computing average: use 0 as avg if divisor=0
svn path=/trunk/; revision=21922
2007-05-24 16:18:33 +00:00
Guy Harris f33ec96669 Use the same workaround for the absence of rint() in MSVC++ that's used
by the TCP graph code.

svn path=/trunk/; revision=21915
2007-05-24 02:10:49 +00:00
Bill Meier d4b111408b Fix 'Analyze ! Enabled_Protocols' search to search on correct column.
svn path=/trunk/; revision=21913
2007-05-24 01:05:08 +00:00
Gerald Combs f4f8079986 Add shortcuts for expanding/collapsing the packet detail.
svn path=/trunk/; revision=21910
2007-05-23 17:12:01 +00:00
Anders Broman 52346caa9c Put in some more, hopfully correct casts.
svn path=/trunk/; revision=21903
2007-05-23 05:27:17 +00:00
Guy Harris a275df06ba Handle characters with the 8th bit set.
svn path=/trunk/; revision=21902
2007-05-23 01:27:57 +00:00
Guy Harris f28467c325 Put back some more missing casts.
svn path=/trunk/; revision=21901
2007-05-23 00:28:59 +00:00
Guy Harris ee3d6b43d5 Put back some casts, and don't use rint() on Windows, in the hopes of
clearing up at least some buildbot errors on Windows.

svn path=/trunk/; revision=21900
2007-05-22 23:56:52 +00:00
Gerald Combs 4b43b48b2c Don't set the focus on the display filter entry when we're passed a
contorl- or alt-modified character.  Fixes bug 1610.

Fixup whitespace.

svn path=/trunk/; revision=21898
2007-05-22 23:06:22 +00:00
Michael Tüxen ab125d0d43 From Irene Ruengeler: Fix TSN handling in graphs.
svn path=/trunk/; revision=21894
2007-05-22 21:16:30 +00:00
Guy Harris b66228d28b Don't explicitly set the main window name unless you're changing the
state to "no packets", "file open", or "live capture in progress".

Instead, to update the main window title when the user-specified prefix
for the title changes:

	save the un-decorated title as a data value attached to the main
	window in set_main_window_name();

	have a new routine to update the title, which fetches the
	un-decorated title, decorates it, and sets the title to the
	decorated value.

This fixes bug 1608.

svn path=/trunk/; revision=21876
2007-05-22 02:21:01 +00:00
Stephen Fisher bd148a7335 Fix bug #1600 in the Win32 file dialog (it was fixed for the GTK file dialog in SVN revision 21807).
svn path=/trunk/; revision=21872
2007-05-22 00:33:46 +00:00
Guy Harris 6559749cd1 Have the follow code keep track of whether there's any data in the TCP
stream, and, if there isn't, pop up a dialog indicating that there isn't
any data in the stream.  This fixes bug 1604.

svn path=/trunk/; revision=21870
2007-05-22 00:00:09 +00:00
Guy Harris a3d3282e64 Have init_progfile_dir() also check whether
WIRESHARK_RUN_FROM_BUILD_DIRECTORY is set and, if so and we weren't run
with special privileges, set the running_in_build_directory_flag.  Have
it do the same if it finds ".libs" in the pathname of the program and we
weren't run with special privileges, as that means it was probably run
from the libtool wrapper script and presumably thus isn't an installed
binary.

This means that get_credential_info() has to be called before
init_progfile_dir().

Clean up some indentation.

svn path=/trunk/; revision=21866
2007-05-21 20:31:45 +00:00
Guy Harris 11d553e9ce Convert the arguments to if_list_comparator_alph() to if_info_t *'s
early on, and use the converted versions.

#if 0 out the error dialog for CANT_GET_AIRPCAP_INTERFACE_LIST, rather
than commenting it out - it's a bit easier to un-out the code, and you
don't have to worry about whether there's a comment in the stuff being
xxx-outed.

svn path=/trunk/; revision=21838
2007-05-19 22:00:09 +00:00
Jaap Keuter 3e0d91c307 Get the build going.
svn path=/trunk/; revision=21833
2007-05-19 10:59:44 +00:00
Gerald Combs 55d2b928c2 From Dustin Johnson:
- Update the wireless/AirPcap GUI code to support 802.11n as well as
    some related upcoming code changes.
  - Remove airpcap.h from the repository, since it exists in the AirPcap
    devpack (and will be superseded Real Soon Now).
  - Show the individual channel flag bits in radiotap.
  
Fix the 802.11n MCS set display.

This is a partial checkin, so hopefully nothing is broken.

svn path=/trunk/; revision=21831
2007-05-18 21:06:20 +00:00
Gerald Combs 17271f0879 When saving an RTP stream, don't insert silence if our packet has a
wrong timestamp.  Place a cap on the amount of silence that we do
insert.  This should fix bug 1580.

Update the release notes.

svn path=/trunk/; revision=21818
2007-05-17 18:41:07 +00:00
Gerald Combs a779f0cfd7 Queue a redraw event in packet_list_clear(). This seems to fix the
incorrect redraw behavior when the packet list length is less than the
widget height.

svn path=/trunk/; revision=21816
2007-05-17 17:38:11 +00:00