Commit graph

3168 commits

Author SHA1 Message Date
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
Martin Mathieson
2a6c2284c4 Fix build (at least for me) by removing macros_dlg.h
svn path=/trunk/; revision=20754
2007-02-09 11:24:59 +00:00
Luis Ontanon
7c57c05ed5 * Add a Submenu (/Views/User Tables) where UATs can be accessed.
* Remove macros_dlg, the DFMacros UAT goes in the menu with all the rest
* in packet-user_encap.c WTAP_ENCAP=XXX has become useless information for the user leave just the DLT#



svn path=/trunk/; revision=20753
2007-02-09 03:11:14 +00:00
Ulf Lamping
a70a78e0ec some further work on the "welcome page", still far from being complete
svn path=/trunk/; revision=20741
2007-02-08 01:05:43 +00:00
Luis Ontanon
5ec87e6eef no gtk_window_set_resizable in GTK1
svn path=/trunk/; revision=20735
2007-02-07 13:55:34 +00:00
Luis Ontanon
bc2ca61083 Add ENUM and HEXBYTES modes
svn path=/trunk/; revision=20733
2007-02-07 03:39:40 +00:00
Ulf Lamping
bc09ad6f17 don't free ofn before the last place used
svn path=/trunk/; revision=20732
2007-02-07 02:50:33 +00:00
Ulf Lamping
c7936a1c37 fix a comment typo
svn path=/trunk/; revision=20731
2007-02-07 02:45:53 +00:00
Jeff Morriss
0c17bfd3a8 From Eric Hall to fix bug 1289:
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1289

Rename 'svnversion' to 'wireshark_svnversion' to resolve a symbol conflict with
GTK 2.10.6 (hmm, shouldn't GTK not be exporting that symbol or at least naming
it so as to prevent such collisions? Well, so should we, so...)

From Andreas Fink: change #ifdef for size_t in airdcap_interop.h to fix
compile on MacOS X.


svn path=/trunk/; revision=20726
2007-02-06 02:27:59 +00:00
Luis Ontanon
2b22bcb1a3 * Add a help facility for UATs
* export help_topic_html()


svn path=/trunk/; revision=20717
2007-02-05 05:06:21 +00:00
Luis Ontanon
b7a16926d7 Add a confirm dialog when the user closes the window with unsaved data.
svn path=/trunk/; revision=20716
2007-02-05 04:22:06 +00:00
Graeme Lunt
3bdc71b56b Augment get_gui_runtime_info() with additional information about the U3 device Wireshark is being run from.
svn path=/trunk/; revision=20711
2007-02-04 12:39:07 +00:00
Luis Ontanon
fbc8912b87 Move (Up/Down) & Save buttons
svn path=/trunk/; revision=20708
2007-02-04 05:19:02 +00:00
Luis Ontanon
d70a58f881 second iteration:
* fields of an uat table now are passed using an array of uat_filed_t
* field callbacks take two more userdata arguments
* add some macros to define uat field callbacks.
* uats can be registered as preferences for a specific protocol
   - the preference widget is a button that opens the uat's window
* dfilter-macro => reflect changes to API


svn path=/trunk/; revision=20695
2007-02-03 14:25:02 +00:00
Stephen Fisher
19883c003a Assign the cancel button (so you can hit the escape key) on the capture/display
filter dialog box


svn path=/trunk/; revision=20681
2007-02-02 01:09:41 +00:00
Ronnie Sahlberg
7d8687e8ae dont ifdef out main_window_exit() if we dont have PCAP since this symbol is required even without pcap
svn path=/trunk/; revision=20661
2007-02-01 08:36:35 +00:00
Ulf Lamping
b1cdc9bcb9 backup of some design work of the Wireshark "Welcome" page - the one shown when no trace file is loaded - this page is still disabled.
This is only a "personal backup" of some design ideas / experiments for this page - and needs a lot more work / cleanup. I'm checking this in just to prevent data loss.

