Commit Graph

24916 Commits

Author SHA1 Message Date
Gerald Combs 6d4f9c1eda When we open a debug console on Windows, don't grab stdin. We never read
anything on this particular console, and if we open stdin here we can't
read a capture from an anonymous pipe.

svn path=/trunk/; revision=25638
2008-06-30 16:36:37 +00:00
Jeff Morriss e62c7c54d1 Create the MTP3 TVB (if any) with a reported length that mirrors the reported length of the frame. That way subdissector exceptions on short frames will (properly) show up as 'packet size limited during capture'.
svn path=/trunk/; revision=25637
2008-06-30 15:23:11 +00:00
Jeff Morriss b54acc9ad7 From Abhik Sarkar via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2661 : fix prototypes of tvb_fake_unicode() and tvb_get_ephemeral_faked_unicode()
svn path=/trunk/; revision=25636
2008-06-30 13:46:34 +00:00
Jaap Keuter 98899e9996 Fix for bug 2659:
Account for IPv6 addresses representation in Via header.

svn path=/trunk/; revision=25635
2008-06-30 06:35:22 +00:00
Bill Meier 56206e0002 Fix some simple cases of GTK2 deprecated API usage by using a renamed or equivalent API
gtk_container_border_width()          ==> gtk_container_set_border_width()
  gtk_container_children()              ==> gtk_container_get_children()
  gtk_entry_new_with_max_length()       ==> gtk_entry_new(); gtk_entry_set_max_length()
  gtk_menu_append()                     ==> gtk_menu_shell_append()
  gtk_menu_prepend()                    ==> gtk_menu_shell_prepend()
  gtk_notebook_set_page()               ==> gtk_notebook_set_current_page()
  gtk_paned_gutter_size()               ==> gtk_paned_set_gutter_size()
  gtk_radio_button_group()              ==> gtk_radio_button_get_group()
  gtk_signal_connect()                  ==> g_signal_connect()
  gtk_signal_disconnect()               ==> g_signal_handler_disconnect()
  gtk_signal_emit_by_name()             ==> g_signal_emit_by_name()
  gtk_signal_handler_block_by_data()    ==> g_signal_handlers_block_matched()
  gtk_signal_handler_block_by_func()    ==> g_signal_handlers_block_by_func()
  gtk_signal_handler_unblock_by_data()  ==> g_signal-handlers_unblock_matched()
  gtk_signal_handler_unblock_by_func()  ==> g_signal-handlers_unblock_by_func()
  gtk_spin_button_get_value_as_float()  ==> gtk_spin_button_get_value()
  gtk_toggle_button_set_state()         ==> gtk_toggle_button_set_active()

svn path=/trunk/; revision=25634
2008-06-29 15:51:43 +00:00
Sake Blok cd7405c44d From Kovarththanan Rajaratnam (bug 2657):
Resolve accelerator ambiguity in filter toolbar


svn path=/trunk/; revision=25633
2008-06-29 14:59:23 +00:00
Sake Blok 50fa079b11 From Kovarththanan Rajaratnam (bug 2658):
Leading $ will now be propageted to display filter entry (on keyboards
where AltGr needs to be used to enter a '$').


svn path=/trunk/; revision=25632
2008-06-29 12:55:14 +00:00
Michael Tüxen 5429cd6600 * Fix a bug reported by Peter Hertting: Handle more than one integer interface identifier.
* Call parameters parameter.
* List integer interface ranges in range parameters.


svn path=/trunk/; revision=25631
2008-06-29 10:15:41 +00:00
Sake Blok be8956d104 Add accelerator keys for (un)mark all packets
svn path=/trunk/; revision=25630
2008-06-29 09:01:12 +00:00
Sake Blok 9fe2206771 From Kovarththanan Rajaratnam (bug 2652):
Add accelerator keys for Find Next/Previous Reference


svn path=/trunk/; revision=25629
2008-06-29 08:36:24 +00:00
Bill Meier 33af75a599 Fix some warnings reported by gcc -Wshadow ...
svn path=/trunk/; revision=25628
2008-06-28 21:09:57 +00:00
Anders Broman d897f46ed2 Get rid of some unused code warnings.
svn path=/trunk/; revision=25627
2008-06-28 20:58:35 +00:00
Anders Broman c756e273f9 Get rid of some unused code warnings.
svn path=/trunk/; revision=25626
2008-06-28 20:53:13 +00:00
Anders Broman 36916d5ac5 Add som missing extension IE's and try to get rid of som unused code warnings.
svn path=/trunk/; revision=25625
2008-06-28 20:31:56 +00:00
Anders Broman 028c6a75bd To handle 64 bit constraints we also need to change FT_UINT32 to FT_UINT64
svn path=/trunk/; revision=25624
2008-06-28 19:25:15 +00:00
Anders Broman 09a741cb17 Add FT_INT64 to IS_FT_INT and FT_UINT_64 to IS_FT_UINT.
svn path=/trunk/; revision=25623
2008-06-28 17:23:07 +00:00
Guy Harris 8e03447dd4 Set the Info column.
svn path=/trunk/; revision=25622
2008-06-28 01:51:12 +00:00
Guy Harris 78f43162ad If we find an invalid version number, at least put something into the
Info column and protocol tree to indicate that.

