Commit graph

3168 commits

Author SHA1 Message Date
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
Gerald Combs
997b60df05 Decrease the refresh time to 100ms. This seems to make the splash
screen updates a little more smooth without affecting the startup
time for remote sessions.

svn path=/trunk/; revision=21815
2007-05-17 17:15:51 +00:00
Stephen Fisher
9a0ecd31d1 Fix bug #1548: call of "Protocol Preferences" results in GTK error msg
at the command line


svn path=/trunk/; revision=21808
2007-05-16 21:45:02 +00:00
Stephen Fisher
dba14a4f17 Fix bug #1600: Merge feature from File menu does'nt do what it should
(append vs prepend)


svn path=/trunk/; revision=21807
2007-05-16 20:19:30 +00:00
Ronnie Sahlberg
0491f613c8 dont use g_time_add_val() since it is not available in gtk1
svn path=/trunk/; revision=21798
2007-05-16 00:55:47 +00:00
Gerald Combs
d251c05fad Instead of updating the splash screen every time we load or hand off
a dissector, update it every 250 ms.  This drastically reduces the
startup time on remote displays (for me, at least).

svn path=/trunk/; revision=21796
2007-05-15 23:06:48 +00:00
Tomas Kukosa
863ab88aa9 missing includes
svn path=/trunk/; revision=21765
2007-05-14 14:27:09 +00:00
Anders Broman
c01f382974 Second step in introducing asn context to BER dissectors just like in PER.
svn path=/trunk/; revision=21753
2007-05-13 20:58:29 +00:00
Gerald Combs
06886379c7 On slow displays (such as RDP sessions), it looks like the "update"
callback routines might get called before we're ready for them.
Add checks to handle this.

Fixup whitespace.

svn path=/trunk/; revision=21744
2007-05-10 22:30:29 +00:00
Graeme Lunt
83a8448dae Missing string.h for strncmp.
svn path=/trunk/; revision=21718
2007-05-07 19:02:27 +00:00
Graeme Lunt
cf56e76be9 Updated splash screen for Wireshark that shows the initialisation progress.
The splash screen shows a progress bar and a percentage complete - like the progress dialog.
As dissectors are initialised and handed off the name is shown. However, the names of plugin dissectors are not shown.
The update to the make-dissector-reg shell script has been tested, though I think generally the python version is used.


svn path=/trunk/; revision=21716
2007-05-07 17:55:42 +00:00
Ulf Lamping
730fbdc983 add -P command line option help
svn path=/trunk/; revision=21693
2007-05-05 12:20:37 +00:00
Jaap Keuter
639b32aeee Spare the filter compilation and filter list handling on clear display filter.
svn path=/trunk/; revision=21681
2007-05-04 11:28:01 +00:00
Jaap Keuter
742a43f941 From Steven Schaeffer:
Fix for bug 310. Use the frame number to store history i.s.o. row number.