svn path=/trunk/; revision=20640
2007-01-31 03:08:39 +00:00
Ulf Lamping
e9dd661b18 use window_present() as discussed
svn path=/trunk/; revision=20639
2007-01-31 03:05:03 +00:00
Jeff Morriss
b0bca8ff3b #include stdlib.h so uat.h can find size_t (at least on Solaris). Add newline to end of macros_dlg.h (just to prevent a compiler warning)
svn path=/trunk/; revision=20638
2007-01-31 02:55:14 +00:00
Stephen Fisher
580092477d Show the channel frequencies in the wireless (AirPcap) toolbar next to the channel number in the drop-down list.
svn path=/trunk/; revision=20619
2007-01-30 01:57:34 +00:00
Ulf Lamping
99209b76ce call gtk_window_present() only on GTK >= 2.x, should fix current compilation problems.
I don't have tested this on a GTK 1.x system...

svn path=/trunk/; revision=20615
2007-01-29 23:29:11 +00:00
Anders Broman
1f99d6fc2d Fix a typo (double ;;).
svn path=/trunk/; revision=20610
2007-01-29 21:26:08 +00:00
Michael Tüxen
ed692e1c8a Improve the handling of INIT/ABORT mesage pairs.
svn path=/trunk/; revision=20608
2007-01-29 20:44:59 +00:00
Luis Ontanon
3e924d9def Finish (?) UAT's GUI
svn path=/trunk/; revision=20605
2007-01-29 14:14:01 +00:00
Luis Ontanon
8f48cb6364 Actually this is the UAT GUI...
svn path=/trunk/; revision=20599
2007-01-29 10:25:54 +00:00
Luis Ontanon
6a4a51ffec The UAT gui starts to work
set the macros_dlg to use it

add a dummy dfilter_macros file to supress a warning at startup


svn path=/trunk/; revision=20598
2007-01-29 10:23:38 +00:00
Ulf Lamping
c01304b04d remove unused "cant_get_if_list_errstr" warning
svn path=/trunk/; revision=20594
2007-01-28 23:48:53 +00:00
Stephen Fisher
b4a656ec1f From Douglas Pratley:
This is a patch adding items to the context menus for the packet list
and packet details panes for copying packet data to the clipboard.

New menu item on packet list pane:
Copy (sub menu) ->
        Summary (Text)          Copies fields displayed in the packet
list, tab separated
        Summary (CSV)           Copies fields displayed in the packet
list, comma separated
        Hex and Text            Copies data for the selected frame in
hex-editor style (similar to Copy\All Information in packet bytes pane)
        Text Only               Copies data for the selected frame,
dropping non-printable characters other than line breaks (similar to
Copy\Text Only in packet bytes pane)
        Hex Columns             As Hex and Text but without text
        Hex Stream              Copies data for the selected frame as an
unpunctuated list of hex values
        Binary Stream           Copies raw packet bytes to the clipboard
as MIME type application/octet-stream


svn path=/trunk/; revision=20581
2007-01-28 02:49:50 +00:00
Michael Tüxen
bb773be0ef Fix handling when both endpoints use the same port number.
svn path=/trunk/; revision=20570
2007-01-26 17:27:32 +00:00
Gerald Combs
065e9f88e5 Spelling fixes.
svn path=/trunk/; revision=20561
2007-01-26 06:45:12 +00:00
Gerald Combs
0dad9f1bb2 Massive indentation fixes.
svn path=/trunk/; revision=20560
2007-01-26 06:34:05 +00:00
Gerald Combs
94cf826452 Fix Coverity CIDs 217 and 218, and fix filter dialog autoselection in
the process.  This change assumes that you can make a copy of a
GtkTreeIter and use it later (which may not be valid), and hasn't been
tested using GTK 1.

svn path=/trunk/; revision=20550
2007-01-25 02:54:14 +00:00
Gerald Combs
744d6644b8 Instead of checking for WinPcap 4.x versions, assume that if the version
is greater than 3 we can get detailed interface information.  This should
limit the amount of work we have to do when new WinPcap releases come out.

svn path=/trunk/; revision=20542
2007-01-24 01:16:45 +00:00
Gerald Combs
ed12aa0cb1 Propagate the recent interface list changes (r20521) to the AirPcap code.
Fix a mismatched declaration found by Gisle Vanem.

