Commit graph

8902 commits

Author SHA1 Message Date
Guy Harris
5900986044 As per a suggestion by Olivier Biot, note that objects pointed to by
pointer arguments to "proto_tree_add_XXX" functions are copied - if you
allocated a buffer for one of them (e.g., a string), and you don't free
that buffer when you're done with it, you'll leak memory.

svn path=/trunk/; revision=8796
2003-10-28 05:49:29 +00:00
Guy Harris
0c389cc678 From Dinesh Dutt:
Add dissection code for the following additional SCSI commands:
	     - Start/Stop Unit
	     - Write Buffer
	     - Send Diagnostics

	Don't copy the product serial number to a buffer before printing
	it.

svn path=/trunk/; revision=8795
2003-10-28 03:57:49 +00:00
Guy Harris
1c5ed66f45 From Lars Roland: H.225 message and reason tag counter taps.
svn path=/trunk/; revision=8794
2003-10-28 00:31:17 +00:00
Guy Harris
a1f7d525b7 From a suggestion by Jim McDonough: support for the INITSHUTDOWN service.
svn path=/trunk/; revision=8793
2003-10-27 23:31:54 +00:00
Guy Harris
0a7b08c9e9 Don't draw a Y-axis label if you haven't constructed the label string.
svn path=/trunk/; revision=8792
2003-10-27 23:12:53 +00:00
Guy Harris
4b1fda78b9 Allow + and , in unparsed strings, so that you can use + as a sign in a
number or exponent and so that floating-point numbers can use , as well
as . as a decimal point.

svn path=/trunk/; revision=8791
2003-10-27 22:45:47 +00:00
Guy Harris
c3c558a6c3 From Lars Roland: fix a typo.
svn path=/trunk/; revision=8790
2003-10-27 22:29:52 +00:00
Guy Harris
459f7323ca From Lars Roland: whitespace cleanups.
svn path=/trunk/; revision=8789
2003-10-27 22:28:48 +00:00
Guy Harris
99331c2fa8 Squelch some signed vs. unsigned comparison warnings.
Get rid of an unused variable.

svn path=/trunk/; revision=8788
2003-10-27 19:34:03 +00:00
Guy Harris
d96ba04c52 From Dinesh Dutt: display the FC CRC for frames encapsulated with
MDSHDR, and show only the low-order 13 bits of the packet length field.

svn path=/trunk/; revision=8787
2003-10-27 19:30:55 +00:00
Guy Harris
8d36cda948 From Lo�c Minier: HTTP header and payload desegmentation.
svn path=/trunk/; revision=8786
2003-10-27 09:17:21 +00:00
Richard Sharpe
7dc61c936d Add filter button support to FibreChannel stats and DCERPC stats.
svn path=/trunk/; revision=8785
2003-10-27 01:35:53 +00:00
Richard Sharpe
cf1f6efdf6 Add Filter Button support for onc-rpc as well ...
svn path=/trunk/; revision=8784
2003-10-27 01:20:16 +00:00
Richard Sharpe
e86c448e78 Make sure that Clicking OK in the filter creation dialog box does not act
as an OK to the dialog box it is called from.

svn path=/trunk/; revision=8783
2003-10-27 01:09:32 +00:00
Richard Sharpe
a6a40da79d This changes the Filter: label in the SMB Service Response Time dialog box to
a button that brings up the Create Filter dialog box. While it works, the
problem is that it also acts as an Enter keypress as far as the start_stat
button is concerned.

Probably needs a small fix.

svn path=/trunk/; revision=8782
2003-10-27 00:54:02 +00:00
Ronnie Sahlberg
c1ffe5216e Update to cf_get_display_name()
return "<no file>" if there is no file loaded yet instead of crashing in io-stat

io-stat  only print the label for the top tick on the y axis to make it look less cluttered

svn path=/trunk/; revision=8781
2003-10-26 03:09:03 +00:00
Guy Harris
b624dce63b Add a new WTAP_ENCAP_CHDLC_WITH_PHDR type, to distinguish Cisco HDLC
captures with packet direction information from captures without it.
Use them appropriately.

svn path=/trunk/; revision=8780
2003-10-25 07:17:28 +00:00
Guy Harris
aed6852d6b In restricted character strings, deal with character values that are
greater than the alphabet length.

Just use "proto_tree_add_item()" if you have a range of bytes, of known
length, that are to be added as an item - that handles both FT_STRING
and FT_BYTES, including null-terminating the string value.

svn path=/trunk/; revision=8779
2003-10-25 06:49:45 +00:00
Guy Harris
732120717c Add one more Cisco protocol type.
svn path=/trunk/; revision=8778
2003-10-25 06:19:04 +00:00
Guy Harris
c40006cc39 Add some additional Cisco Protocol ID values, and URLs for documents
that contain them.