If we find an invalid version number in the *second* switch statement,
don't bother spewing out a warning - that's a "cannot happen", so just
throw a dissector assertion.

svn path=/trunk/; revision=25621
2008-06-27 23:47:25 +00:00
Gerald Combs b642ef10fa Have checkAPIs.pl print to stderr, so that its output is colored red in
Buildbot. Make capitalization more consistent. Look for abort functions in
wsutil.

svn path=/trunk/; revision=25619
2008-06-27 22:48:25 +00:00
Bill Meier f8e3822738 Fix some warnings reported by gcc -Wshadow ...
Fix some spacing in packet-dcom.c

svn path=/trunk/; revision=25618
2008-06-27 16:15:30 +00:00
Gerald Combs 09868c5db5 Fix some checkAPIs warnings.
svn path=/trunk/; revision=25617
2008-06-27 16:07:21 +00:00
Bill Meier 7aaadd9bec Fix some warnings reported by gcc -Wshadow ...
svn path=/trunk/; revision=25616
2008-06-27 04:52:56 +00:00
Gerald Combs 6012eaeafb Wiretap code probably shouldn't abort the application either.
svn path=/trunk/; revision=25615
2008-06-26 23:43:15 +00:00
Gerald Combs 83aacf0a09 Add support for "API groups" in checkAPIs.pl. Make the "prohibited"
and "deprecated" groups the default. Add an "abort" group for code that
shouldn't exit the program. Update the makefiles to call "checkAPIs.pl
-g abort" for dissectors. Remove a dependency on "cat" in checkAPIs.pl.

svn path=/trunk/; revision=25614
2008-06-26 22:20:05 +00:00
Jeff Morriss 708fbadf26 Fix a comment: the subdissector won't /assert/ out it will /except/ out if the MSU is truncated.
svn path=/trunk/; revision=25613
2008-06-26 20:42:58 +00:00
Jeff Morriss 9bc8f579a1 From Abhik Sarkar via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2647 :
The syslog dissector could crash if the "packlog" MSU is truncated such that
the hex string ends in with a nibble.

From me: Check if that will happen and chop off the nibble before giving it to
convert_string_to_hex() so we'll dissect as much of the MSU as possible.

svn path=/trunk/; revision=25612
2008-06-26 20:40:30 +00:00
Gerald Combs 72965329b0 Remove a lot of vestigal GTK-Wimp stuff. It's been included with
GTK+ since version 2.8, when its name was changed to the "GTK MS
Windows-Engine."

Simplify the Windows installer by removing the GTK-Wimp option (which
means the "Wireshark" item can be an entry instead of a group). Move
Rawshark to the "Tools" group.

(If anyone wants to disable the MS Windows Engine they can still do so
after installation by disabling or removing libwimp.dll.)

svn path=/trunk/; revision=25611
2008-06-26 16:42:07 +00:00
Guy Harris 3ac07269e6 Fix a missed "item" -> "item_local" in the previous checkin.
svn path=/trunk/; revision=25610
2008-06-26 02:29:13 +00:00
Guy Harris 18bc1a2fef Make the default for HDLC traffic "Raw data", just as it is for other
record types, so that people know they have to set the preference.

svn path=/trunk/; revision=25609
2008-06-26 01:47:59 +00:00
Guy Harris 1f08653d0e Make the preference settings for the dissector to use for various ERF
link-layer types static.

If the preference is set to "raw data" for any of those types, display
the raw data with an indication that the preference in question has been
set to "raw data", so people don't just wonder why ERF files aren't
working right any more.  (See bug 2641; I had the same surprise when I
tried it on some ERF captures I have.)

Pull the dissect_erf_header() code into dissect_erf() - it's dissecting
the *payload*, not the *header*.

Fill in the Info column with the record type.

When using tvb_new_subset() to chop a header off of a tvbuff, just
specify lengths of -1, so we go all the way to the end.

Clean up the Infiniband dissector call.

svn path=/trunk/; revision=25608
2008-06-26 01:38:38 +00:00
Bill Meier ceebccced4 Fix some warnings reported by gcc -Wshadow ...
svn path=/trunk/; revision=25607
2008-06-26 00:16:58 +00:00
Gerald Combs e783130961 We last supported NT 4.0 with version 0.99.4 (according to
wireshark.nsi, at least). Drop it from the "supported" list and add a
note about NT 4.0 and older Windows versions.

svn path=/trunk/; revision=25606
2008-06-25 23:07:40 +00:00
Guy Harris ae9f16c37b We apper to spell it "TShark" rather than "Tshark", the fact that it's
"Wireshark" rather than "WireShark" nonwithstanding.