svn path=/trunk/; revision=20535
2007-01-23 20:12:09 +00:00
Luis Ontanon
1776daa374 Have build succeed even if portaudio is located somewhere else than any other libraries in use.
svn path=/trunk/; revision=20533
2007-01-23 19:46:55 +00:00
Ulf Lamping
18cf691f7d as Bill Meier noted:
"The Help ! Contents and the Help ! User's Guide  both display the User's 
Guide."

Remove the duplicate Help!/User's Guide item

svn path=/trunk/; revision=20523
2007-01-22 04:03:17 +00:00
Stephen Fisher
2267c19248 Fix various compiler warnings
svn path=/trunk/; revision=20522
2007-01-22 00:20:33 +00:00
Guy Harris
cc22748169 Have the routines to get interface lists take a pointer to a "gchar *"
as an argument, and, on an error, if they have an error message, have
them set that "gchar *" to point to a g_malloc()ed string containing the
error message, rather than taking a pointer to a buffer for that message
as an argument.  That's more like what's done in Wiretap, and doesn't
impose an upper limit on the lengths of those error messages.  If that
pointer is null, don't allocate the message string and return it.

Have that error message already have the "cant_get" processing applied
to it, so nobody other than those routines need to call the "cant_get"
routines to process the error messages.

Have get_airpcap_interface_list() explicitly set "*err" to the
appropriate error code.

Clean up indentation.

svn path=/trunk/; revision=20521
2007-01-21 23:45:36 +00:00
Stephen Fisher
ed71765bbb Fix a bug where the size of each column was being computed with the GTK+
default font of Sans 10 instead of the setting in Wireshark (such as
Monospace 10).  On some systems this bug was causing the contents of columns
such as the command line specified (CLS) time to be cut off. 


svn path=/trunk/; revision=20512
2007-01-20 23:23:50 +00:00
Ulf Lamping
1587983aff from Stephen Fisher:
A user asked what file format the flow graph is saved as, which isn't 
apparent by looking at the dialog.  I had to try saving a file and check 
its type -- plain text file.  Could someone please apply the attached 
patch or similar change to graph_analysis.c.  My patch updates the title 
of the dialog box from "Wireshark: Save graph to file" to "Wireshark: 
Save graph to text file".

However, I used the term "plain text file" instead ;-)

svn path=/trunk/; revision=20510
2007-01-20 17:52:39 +00:00
Jaap Keuter
c01c996999 Trying to get buildbot Windows-XP-x86 to build again.
Reverting GTK2 to GTK1.2 functionname

svn path=/trunk/; revision=20508
2007-01-20 14:08:05 +00:00
Gerald Combs
1e6ce19f79 Recent versions of GTK+ have added a "gtk-label-select-on-focus"
property, which selects the entire contents of a label when it comes
into focus.  This property annoyingly defaults to TRUE, which meant that
the labels in simple dialogs and the about box would unexpectedly show
up selected.

Work around this by setting the focus on the "OK" button in the about
dialog and the first button specified in simple dialogs.

svn path=/trunk/; revision=20507
2007-01-20 02:05:49 +00:00
Stephen Fisher
2e7906c790 Change save & restart requirement sentence in column preferences to say just
that you must restart wireshark for the changes to take effect.  The sentence
used to say to hit the save button first, which is now gone by default.
 

svn path=/trunk/; revision=20489
2007-01-18 20:53:24 +00:00
Martin Mathieson
997e5415f9 Add separate union entries to fvalue.value for signed and unsigned
32-bit numbers.  Separate signed and unsigned accessors have been
added and used where appropriate.

Definitely not for 0.99.5.

svn path=/trunk/; revision=20472
2007-01-18 11:02:26 +00:00
Jaap Keuter
bb978e7572 Trying to get buildbot Ubuntu-5.10-x86 to build again.
Fix typo.

svn path=/trunk/; revision=20471
2007-01-18 07:10:02 +00:00
Luis Ontanon
07c083580a NOT for 0.99.5
macro_dlg.h was in this other file!


svn path=/trunk/; revision=20470
2007-01-18 03:21:22 +00:00
Luis Ontanon
6fadfa7567 not for 0.99.5
add macro_dlg.h and macro_dlg.c