svn path=/trunk/; revision=8777
2003-10-25 06:10:21 +00:00
Guy Harris
58191e2678 Update comments to give a URL that defines some additional CDP type
values, and to use the names from the URL and to refer to it.

svn path=/trunk/; revision=8776
2003-10-25 06:07:36 +00:00
Ronnie Sahlberg
dde909b9b0 Update / cleanup to tcp sequence number analysis and new features
moved some variables to the structure where they belonged instead of where they
currently were and reduced the complexity of the code

Fast Retransmission:
Ethereal not tries to detect and flag FastRetransmissions:
The heuristics for this check is:
  >=3 dupacks in other direction
  this semgent is what the dupacks are asking for
  it arrived within 10ms of the last dupack (10ms should be short enough to not confuse with real RTOs)

OutOfOrder segments
Previously all segments that did not advance the right edge of the window was flagged as retransmission   now ethereal will try to flag segments that are merely reordered as OutOfOrder segments insteaD

tHE HEURISTICS ARE:
   it has not been ACKed yet
   we have not seen it before
   it arrived within 4ms of the segment immediately to the right in the window

svn path=/trunk/; revision=8775
2003-10-25 00:25:38 +00:00
Guy Harris
4bd5126925 Move the version number checking for libpcap files, to see whether to
swap the "captured length" and "length" fields, to the open-file code;
store a tri-state (definitely swapped, definitely not swapped, maybe
swapped) value in the per-capture-file-format information for libpcap
format, and use that when processing packets.

svn path=/trunk/; revision=8774
2003-10-24 23:55:34 +00:00
Guy Harris
5295e1850d From Taisuke Sasaki: fix offsets of metrics in Inter-Area-Prefix-LSAs
and Inter-Area-Router-LSAs.

svn path=/trunk/; revision=8773
2003-10-24 22:59:37 +00:00
Ronnie Sahlberg
7cb2dc0099 The capture tools for DGUX has swapped the included/original packet lengths of the frame header.
they specify the pcap version as 543.0

svn path=/trunk/; revision=8772
2003-10-24 10:52:04 +00:00
Ronnie Sahlberg
4bedb1d558 Fix all the issues Michael Oliveras reported
1, TunnellingProtocol_id is a CHOICE not a SEQUENCE
2, change some values to be FT_STRING instead of FT_BYTES
3, update dissect_per_octet_String to always 0 terminate all FT_STRINGs
   (if necessary in a temporary buffer) before passing them on to proto_tree_add_string() since that function did not want to handle FT_STRING or FT_STRINGZ othervise.

svn path=/trunk/; revision=8771
2003-10-24 10:46:43 +00:00
Guy Harris
4569c6f11a From Anders Broman: make it possible to filter on only address or tag in
the SIP address fields.

svn path=/trunk/; revision=8770
2003-10-24 00:50:39 +00:00
Guy Harris
3a23c4e4b7 From Jean-Baptiste Marchand: add more MAPI procedure names.
svn path=/trunk/; revision=8769
2003-10-24 00:42:16 +00:00
Guy Harris
7cff735ffb From Michael Lum: get rid of an unused value_string table.
svn path=/trunk/; revision=8768
2003-10-24 00:38:34 +00:00
Guy Harris
4d6e4cebc5 From Jim McDonough: add one more nt status code to
packet-dcerpc-smb.c that is often returned from the winreg abortshutdown
operation.

svn path=/trunk/; revision=8767
2003-10-24 00:36:06 +00:00
Guy Harris
4b2d927feb From Jim McDonough: add dissection of the shutdown, shutdownex, and
abortshutdown commands within the winreg pipe.

svn path=/trunk/; revision=8766
2003-10-24 00:35:29 +00:00
Ashok Narayanan
880564ef36 Added support for LMP draft version -09. Support for older draft
versions -02 and -03 is still present (since they are in use),
selectable by a protocol preference.

svn path=/trunk/; revision=8765
2003-10-23 18:49:50 +00:00
Ronnie Sahlberg
2f211fd8fb The ACL revision field is one byte, not 2 bytes.
svn path=/trunk/; revision=8764
2003-10-23 08:40:56 +00:00
Guy Harris
23f6549441 Non-NCP_SERVICE_REQUEST packets don't have a subfunction.
The group for a request isn't part of the packet, so give it an offset
and length of 0, so if you select it we doesn't highlight some part of
the packet.

svn path=/trunk/; revision=8763
2003-10-23 08:16:50 +00:00
Guy Harris
b8f177df4b Treat NCP 0x5555 packets as NCP requests, so we store them in the hash
table and can identify replies to them.

Clean up white space.

Note that the "is_signed" hack doesn't work with Ethereal.