svn path=/trunk/; revision=21680
2007-05-04 11:21:03 +00:00
Tomas Kukosa
cfa43d6daa generate T.38 dissector from ASN.1 source
svn path=/trunk/; revision=21676
2007-05-04 07:10:15 +00:00
Guy Harris
2cbb8e33e2 Immediately quit routines if fwrite() fails - further writes will
probably fail (as you're probably out of disk space or over quota), and,
even if they don't, the file's going to be corrupt in any case.

(Hopefully that's sufficient to avoid warnings that we're ignoring the
result of fwrite().)

For fread(), check for errors or short reads, at least in all cases
where we have a provision for failing if the read fails.

svn path=/trunk/; revision=21649
2007-05-02 19:28:24 +00:00
Ronnie Sahlberg
8d27a59817 some more : try to make read/write not break the build if the return value is not used
svn path=/trunk/; revision=21641
2007-05-02 12:17:01 +00:00
Ronnie Sahlberg
6c3ca6fb55 do something with the return value from eth_write (which is a define for fwrite)so that -Werror does not cause the build to fail
-This line, and those below, will be ignored--

M    gtk/rtp_analysis.c

svn path=/trunk/; revision=21639
2007-05-02 12:07:46 +00:00
Ronnie Sahlberg
2fadd01c25 fix some more warnings that the result from fread/fwrite is discarded by assigning the return value to a variable
svn path=/trunk/; revision=21638
2007-05-02 11:50:54 +00:00
Ronnie Sahlberg
f2d36b3349 store the result of fread in a variable to make -Werror happy
svn path=/trunk/; revision=21637
2007-05-02 08:50:16 +00:00
Guy Harris
08ab8d8734 mtp3_addr_to_str_buf() and mtp3_pc_hash() expect to be passed a pointer
to a mtp3_addr_pc_t; declare them as such, and pass the argument as
such.

svn path=/trunk/; revision=21595
2007-04-26 07:57:44 +00:00
Guy Harris
f13901ef1c memmove() is needed only if the source and destination might overlap.
svn path=/trunk/; revision=21592
2007-04-26 05:47:34 +00:00
Guy Harris
8b0bc56f2c See previous comment.
svn path=/trunk/; revision=21587
2007-04-26 03:43:34 +00:00
Guy Harris
9463cd9070 Umm, that's *not* how you compare addresses for equality....
svn path=/trunk/; revision=21586
2007-04-26 03:41:44 +00:00
Guy Harris
29c7090c23 Copy up to 4 bytes from the source address, rather than just copying the
first byte; if the goal is to have the address not be fake for IPv4,
that's the way to do it.

svn path=/trunk/; revision=21585
2007-04-26 03:38:40 +00:00
Ronnie Sahlberg
474e4c7483 add an explicit cast of the callback function in the gtk1 SIGNAL_DISCONNECT_BY_FUNC()
svn path=/trunk/; revision=21553
2007-04-24 06:49:38 +00:00
Jaap Keuter
686c6b394c Damn qqq-bird. ;)
svn path=/trunk/; revision=21551
2007-04-24 06:16:58 +00:00
Ronnie Sahlberg
c1d76f9465 oncly include capture_details_24.xpm IFF we have pcap and if we have gtk>=2 to supress a warning if compiling for gtk 1
svn path=/trunk/; revision=21550
2007-04-24 05:52:01 +00:00
Ronnie Sahlberg
5aaff9b252 if we compile for gtk1 'text' is no longer referenced in the simple_dialog_check_set() function and a warning arises
mark the text argument as _U_ to suppress the warning


svn path=/trunk/; revision=21549
2007-04-24 05:46:13 +00:00
Guy Harris
1bc049906a Add some GCC warnings to the standard set, and add some others to the
--enable-extra-gcc-checks set.

If we turn on -pedantic, try turning on -Wno-long-long as well, so that
it's not *so* pedantic that it rejects the 64-bit integral data types
that we explicitly require.

Constify a bunch of stuff, and make some other changes, to get rid of
warnings.

Clean up some indentation.

svn path=/trunk/; revision=21526
2007-04-23 10:59:26 +00:00
Bill Meier
f48fd4700d Restore the casts from svn 21080 (presumably) inadvertantly removed in svn 21495.
so windows build doesn't get warnings.

svn path=/trunk/; revision=21517
2007-04-23 00:31:57 +00:00
Bill Meier
cb92dd7019 Another fix to allow gtk1 to compile w/o warnings....
svn path=/trunk/; revision=21512
2007-04-22 22:23:19 +00:00
Guy Harris
82583f9697 "struct sack_chunk_header" is presumably just a SACK chunk header
followed by zero or more gap start/end pairs; fix up the previous fix to
handle that correctly.

svn path=/trunk/; revision=21510
2007-04-22 20:43:01 +00:00
Guy Harris
a346e923b7 Don't play type-punning games - they cause compiler warnings (not that
anybody appears to ever *set* sack_header->gaps).

svn path=/trunk/; revision=21509
2007-04-22 20:29:31 +00:00
Ronnie Sahlberg
a4ae600125 move some headers so that the compile works on gtk1
svn path=/trunk/; revision=21505
2007-04-22 16:44:36 +00:00
Ronnie Sahlberg
a1131be153 move include of a few headers down a few lines so the compile works on
gtk1