svn path=/trunk/; revision=20469
2007-01-18 03:17:33 +00:00
Luis Ontanon
80dcfb23d2 display filter macros.
NOT to be copied over to release 0.99.5


svn path=/trunk/; revision=20467
2007-01-18 02:54:56 +00:00
Jeff Morriss
a5017f043f Should have done this in the last checkin: wrap help_topic_html() in #ifdef(GLIB2) as it's only used (and only works) there
svn path=/trunk/; revision=20454
2007-01-16 17:40:00 +00:00
Jeff Morriss
843681b792 help_topic_gtk() is needed in GTK 1.2 builds so don't #ifdef(GKT2) it out
svn path=/trunk/; revision=20451
2007-01-16 16:32:18 +00:00
Ulf Lamping
2d760bf075 in effect use the User's Guide as the online help system now (for GTK > V1)!
remove ENABLE_WSUG setting from config.nmake and replace it with GLIB_MAJOR_VERSION >= 2 (as Glib 1.x cannot open a browser to show a HTML file - it's just currently? not implemented)

svn path=/trunk/; revision=20446
2007-01-16 04:08:35 +00:00
Ulf Lamping
c923fc1577 Help:
- Win32 only: try to load help page from local user-guide.chm (if HHC_DIR is set in config.nmake) and if that fails:
- show corresponding help page directly from www.wireshark.org in the configured web browser.

The "internet way" will be the only way for all UNIX based versions, as they cannot read .chm files.

svn path=/trunk/; revision=20445
2007-01-15 22:17:24 +00:00
Ulf Lamping
3e1344fd4b fix #301: Windows file dialog should:
- initially show the "My Documents" folder
- don't use the "open folder" preference setting on save and alike dialogs (we don't do it in the GTK versions either)



svn path=/trunk/; revision=20433
2007-01-14 23:28:35 +00:00
Ulf Lamping
7a9beb8945 fix a bug when freeing newpath - don't g_free(NULL)
svn path=/trunk/; revision=20432
2007-01-14 22:45:43 +00:00
Jaap Keuter
96fbec58b6 Trying to get buildbot Ubuntu-5.10-x86 distcheck to build again.
svn path=/trunk/; revision=20425
2007-01-14 13:44:40 +00:00
Ulf Lamping
76bd9d18a7 bugfix: show the "placesbar" (the one with e.g. "My Documents" button) for the various win32 file dialogs.
As a nice side effect, the dir/file part of the dialogs is bigger now, which makes handling of the dialogs much nicer/faster. Yes, it still fits into 800*600 screen resolution.

Needs testing, I might have placed a g_free() call at the wrong place ...

svn path=/trunk/; revision=20423
2007-01-14 05:18:07 +00:00
Graeme Lunt
6fd190ecec U3 support for "recent" files.
When the "recent" file is written, any references to files on the U3 device itself are modified to have the drive replace with "$U3_DEVICE_PATH". Similarly, when the recent file is read, "$U3_DEVICE_PATH" is replaced with the current U3 device path.

This ensures that if/when the U3 device path changes when inserting it into different machines, recent captures on the U3 device itself can still be opened from the recent menu.


svn path=/trunk/; revision=20417
2007-01-13 16:06:28 +00:00
Graeme Lunt
2fd7d2c620 New "decode as ..." feature for BER-encoded files (WTAP_FILE_BER).
A BER-encoded file can be dissected as one of a number of registered syntaxes (registered using register_ber_syntax_dissector()). 
Syntaxes may also be associated with OIDs (or other strings) using register_ber_oid_syntax(). 

A default syntax with which to dissect a BER-encoded file is determined from its filename (extension). For example, ".cer" and ".crt" files will be dissected as "Certificate".


svn path=/trunk/; revision=20414
2007-01-13 12:59:27 +00:00
Tomas Kukosa
61b7428ae5 update ssl-dlg.c in accordance with changes in SSL dissector
svn path=/trunk/; revision=20408
2007-01-12 13:02:49 +00:00
Ulf Lamping
2cbce84d41 Win32: MSVC > 6 doesn't work well with Unicode filenames!
fix this, by providing required functions in the new file file_util.c - it's mostly copied from GLib (g_open alike - that take UTF8 as filename format but don't use msvcrt.dll V6 for this as the glib files do) 

