Commit graph

8726 commits

Author SHA1 Message Date
Guy Harris
b4bdaa5e9f Put quotes around values for FT_ABSOLUTE_TIME variables, and around
values with white space in them.

svn path=/trunk/; revision=8820
2003-10-29 23:15:35 +00:00
Guy Harris
5f01c7a082 Have the "edit display filters" button do the exact same thing as the
"Edit -> Display Filters..." menu item, as per Ulf Lamping - there's
apparently some problem wherein &args doesn't get passed properly to the
callback.

svn path=/trunk/; revision=8819
2003-10-29 22:39:49 +00:00
Guy Harris
b9b73fe54c Plug that leak with a cleanup handler, so we don't leak the variable OID
if we throw an exception fetching the variable value.

svn path=/trunk/; revision=8818
2003-10-29 22:11:08 +00:00
Guy Harris
795ce752e9 ...and there's one leak we missed.
svn path=/trunk/; revision=8817
2003-10-29 22:04:57 +00:00
Guy Harris
596dfa55f0 Another leak that isn't.
svn path=/trunk/; revision=8816
2003-10-29 22:02:11 +00:00
Guy Harris
e604b9e693 Actually, one of those *isn't* a leak; don't free something we haven't
allocated yet.

svn path=/trunk/; revision=8815
2003-10-29 22:00:54 +00:00
Guy Harris
04a5cb7737 Fix some memory leaks found by Steve Ford.
svn path=/trunk/; revision=8814
2003-10-29 21:54:45 +00:00
Guy Harris
7d27085948 From Steve Ford: "prefs_register_string_preference()" makes a copy of
any string pointed to by the preference variable - as the value we set
it to is allocated, we should free it after registering the preference.

The register routine is called only once - don't worry about whether
"gbl_diameterDictionary" is null or not.

Get rid of a duplicate credit entry in the man page.

svn path=/trunk/; revision=8813
2003-10-29 21:19:44 +00:00
Guy Harris
ca1f1c7f2a From Matthijs Melchior: #ifdef out the GUI code, for now.
svn path=/trunk/; revision=8812
2003-10-29 10:54:17 +00:00
Guy Harris
4a7f74b7d1 There's no need to #define tvb_get_string or tvb_get_stringz - that's
done in Xplugin_api.h.

However, we do need to include "epan/filesystem.h", to declare
"get_datafile_path()".

svn path=/trunk/; revision=8811
2003-10-29 10:37:28 +00:00
Guy Harris
fc43317556 Use "get_datafile_path()", rather than constructing the default ASN.1
file path by hand.

Set "default_asn1_filename", not "asn1_filename", to the default path.

svn path=/trunk/; revision=8810
2003-10-28 21:47:32 +00:00
Guy Harris
ee2ddb83fc Export "get_datafile_path()", not "get_datafile_dir()" - most if not all
dissectors need only the former, which does the pathname-construction
work for you.

svn path=/trunk/; revision=8809
2003-10-28 21:46:26 +00:00
Guy Harris
8a3e69d832 "get_datafile_dir()" is now in the plugin table.
svn path=/trunk/; revision=8808
2003-10-28 21:04:16 +00:00
Guy Harris
70afd0c1dd Add "get_datafile_dir()" to the plugin API list, for the benefit of
plugins that might get configuration information from a file.

svn path=/trunk/; revision=8807
2003-10-28 21:03:01 +00:00
Guy Harris
7b0e35379f As we don't supply a default ASN.1 SNACC output file, if we get an
ENOENT when trying to open the SNACC file, and the file we're trying to
open is the default file, don't print a warning.

Fix some typoes.

svn path=/trunk/; revision=8806
2003-10-28 20:53:37 +00:00
Guy Harris
dc1da82c41 This dissector uses GTK+ calls (which no dissector should); until that's
fixed, use GTK_CFLAGS and GTK_LIBS rather than GLIB_CFLAGS and
GLIB_LIBS.

svn path=/trunk/; revision=8805
2003-10-28 20:44:51 +00:00
Guy Harris
32975a11e6 Fix the Makefile to match other plugin Makefiles.
svn path=/trunk/; revision=8804
2003-10-28 19:27:49 +00:00
Guy Harris
67406fcfd2 From Michael Lum: fixed BCD decoding of filler nibble and fixed some
minor bugs.

svn path=/trunk/; revision=8803
2003-10-28 18:08:52 +00:00
Guy Harris
836f12e207 From Lo�c Minier: get rid of the second of a pair of identical checks.
As per a note by Olivier Biot, make the "multipart/XXX" items all lower
case.

svn path=/trunk/; revision=8802
2003-10-28 17:59:29 +00:00
Guy Harris
fa3680223b "%.*" expects an "int" argument giving the precision.
svn path=/trunk/; revision=8801
2003-10-28 17:27:56 +00:00
Ronnie Sahlberg
a185c70b18 Full duplex analyzers that capture each direction of a link with a separate NIC will lose the time integrity between the two NICs more often than one might expect.
It is thus relatively common that a data segment and its ACK being swapped in the capture file.

Therefore, drop the condition that a segment must not have been acked yet in the detection of OutOfOrder segments.

Second, fix a bug where we didnt keep track of the ack numbers properly for relative sequence number analysis.

svn path=/trunk/; revision=8800
2003-10-28 08:50:39 +00:00
Guy Harris
c68a7d7cb1 From Matthias Melchior: plugin to decode BER-encoded ASN.1 messages,
given a type-table from "snacc" as a protocol description.

svn path=/trunk/; revision=8799
2003-10-28 07:02:38 +00:00
Guy Harris
9c3e2720da From Giles Scott: Alteon/Nortel Transparent Proxy Control Protocol
support.

svn path=/trunk/; revision=8798
2003-10-28 06:44:21 +00:00
Guy Harris
3de139644b Clarify the previous checkin - that applies to the 'value' argument.
svn path=/trunk/; revision=8797
2003-10-28 05:50:52 +00:00
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