svn path=/trunk/; revision=21504
2007-04-22 16:40:34 +00:00
Ronnie Sahlberg
40c806f54b compile fix for gtk1
svn path=/trunk/; revision=21503
2007-04-22 15:49:29 +00:00
Ronnie Sahlberg
416a353ee7 fix compiler warning for gtk1 builds
svn path=/trunk/; revision=21502
2007-04-22 15:48:18 +00:00
Ronnie Sahlberg
26ee9ac8ea dont include these headers under gtk1
svn path=/trunk/; revision=21501
2007-04-22 15:45:34 +00:00
Ronnie Sahlberg
872398a417 some updates to allow gtk1 to compile without warnings
svn path=/trunk/; revision=21500
2007-04-22 15:43:01 +00:00
Michael Tüxen
18c6fbb379 From Irene Ruengeler: Fix a bug regading the handling of ABORT chunks.
svn path=/trunk/; revision=21495
2007-04-22 10:25:26 +00:00
Stephen Fisher
94e4258172 Fix bug #1547: Expert Info Composite column "Count" is not sorting numerically
svn path=/trunk/; revision=21485
2007-04-20 23:10:03 +00:00
Jaap Keuter
1b50aa2a44 Unused parameter
svn path=/trunk/; revision=21444
2007-04-16 06:20:39 +00:00
Sebastien Tandel
83cac28421 uninitialized warning fix
svn path=/trunk/; revision=21439
2007-04-14 19:49:48 +00:00
Sebastien Tandel
04f63f9897 unused variable
svn path=/trunk/; revision=21436
2007-04-14 18:18:25 +00:00
Sebastien Tandel
06deb19f7d move ipsec to DISSECTOR_SRC
fix some more MacOSX gcc warnings

svn path=/trunk/; revision=21433
2007-04-14 15:57:03 +00:00
Sebastien Tandel
2371ad2eb0 fix gcc warning about qualifier types (const) which are discarded when arriving
at the pcap interface.