"link" to these functions in file_util.h: #define eth_open eth_stdio_open

revert changes (from SVN 20282) throughout the code related to these file functions which were introduced with the first tries of MSVC 2005 ...

Hopefully I've done everything right with the new file_util.c ...

svn path=/trunk/; revision=20402
2007-01-12 03:05:28 +00:00
Gerald Combs
def1f435fc Fix compilation problems under Windows. In the GTK code, convert SSIDs
to GByteArrays.  Add format_uri() to strutil, which formats a byte string
with percent-escapes.  Fixup whitespace and indentation.

svn path=/trunk/; revision=20397
2007-01-11 22:12:33 +00:00
Stephen Fisher
cbe42b8a24 Fix for bug #1140: Filtering messes up packet list sort order
svn path=/trunk/; revision=20394
2007-01-11 19:50:19 +00:00
Ulf Lamping
e71b416608 fix compilation for:
- Visual Studio .NET (2002)
- Visual Studio .NET 2003

svn path=/trunk/; revision=20349
2007-01-08 22:29:18 +00:00
Ulf Lamping
d0724fc02f fix sockaddr_storage problem for MSVC 7.1 (hmmm, maybe it's a platform SDK issue - time will tell)
svn path=/trunk/; revision=20331
2007-01-06 00:48:11 +00:00
Ulf Lamping
894f6cd603 from Laurent Rabret:
I posted a patch about 1.5 years ago for the formerly Ethereal to successfully compiled with Visual > 6. I have always successfully used this patched Ethereal/Wireshark compiled with VS 2003 and have just checked when compiled with Visual C++ 2005 Express

svn path=/trunk/; revision=20282
2007-01-03 02:50:22 +00:00
Bill Meier
739eb43c3a More ethereal --> wireshark
svn path=/trunk/; revision=20270
2007-01-02 14:11:35 +00:00
Guy Harris
44c0624bd9 Add a WIRESHARK_RUN_FROM_BUILD_DIRECTORY environment variable on UN*X;
if set, and if the program isn't running with additional privileges,
it'll treat the directory in which the program is found as the data
directory.

If, on Windows, the version-number subdirectory of {data
directory}\plugins doesn't exist (which is assumed to mean that the
program is being run from the build directory), or if, on UN*X,
WIRESHARK_RUN_FROM_BUILD_DIRECTORY is set, the plugin directory is the
"plugins" subdirectory of the data directory, and all subdirectories of
that directory are scanned for plugins, as the "plugins" subdirectory of
the build directory contains subdirectories for the plugins; this means
that if we're running from the build directory, we'll find the plugins
we built in the build tree.

When generating the wireshark-filter man page, run tshark with
WIRESHARK_RUN_FROM_BUILD_DIRECTORY set, so it uses the plugins from the
build to generate the list of filters.

svn path=/trunk/; revision=20261
2007-01-02 06:49:40 +00:00
Ulf Lamping
bcf21a35d6 MSVC2006 defines sockaddr_storage, so we shouldn't define this on our own for MSVC2006
this might be depending on the Platform SDK and not on MSVC version - I don't really know

svn path=/trunk/; revision=20259
2007-01-02 01:52:47 +00:00
Stephen Fisher
8aeefa1bfd Fix for bug #1278:
"When analysing a trace with 802.11 packages (made by airpcap) and selecting
Statistics->Conversation List->WLAN all wlan conversations are listed. When
after this selecting Apply as filter->Selected->A<->B a display filter is
created as

eth.addr==<A>  && eth.addr==<B>

when if should be

wlan.addr==<A>  && wlan.addr==<B>"


svn path=/trunk/; revision=20234
2006-12-29 22:22:54 +00:00
Gerald Combs
bd282b4114 Move the contents of airpdcap to epan/crypt. Try to fix the current
distcheck failure.  Move the nmake build targets for airpdcap from 
epan/dissectors to epan.  This will probably break the Windows build.

