Commit Graph

2896 Commits

Author SHA1 Message Date
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