svn path=/trunk/; revision=21417
2007-04-13 20:59:20 +00:00
Anders Broman
ffd05a9579 Add the name of the dynamic payload type to the stream dialouge if avalable.
svn path=/trunk/; revision=21375
2007-04-10 18:58:18 +00:00
Graham Bloice
7710d21893 Fix build failures due to windows.h being included before winsock2.h via other includes
svn path=/trunk/; revision=21335
2007-04-04 12:18:10 +00:00
Anders Broman
31dfe96326 Preparations to be able to display dynamic payload type name in the stream analysis.
svn path=/trunk/; revision=21334
2007-04-04 06:58:12 +00:00
Stephen Fisher
6625e7503f Fix warnings on Linux/gcc 4.1.1
svn path=/trunk/; revision=21330
2007-04-03 21:17:13 +00:00
Stephen Fisher
2ec727ba76 Fix "Gtk-CRITICAL **: gtk_tree_selection_get_selected: assertion
`selection->type != GTK_SELECTION_MULTIPLE' failed" error when
opening the User Specified Decodes with multiple decodes setup.
The problem is caused by the selection mode for the list being
set to multiple.  I changed it to none so that the user doesn't
get the false impression that you can select only certain items
and clear them (the clear button clears them all).


svn path=/trunk/; revision=21287
2007-03-30 22:14:33 +00:00
Stephen Fisher
de51386b22 Change GTK_MAJOR_VERSION >= 2 to GTK_CHECK_VERSION(2,4,0) for Follow
TCP/SSL Stream dialog find buttons because one of the functions used
only works with GTK 2.4+.  Reported by Chris Maynard on -dev list.


svn path=/trunk/; revision=21285
2007-03-30 20:50:08 +00:00
Sebastien Tandel
814e1fde16 remove svn:executable
svn path=/trunk/; revision=21279
2007-03-30 00:54:39 +00:00
Bill Meier
8a78f531b4 From Sake Blok: fix bug 598 (http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=598)
svn path=/trunk/; revision=21277
2007-03-30 00:23:19 +00:00
Stephen Fisher
305fd435de Change mnemonic on Save All button from A to L to avoid overlapping
with the mnemonic for the Save As (A) button in the Export Object
dialog.


svn path=/trunk/; revision=21272
2007-03-29 18:07:36 +00:00
Stephen Fisher
8fd3ee0560 Remove almost all of the casts I committed recently and in place of
them, add -Wno-pointer-sign to CFLAGS when gcc will accept it.


svn path=/trunk/; revision=21253
2007-03-28 21:55:11 +00:00
Luis Ontanon
359c840dfb do not avoid redrawing the tap
make sure we do not pass a null pointer to add_to_graph()


svn path=/trunk/; revision=21251
2007-03-28 19:31:54 +00:00
Luis Ontanon
9dbe9adf50 Another iteration over sctp calls (RANAP/BSSAP) a step towards TCAP/(MAP/IMAP/CAMEL)
- Fix SUA calls (I would need some more traces to test this)


svn path=/trunk/; revision=21235
2007-03-27 23:00:55 +00:00
Ulf Lamping
d6f78c3457 from Gisle Vanem:
add " && defined(_MSC_VER)", as MingW doesn't need it

svn path=/trunk/; revision=21231
2007-03-27 21:32:14 +00:00
Luis Ontanon
25dbb9216f add Megaco to the "VoIP Calls" tap
svn path=/trunk/; revision=21213
2007-03-26 21:12:24 +00:00
Luis Ontanon
7233064c5a rename h248_* to gcp_* according to changes in epan.
svn path=/trunk/; revision=21190
2007-03-25 21:56:08 +00:00
Ronnie Sahlberg
62353b8044 From Jon Smirl
support for usb host/endpoint lists


svn path=/trunk/; revision=21180
2007-03-25 11:37:13 +00:00
Ronnie Sahlberg
17b4ee556b From Jon Smirl
support for USB conversations



svn path=/trunk/; revision=21179
2007-03-25 11:27:29 +00:00
Ulf Lamping
c7ba9e25b3 hmmm, _WINSOCK2API_ is not the way to go, the PSDK that comes with MSVC 6.0 also defines this - but not sockaddr_storage :-(
Next try is to use the WINVER #define. AFAIK, this depends on the Platform SDK version used, which is actually our problem here. So this fix *might* work ...

svn path=/trunk/; revision=21168
2007-03-24 18:26:34 +00:00
Ulf Lamping
473f4c3b64 as mentioned by Graham Bloice:
sockaddr_storage doesn't depend on the MSVC version used, but the version of the Winsock API, which might be updated by the Platform SDK even on MSVC 6 - so depending on the _MSC_VER is not the way to go

svn path=/trunk/; revision=21162
2007-03-24 02:45:45 +00:00
Stephen Fisher
1909b97d4d Remove all warnings under Unix for the gtk/ directory.
svn path=/trunk/; revision=21160
2007-03-24 00:45:11 +00:00
Stephen Fisher
64cc1b407c From Sebastien Tandel:
(Fixing warnings)

stripped away some unused variables/parameters
+ in prefs.c
    suggestion of parentheses makes gcc happy


svn path=/trunk/; revision=21156
2007-03-23 18:45:21 +00:00
Stephen Fisher
6d8d2854c8 From Sake Blok:
Fix for bug #491: Unexpected frame.time_delta behavior

This patch ... fixes bug 491. It does this by changing the
behaviour of the frame.time_delta field so it reflects the delta
time between captured packets (tshark already did this).  To keep
the delta time between displayed packets, the field 
frame.time_delta_displayed is created.


svn path=/trunk/; revision=21154
2007-03-23 18:08:17 +00:00
Stephen Fisher
2e562ea7b4 From Sake Blok (via -dev list and enhancement bug #1449):
I did however see some small errors in the
documentation that I did not notice when I sent in the patch. This
patch corrects them and adds an accelerated key:

- table 6.1 remove "Analyze" from "Identical..." column for "Copy as Filter"
- table 6.2 add "Edit" from "Identical..." column for "Copy as Filter"
- Added accelerator key for "Copy as Filter". I chose "Shift+Ctrl+C", so
  that "Ctrl+C" is still available for "standard" copy

Image figure 3.4 should be renewed, reflecting the change in the menu
structure. 


svn path=/trunk/; revision=21140
2007-03-23 00:42:45 +00:00
Ulf Lamping
0aaacb0088 fix new warnings
svn path=/trunk/; revision=21131
2007-03-22 23:29:55 +00:00
Luis Ontanon
7f3e4fea48 Mine:
* add SUA to the "VoIP Calls" tap.
* propagate changes to packet-sccp.h to other dissectors

From Neil Piercy:
* add SLR, DLR and CAUSE to COL_INFO

svn path=/trunk/; revision=21126
2007-03-22 22:59:20 +00:00
Ulf Lamping
d877cbc394 minor "Copy" menu item fix:
split the "sensitivity control" into "Copy" and "Copy/As Filter", otherwise it's not possible to copy a field that is not filterable (e.g. text only descriptions)

svn path=/trunk/; revision=21097
2007-03-21 21:23:56 +00:00
Ulf Lamping
13825debb0 fix another three MSVC 8.0 warnings
svn path=/trunk/; revision=21089
2007-03-21 12:37:39 +00:00
Jörg Mayer
d987ac4127 Fixes for: warning: function declaration isn't a prototype
svn path=/trunk/; revision=21082
2007-03-21 04:54:20 +00:00
Ulf Lamping
407d0aeab0 fix all warnings in gtk dir & set the "treat all warnings as errors" MSVC flag
svn path=/trunk/; revision=21080
2007-03-21 03:26:26 +00:00
Luis Ontanon
16f4a91dfc Add the sccp tap to the "VoIP Calls" Tap (which by now should be renamed to just "Calls") but that's for later.
Now it does H323, SIP, MGCP, ISUP/BICC, RANAP, BSSAP, H.248  and others...

svn path=/trunk/; revision=21077
2007-03-21 00:59:00 +00:00
Graeme Lunt
a51f1694c9 This change allows a structure to be created under the "Protocols" section of the preferences.
A new function is introduced, prefs_register_protocol_subtree(), that allows the subtree the protocol should appear under to be specified. The subtree is specified as a string, with a '/' delimiting each subtree element. For example,
	prefs_register_protocol(proto_dap, prefs_register_dap);
becomes
	prefs_register_protocol_subtree("OSI/X.500", proto_dap, prefs_register_dap);

The function will create all the intermediate subtree nodes that are required, if they don't already exist. 
This allows the grouping of procotols which should make the list of protocols more manageable as even more are added. The current aim is to group by protocol family e.g. 
+ OSI
  + X.400
      X.411
      X.420
  + X.500
      DISP
      DAP
      DOP
      DSP
  + X.509
      X509AF
      X509CE
      ...

but others grouping could be envisioned (e.g. by first letter). 

As the intermediate nodes may already have preferences (e.g. OSI), then modules are now allowed to have submodules. Previously each node was either a subtree or held preferences. This is consistent with the "User Interface" node.

The subtree structure has no effect on how the preferences are saved to file, and the "Protocol Preferences..." menu option will bring up the preferences expanded to the correct node.

In addition, a new "blank page" has been introduced for intermediate nodes that have no preferences (and is also used when the "Protocols" node itself is chosen). This prevents confusion when the user moves from a node with preferences to a node without preferences, but the page old page is still shown.

There is also a change to prevent '#' characters in a value being treated as a comment when parsing the preferences file. (There is nothing that adds comments when writing the preferences file.) 


svn path=/trunk/; revision=21066
2007-03-19 19:08:22 +00:00
Luis Ontanon
529c65f713 voip_calls.c:
- instead of wrongly using the h248 call counter use tapinfo's counter

graph_analysis.c:
- beautify  the code (I was trying to the bug that got fixed by bzeroing m3ua tap data however this looks better!).

svn path=/trunk/; revision=21063
2007-03-19 00:36:42 +00:00
Luis Ontanon
ef24b97061 have voip_calls using the m3ua tap
svn path=/trunk/; revision=21060
2007-03-18 23:16:54 +00:00
Luis Ontanon
9a9a4ebf01 check the pointer before derreferencing it
svn path=/trunk/; revision=21059
2007-03-18 23:15:19 +00:00
Luis Ontanon
cd824a3f67 squelch some warnings
svn path=/trunk/; revision=21057
2007-03-18 22:26:08 +00:00
Luis Ontanon
627f57b351 add h248 to VoIP Calls
svn path=/trunk/; revision=21056
2007-03-18 22:14:12 +00:00
Bill Meier
04d29de81d Fix Windows Makefiles so clean removes all pdb files (PDB_FILE no longer defined)
svn path=/trunk/; revision=21052
2007-03-18 15:36:22 +00:00
Jeff Morriss
be214868a5 Fix bug 1336:
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1336

Since mtp3_stat_draw() returns immediately if passed a NULL tapdata pointer,
call it with a pointer to the stat data (instead of NULL) in
mtp3_stat_gtk_cb().

svn path=/trunk/; revision=21042
2007-03-17 08:56:11 +00:00
Stephen Fisher
e99aa2fe23 Update to revision 21038 - line up the IP address label with the
rest of the items in that part of the capture dialog.


svn path=/trunk/; revision=21039
2007-03-17 00:10:48 +00:00
Stephen Fisher
c1132d9a4b Fix bug #1375: Capture Options with many IP addresses scrolls off
screen

Changed IP address label to fit into an event box which is in the ip
address hbox.  This allows the label to expand to fit the capture dialog
window, but no further.  Expanding the capture dialog window will show 
more IP addresses.  Left align the label.  Add ... in the middle of a
long list of IP addresses to show the first few and the last few with
the gtk_label_set_ellipsize() function in GTK 2.6 and up. 


svn path=/trunk/; revision=21038
2007-03-16 22:05:57 +00:00
Guy Harris
082282b6f4 Don't enable "Save As" if you don't have an unsaved live capture file
and there are no formats in which the file can be saved by some means
other than copying the raw data; "Save As" isn't a very useful function
in that case, and that prevents us from having an empty list of formats
in which the file can be saved.

svn path=/trunk/; revision=21032
2007-03-14 19:30:19 +00:00
Guy Harris
50bb064108 Get rid of some #if-ed out includes, which aren't needed.
svn path=/trunk/; revision=21031
2007-03-14 19:29:42 +00:00
Guy Harris
8a3ea1a6f7 Fix indentation.
svn path=/trunk/; revision=21027
2007-03-14 18:19:13 +00:00
Ulf Lamping
7366ae37a0 as requested by "John T. Haller" for PortableApps.com:
add new WS command line option -P to be able to change some of the path settings

this is experimental, please report bugs

svn path=/trunk/; revision=21022
2007-03-14 02:55:54 +00:00
Stephen Fisher
eeea95ccbe HTTP Export Object updates:
- Split the HTTP tap into two taps: one for the HTTP statistics
   and the other for the export object function.  This allows the
   HTTP statistics to work again (they seem to have been
   partially broken since SVN rev 18901).
 - Pass the conversation data (conv_data) between functions now
   instead of using the global variable stat_info (now only used
   for the HTTP stats)
 - Pass only pointers from the HTTP dissector to the Export Object
   tap, where we'll then copy the values and insert into the slist.
 - Make sure we free all memory allocated by this feature when
   we're done with it.
 - Various other minor improvements


svn path=/trunk/; revision=21021
2007-03-13 20:42:04 +00:00
Jörg Mayer
fb820f0a07 GCC warning fixes
epan/dissectors/
packet-bctp.c:
	no newline at end of file
packet-epl.c:
	C++ style comments are not allowed in ISO C90
packet-sccp.c:
	missing initializer
packet-sccp.h:
	comma at end of enumerator list
packet-sctp.c:
	suggest parentheses around assignment used as truth value
packet-vnc.c:
	control reaches end of non-void function
	pointer targets in passing argument 1 of 'g_strtod' differ in
		signedness
	pointer targets in passing argument 3 of 'vnc_client_to_server'
		differ in signedness
gtk/
main.c:
	C++ style comments are not allowed in ISO C90
u3.h:
	function declaration isn't a prototype

Other (trivial) stuff
packet-sccp.h:
	Add svn properties


svn path=/trunk/; revision=21011
2007-03-09 13:14:09 +00:00
Ulf Lamping
acefba187a from Sake Blok:
I have changed the patch according to your suggestions and also changed
the doc[book] files accordingly. I tested the patch and it does seem to
work fine on my test-system.

ULFL: In addition, I've added the en-/disabling to the other (already existing) Copy menu items - some just did nothing, some crashed if nothing was selected.
I've also sligthly changed the menu seperators and made both context menus look a bit more identical.

svn path=/trunk/; revision=21005
2007-03-08 23:37:55 +00:00
Jörg Mayer
736e5fdfef Whitespace changes
svn path=/trunk/; revision=21002
2007-03-08 14:49:14 +00:00
Stephen Fisher
7389b3fabd Add a "Bits/Tick" option to the IO Stats dialog to complement the
"Bytes/Tick" option.


svn path=/trunk/; revision=20997
2007-03-07 23:39:45 +00:00
Stephen Fisher
2865e52843 Export Object code/documentation updates:
- Note in the user's guide that export object is not available 
   in GTK1 builds of Wireshark.
 - Make scanning through the slists more efficient
 - Use new tap.c function called have_tap_listener() to only save
   object payload data when the export object listener is actively
   listening for it.
 - Save objects in the HTTP dissector with g_malloc() instead of
   se_malloc() and free it when we're done with it - when the
   export object window is closed (Fixes bug #1412)
 - Various minor improvements


svn path=/trunk/; revision=20980
2007-03-06 00:36:25 +00:00
Luis Ontanon
4b4d4fed2a protect callbacks of derived windows from dereferencing a null pointer if the main table has being closed in the meanwhile.
svn path=/trunk/; revision=20970
2007-03-04 02:27:11 +00:00
Stephen Fisher
2c5ccc66ef Update object export code:
- Add to User's Guide
 - Add a help button
 - Move a lot of code into the shared export_object.c file and out of
   dissector specific file export_object_http.c.  This will make adding
   additional protocols much easier.
 - Change comment in packet-http.c to reflect new name (Export Object)
 - Various other minor improvements 


svn path=/trunk/; revision=20961
2007-03-03 03:14:00 +00:00
Stephen Fisher
f8d82fab38 Activate the File -> Export menu when a capture is in
progress in addition to when a capture file is open.


svn path=/trunk/; revision=20959
2007-03-02 21:47:34 +00:00
Ulf Lamping
ae89a24c37 add export_object.h so distcheck don't fail
svn path=/trunk/; revision=20954
2007-03-01 09:36:01 +00:00
Stephen Fisher
bdf7c9bfb1 Wrap long lines in simple dialogs so that the dialog and its message
won't ever extend off the screen.


svn path=/trunk/; revision=20953
2007-03-01 02:18:18 +00:00
Stephen Fisher
d3b873b60d Sync up my changes so far to the content list (now called object
list) feature for http traffic.  It's now available under File->
Export->Objects->HTTP.  More changes to come..


svn path=/trunk/; revision=20951
2007-02-28 23:20:40 +00:00
Anders Broman
ccf3253f35 From Floren Drouin:
This patch add a test on the GTK version to avoid a warning with the "gtk-label-select-on-focus" configuration parameter, introduced in GTK-2.9.0.

svn path=/trunk/; revision=20936
2007-02-27 06:38:49 +00:00
Luis Ontanon
a2a25e7586 revert (most) changes in rev #20753, to avoid items being created on a wrong menu on windows.
svn path=/trunk/; revision=20928
2007-02-25 18:03:05 +00:00
Stephen Fisher
122ac7dd0e Treat "<NULL>" as returned from a call to se_strdup() in packet-http.c as a
NULL value when checking if the content-type was found.


svn path=/trunk/; revision=20880
2007-02-20 19:57:04 +00:00
Stephen Fisher
07f8ad771e Put the rest of the #if GTK_MAJOR_VERSION >= 2 preprocessor statements around parts of the Content List -> HTTP feature code.
svn path=/trunk/; revision=20869
2007-02-20 00:22:00 +00:00
Stephen Fisher
7a2bfb7a61 Initial version of the new Statistics -> Content List -> HTTP feature. This
feature lists all of the content found in an HTTP stream (images, http, etc.)
and displays it in a list that allows the user to save each one as a file that
is already reassembled by the dissectors.


svn path=/trunk/; revision=20867
2007-02-19 22:37:45 +00:00
Bill Meier
547a03b25b Fix some C++ style comments
svn path=/trunk/; revision=20865
2007-02-19 21:45:27 +00:00
Jeff Morriss
0787b688cc Squelch a few unused parameter warnings.
svn path=/trunk/; revision=20863
2007-02-19 15:30:06 +00:00
Jeff Morriss
eade8066bd Oops, help_topic_gtk() is _only_ needed in GTK1.2 builds, so #ifdef it (and some of its helpers) out in GTK2 builds.
svn path=/trunk/; revision=20859
2007-02-19 10:43:53 +00:00
Jeff Morriss
8c6bda4db5 Squelch a couple (false) uninitialized variable warnings
svn path=/trunk/; revision=20858
2007-02-19 10:26:21 +00:00
Guy Harris
29755e2a35 Squelch a "used without being set" warning.
svn path=/trunk/; revision=20848
2007-02-19 01:21:10 +00:00
Guy Harris
b8a2977742 We only need the Wireshark splash image if we have the welcome page.
svn path=/trunk/; revision=20847
2007-02-19 01:19:36 +00:00
Ulf Lamping
3a77db6b26 bugfix: call set_proto_selection() before actually writing the selections to disk. Otherwise the changes won't be written to disk correctly (when pressing the OK button).
Interestingly, no complains were heard about this before ...

svn path=/trunk/; revision=20818
2007-02-15 20:48:39 +00:00
Luis Ontanon
c63b0a6bc6 From Peter Johansson:
I have provided a patch for a crash that occurs in uat_gui.c if from the
"Edit preferences..." button when you choose Protocols -> DLT_USER ->
the "Edit..." button -> the "New" button -> the "Cancel" button.
The crash happens because dd gets freed prior to traversing its internal
structure, hence I moved the call to g_free for dd beneath the traversal
of the dd internals.



svn path=/trunk/; revision=20813
2007-02-14 19:21:37 +00:00
Stephen Fisher
0ebc01dc03 From Sebastien Tandel:
Create two new files (ws_strsplit.[ch]) that use GTK2 code to override
the buggy g_strsplit() function when compiling for GTK1.  Include this
work-around function (ws_strsplit) in libwireshark.def.  Add notes on usage
to README.developer.  Include epan/ws_strsplit.h in all files that use
g_strsplit().


svn path=/trunk/; revision=20804
2007-02-13 20:57:22 +00:00
Ronnie Sahlberg
d059526285 use g_string_append() instead of g_string_append_printf()
we dont have g_string_append_printf() in gtk 1 

svn path=/trunk/; revision=20798
2007-02-12 20:11:42 +00:00
Luis Ontanon
b26c1c4ca2 Add a description of UAT fields, and have it as a tooltip in the New/Edit Dialog.
svn path=/trunk/; revision=20797
2007-02-12 19:57:41 +00:00
Luis Ontanon
ee4cf097ad From Albert Chin:
Gnutls can be located in a different place than the other libs.


svn path=/trunk/; revision=20796
2007-02-12 19:55:54 +00:00
Ulf Lamping
64f5bec543 delimit each CSV output with "
(this should be combined into a generic function as this CSV encapsulation functionality is implemented several times)

svn path=/trunk/; revision=20791
2007-02-12 05:10:52 +00:00
Ulf Lamping
ca590fafbe ooops, and here comes the actual context menu code change from Douglas Pratley ... already mentioned in SVN 20787
svn path=/trunk/; revision=20790
2007-02-12 05:08:33 +00:00
Luis Ontanon
5db2005993 Have Aply, Cancel and OK buttons instead of the save and ok button.
Have these buttons reloading the capture file if needed.
Some rearrangement of the window (the editor is still missing "ornaments" and tooltips)


svn path=/trunk/; revision=20788
2007-02-11 16:09:21 +00:00
Michael Tüxen
7e8098c520 A fix from Irene Ruengeler to keep assocs selected when
setting/applying filters.
Remove some warnings.


svn path=/trunk/; revision=20759
2007-02-09 21:05:43 +00:00