svn path=/trunk/; revision=20231
2006-12-28 17:22:12 +00:00
Gerald Combs
2437fd2e77 Prepare to move the airpdcap code to epan/crypt (SVN won't let me actually
move the files until these changes are checked in).  Add an AC_DEFINE
for airpdcap (which will be removed once the changes have settled).
Update the airpdcap code to compile on non-Windows systems.  Fix up
comments and whitespace to conform more closely to the rest of the
code base.  Verified to compile under Windows and OS X.

svn path=/trunk/; revision=20227
2006-12-27 23:05:55 +00:00
Luis Ontanon
aa235a4262 + browser_open_url()
+ browser_open_data_file()


svn path=/trunk/; revision=20223
2006-12-27 01:46:42 +00:00
Ulf Lamping
7f8fba06a4 fix unused warnings
svn path=/trunk/; revision=20217
2006-12-26 20:04:54 +00:00
Jaap Keuter
2375c0e96a Make fix for bug 771 compatible with GTK1
svn path=/trunk/; revision=20201
2006-12-22 20:09:09 +00:00
Ronnie Sahlberg
8fc740a53e hmm
best to revert this for a while.



revert all changes from previous patch.



svn path=/trunk/; revision=20195
2006-12-22 09:01:12 +00:00
Ronnie Sahlberg
8433f6d589 change some slab allocated memory into ep/emem allocated structures instead.
this primarily removes code and simplifies (==eliminates) the need to track the data that is allocated and should potentially be slightly faster than a slab allocator.
however these functions are called A LOT so there might be a performance hit when using emem with full debugging canary values and all the bells and whistles activated.


this change also makes any future attempt to parallellize dissection of frames easier if we just make the ep allocator allocate from a threads specific ep pool.
(something we would have to do anyway to make ep allocations multithreaded)



this works in all my tests so far but needs more test coverage.



svn path=/trunk/; revision=20194
2006-12-22 08:35:43 +00:00
Jaap Keuter
46139edb6b From Florent Drouin:
Here is a patch for Bug 771.
It solves the problem of datalink header selection, when the interface has more than one.

svn path=/trunk/; revision=20186
2006-12-21 22:01:09 +00:00
Ulf Lamping
a5d65e64c1 gtkglobals.h not needed
svn path=/trunk/; revision=20127
2006-12-12 23:49:28 +00:00
Bill Meier
ee29136d41 Remove svn:executable property from a few more .[hc] files
svn path=/trunk/; revision=20122
2006-12-12 02:24:51 +00:00
Stephen Fisher
41c5011f5b Add a new function to build column widths based not only on the max
width that is hard-coded in get_column_longest_string(), but also on the
width of the user specified title of the column (in case it is wider.)


svn path=/trunk/; revision=20117
2006-12-11 20:09:04 +00:00
Ulf Lamping
fdfd0be5bd remove some warnings
svn path=/trunk/; revision=20116
2006-12-11 19:43:19 +00:00
Guy Harris
a46a240662 We only need to add the tree view to its containing scrolled window
once.  (Subsequent attempts produce a warning and do nothing.)

Clean up indentation.

svn path=/trunk/; revision=20107
2006-12-11 03:32:01 +00:00
Ulf Lamping
57f05a42e6 add WinPcap beta 2 and 3 to the details version check
svn path=/trunk/; revision=20080
2006-12-09 10:09:48 +00:00
Ulf Lamping
fbcd16a443 change it to "Seconds Since Epoch (1970-01-01): 1234567890.123456"
svn path=/trunk/; revision=20079
2006-12-09 09:32:21 +00:00
Guy Harris
72bc2582fc A callback in read_prefs_file() should return a prefs_set_pref_e, not an
int.

svn path=/trunk/; revision=20069
2006-12-08 01:11:20 +00:00
Gerald Combs
8e397a2617 Don't define HAVE_AIRPDCAP if HAVE_AIRPCAP isn't defined. Fix a compiler
warning in the 802.11 dissector.

svn path=/trunk/; revision=20053
2006-12-06 20:29:54 +00:00
Gerald Combs
a980d04783 From Davide Schiera and Giorgio Tino: Add initial WPA/WPA2 decryption
support.