Say we run on NT 4.0 rather than "NT" - I don't know whether we run on
NT 3.x (and 2000/2003/XP are really NT 5.x and Vista/2008 are really NT
6.x - that's why Microsoft are talking about "Windows 7" as the next big
release).

In the capture-privileges paragraph, note that it's dumpcap that needs
to run as root, and suggest not only that Wireshark shouldn't be set-UID
root, but that it shouldn't even be run as root, and that the same
applies to TShark.

Update "How to Report a Bug" to reflect that we're telling people to
report bugs on Bugzilla, and that "wireshark -v"/"tshark -v" give almost
all the version information we want.

svn path=/trunk/; revision=25605
2008-06-25 22:52:08 +00:00
Jaap Keuter 0740f305fb Update the document to the current state of affairs.
svn path=/trunk/; revision=25604
2008-06-25 21:21:33 +00:00
Martin Mathieson dbfbb872ee Make sip.msg_hdr a string field instead of FT_NONE.
svn path=/trunk/; revision=25602
2008-06-25 12:40:15 +00:00
Guy Harris 83fc9d5e09 Constify a bunch of stuff, to squelch -Wwrite-strings warnings.
epan/dissectors/packet-ncp2222.inc is a bit hard to fix, so we're not
ready to enable that warning by default yet.

Throw in some casts to handle GLib routines that take arbitrary
non-const pointers (they can later return the pointers, and some
callers might want to modify or free up those pointers in cases where
they're known to be writable or allocated).

Use ep_tvb_memdup() rather than a combination of ep_alloc() and
tvb_memcpy().

Clean up some indentation.

svn path=/trunk/; revision=25601
2008-06-25 09:12:35 +00:00
Guy Harris 044e57c917 Clean up indentation.
Make build_expert_data() take the size of "buffer" as an argument, and
use that when doing g_snprintf() into the buffer, to ensure we don't
overflow the buffer.  Also, don't just assign to "buffer", as that
doesn't put anything *in* the buffer.

svn path=/trunk/; revision=25600
2008-06-25 09:10:50 +00:00
Martin Mathieson 7001a1564b For for compressed DLMAP decode error.
From Frank Wang (bug 2640).

svn path=/trunk/; revision=25599
2008-06-25 08:54:22 +00:00
Jaap Keuter 4838e5d7f2 From Max Ivanov:
The destination unreachable indication for external IP routes is at offset 24, not 4 as in internal IP routes.

svn path=/trunk/; revision=25598
2008-06-25 06:18:23 +00:00
Guy Harris 360e555826 Update a comment.
svn path=/trunk/; revision=25597
2008-06-25 03:05:53 +00:00
Guy Harris 9e6329860a Fix some warnings - declare some arguments, variables, and structure
members to be const pointers when that's possible, and throw in some
casts when the GLib API fails to have properly consted arguments.

Use ep_strdup_printf() in some cases.

svn path=/trunk/; revision=25596
2008-06-25 03:05:19 +00:00
Gerald Combs 495ddc2830 Make it obvious that this is a development version. Fix a makefile
dependency on the splash images.

svn path=/trunk/; revision=25594
2008-06-24 22:53:52 +00:00
Gerald Combs 48c21706f2 Add TurboCap-related changes from /trunk-1.0:
From Dustin Johnson: Add support for TurboCap.
  - packet-ppi.c: Add aggregation and 802.3 extended information.
  - capture-wpcap.c: Add support for pcap_list_datalinks and pcap_set_datalink.

Make pcap_list_datalinks and pcap_set_datalink mandatory on Windows.

svn path=/trunk/; revision=25593
2008-06-24 21:16:22 +00:00
Gerald Combs 38d6dc43a4 Fix a logic problem.
svn path=/trunk/; revision=25592
2008-06-24 20:54:38 +00:00
Jeff Morriss b47985d13e Make inet_ntop fix work for out-of-tree builds
svn path=/trunk/; revision=25590
2008-06-24 20:09:43 +00:00
Guy Harris da027b4668 Make -Wwrite-strings non-default for now.
Note what files are blocking some -W flags.

svn path=/trunk/; revision=25589
2008-06-24 19:58:29 +00:00
Guy Harris 22dbfc8181 Get rid of another unused variable.
svn path=/trunk/; revision=25588
2008-06-24 19:38:40 +00:00
Guy Harris 7445488cf2 Get rid of some code that fills in a string that's never used. Get rid
of the string, while we're at it.

svn path=/trunk/; revision=25587
2008-06-24 19:27:46 +00:00
Gerald Combs 015025b06f Highlight the whole hostname, even if we've truncated it in the display.
svn path=/trunk/; revision=25586
2008-06-24 19:18:21 +00:00
Guy Harris a33614e485 We're not ready for -Wshadow by default yet.
svn path=/trunk/; revision=25585
2008-06-24 19:13:15 +00:00