svn path=/trunk/; revision=8762
2003-10-23 07:52:56 +00:00
Guy Harris
81d8b5dcf2 Fix a call to "dissect_dcerpc_cn()" to handle the new return value.
svn path=/trunk/; revision=8761
2003-10-23 07:14:21 +00:00
Guy Harris
ab536b6af8 Catch exceptions in "dissect_dcerpc_cn_bs()", so that if we get an
exception dissecting stuff past the DCE RPC header, we still drive on
and dissect the next PDU, if any.

svn path=/trunk/; revision=8760
2003-10-23 05:58:57 +00:00
Guy Harris
a6aa843aa5 Get rid of the "offset" argument to "dcerpc_try_handoff()" - it's always
0.

In "dcerpc_try_handoff()", remove the authentication padding from the
stub data handed to the subdissector - that's not really stub data for
the subdissector, and it should throw an exception if the request or
response would go into the authentication padding.  Don't even try to
dissect the remaining stub data if the authentication padding value
consumes all the stub data or would consume even more than that.

Show any "Long frame" data before the authentication padding, and show
the authentication padding as the stuff at the very end of the stub
data, after the "Long frame" data.

Catch all exceptions when dissecting authentication information, so that
even if it's bad or we don't have all of it, we still dissect the stub
data.

Try dissecting authentication trailer information even if we don't have
all of it in the tvbuff - we want an exception to be thrown if we don't.
Don't try to dissect it if it eats into the stub data, however.

Don't bother catching exceptions in "dissect_auth_verf()" - we now
always catch exceptions in above it in the DCE RPC dissector call tree.

Use CATCH_ALL and "show_exception()" when calling the sub-dissector for
a connection-oriented PDU; that means we won't have to worry about
adding new exception types unless they're types that we should rethrow.

svn path=/trunk/; revision=8759
2003-10-23 05:23:41 +00:00
Guy Harris
78e089fa99 Add a "show_exception()" routine that takes an exception code as an
argument, and puts the appropriate exception indication into the tree.

In "dissect_frame()", do a CATCH_ALL for exceptions, and pass the
exception code to "show_exception()".

svn path=/trunk/; revision=8758
2003-10-23 05:01:39 +00:00
Guy Harris
b60dec2b52 Add a new EXCEPT_CODE macro to get the exception code for the current
exception, for use in CATCH_ALL handlers, so you can catch all
exceptions and then pass the exception code on to a routine that handles
different exceptions differently.

svn path=/trunk/; revision=8757
2003-10-23 04:59:46 +00:00
Guy Harris
1052d5a2b5 Use -1 rather than "tvb_length(tvb)" to specify a length that covers the
entire tvbuff for Secure Channel bind credentials.

Use -1 rather than 0 to have the top-level item for Secure Channel ACK
credentials cover the entire tvbuff.

svn path=/trunk/; revision=8756
2003-10-23 04:57:46 +00:00
Guy Harris
d3c1ad3d9c From Michael Lum: register with the ANSI A-interface dissector.
svn path=/trunk/; revision=8755
2003-10-23 00:16:20 +00:00
Guy Harris
44a967d7e6 From Ulf Lamping: add a preference to control whether to show or hide
the main toolbar (currently no GUI to set it; that's in progress).

svn path=/trunk/; revision=8754
2003-10-22 22:13:13 +00:00
Guy Harris
83980ea4ff From Yaniv Kaul: if there's more than one context item in a BIND PDU, show
the number of context items before showing the first one.

svn path=/trunk/; revision=8753
2003-10-22 21:26:40 +00:00
Guy Harris
c95ce5ff45 From Yaniv Kaul:
remove the check on 3 ports only - since Yahoo! Messenger can
	stream on any port;

	remove the check that will not dissect if the packet is not big
	enough - as partial dissection is also helpful sometimes;

	the version is 2 bytes, not 4 bytes.

svn path=/trunk/; revision=8752
2003-10-22 21:21:05 +00:00
Guy Harris
8857c91a1d From Michael Lum:
BSSAP (GSM 08.06)/BSAP (IOS 4.0.1) support
	IOS 4.0.1 support
	Add Transport Layer support to ANSI IS-637-A dissector

svn path=/trunk/; revision=8751
2003-10-22 20:59:02 +00:00
Guy Harris
0d2ca9cd2b From Michael Lum: add new SSN values for RANAP, IOS, and BSSAP/BSAP, and
add a heuristic subdissector list.

svn path=/trunk/; revision=8750
2003-10-22 20:12:02 +00:00
Guy Harris
17ec0f5d19 Get rid of C++ comment.
svn path=/trunk/; revision=8749
2003-10-22 02:24:14 +00:00
Guy Harris
c852ea1536 Get rid of carriage returns.
svn path=/trunk/; revision=8748
2003-10-22 02:22:21 +00:00
Ronnie Sahlberg
a3c545a45b From Jaime Fournier
New protocol DCERPC/RS_BIND

Added stub dissector for the RS_BIND protocol

svn path=/trunk/; revision=8747
2003-10-22 02:07:39 +00:00