WEP key preferences have been overloaded to allow WPA keys.  The
decryption code currently uses Windows-specific data types, but can be
converted to use glib equivalents.

Add a few text and whitespace fixups.

svn path=/trunk/; revision=20049
2006-12-05 19:24:25 +00:00
Stephen Fisher
75acf34518 From Douglas Pratley with trivial changes and documentation changes
by myself:

Corrected patch; epan/column.c and epan/column_utils.c were not included. This
one has now been properly tested against a clean checkout of today's code.

- New menu option available under view\time display format
- New sub-option (e) to -t switch for both wireshark and tshark
- Extended recent settings code to handle new value
- Did NOT add new explicit epoch time column


svn path=/trunk/; revision=20040
2006-12-05 03:19:51 +00:00
Gerald Combs
40ca271813 From Giorgio Tino: Add a "static text" protocol preference type. This
can be used to add descriptive text inline with other preference items.
The "preference" contents are not written to disk.

Fixup whitespace.


svn path=/trunk/; revision=20037
2006-12-05 00:43:00 +00:00
Stephen Fisher
212cbb2e8c Fix for bug #1117: Crash on next action [such as another stats window] when
flow graph window is open.  Added if(pinfo->cinfo) before attempting to use
pinfo->cinfo->col_first.  The rest is indentation changes for the new if
statement.


svn path=/trunk/; revision=20028
2006-12-01 02:55:45 +00:00
Stephen Fisher
7cb5fa872d From the wishlist: add basic find functionality to the follow tcp & ssl stream
dialogs.


svn path=/trunk/; revision=20017
2006-11-29 20:45:02 +00:00
Ronnie Sahlberg
3dca5cbed9 break the SCSI SBC commandset out into its own dissector
svn path=/trunk/; revision=20000
2006-11-27 11:00:06 +00:00
Ronnie Sahlberg
34cf894ed2 g_strdup takes one parameter not two
svn path=/trunk/; revision=19999
2006-11-27 09:42:19 +00:00
Ronnie Sahlberg
27c151c3d6 remove unused variable: tooltips
svn path=/trunk/; revision=19998
2006-11-27 09:40:08 +00:00
Gerald Combs
00d5d4009b Wrap the declaration for tree_view_key_pressed_cb() in an #if/#endif.
svn path=/trunk/; revision=19995
2006-11-26 20:29:24 +00:00
Gerald Combs
d6708de7ca Make keyboard navigation common for all tree views (for GTK2, at least).
svn path=/trunk/; revision=19994
2006-11-26 20:26:09 +00:00
Gerald Combs
cd7b6c9dbf Make sure we don't trigger undefined behavior in isprint().
svn path=/trunk/; revision=19978
2006-11-25 06:15:51 +00:00
Guy Harris
d3fed959bc Have separate proto_construct_match_selected_string() and
proto_can_match_selected() routines, to more clearly separate the two
functions - but have them both call the same underlying routine, so
they both make the same decisions as to whether a match-selected string
can be constructed or not.

svn path=/trunk/; revision=19976
2006-11-24 18:25:23 +00:00
Ronnie Sahlberg
bd16443f38 add some missing commandsets to the preference for default commandset and to the scsi srt statistics
svn path=/trunk/; revision=19973
2006-11-24 08:22:30 +00:00
Guy Harris
37a6c02697 Rename proto_construct_dfilter_string() to
proto_construct_match_selected_string() to indicate what it does - and
have it return a Boolean indication of whether the string could be
built, returning the string through a pointer, and, if that pointer is
null, have it just return the Boolean and not construct the string.

Get rid of proto_can_match_selected() -
proto_construct_match_selected_string() can be used for that, which
means we have only one piece of code that knows whether a "match
selected" string can be constructed or not.

Have proto_construct_match_selected_string() support matching
zero-length FT_NONE (and FT_PCRE, but that shouldn't happen) fields even
if there's no epan_dissect_t, as such a match just checks whether the
field is present.

svn path=/trunk/; revision=19967
2006-11-23 21:16:46 +00:00
Ronnie Sahlberg
651ed76925 break the SCSI SSC commandset out into its own dissector
svn path=/trunk/; revision=19957
2006-11-22 10:12:59 +00:00