Commit Graph

1203 Commits

Author SHA1 Message Date
Guy Harris d549b4456e Give it an RCS ID.
Set the svn:keywords and svn:eol-style properties to the standard values.

svn path=/trunk/; revision=13998
2005-04-01 10:04:32 +00:00
Ronnie Sahlberg 08d7106984 From Giles Scott
New protocol  ARUBA ADP


svn path=/trunk/; revision=13997
2005-04-01 09:48:34 +00:00
Guy Harris df8cbd0dfc From Charlie Lenahan: support for some HP switch protocol.
Fix some damage to the AUTHORS file.

svn path=/trunk/; revision=13996
2005-04-01 09:43:19 +00:00
Guy Harris e611516763 Get rid of an unused variable.
Include "packet-gsm_map.h", not "packet-gsm_map.c".

Check in the regenerated CAMEL dissector.

svn path=/trunk/; revision=13995
2005-04-01 09:20:39 +00:00
Guy Harris bed220604d "get_conv_info()" doesn't use the tvbuff passed to it, so don't pass it
one.

svn path=/trunk/; revision=13994
2005-04-01 09:19:29 +00:00
Guy Harris 31954877ca Give the RFC number for IGMPv3.
svn path=/trunk/; revision=13990
2005-04-01 04:19:28 +00:00
Guy Harris 93692fa5aa Fix a couple of "proto_tree_add_text()" calls to pass the right arguments.
svn path=/trunk/; revision=13989
2005-03-31 23:48:08 +00:00
Guy Harris 9432aeb823 Add a link to a more recent Apple page describing DSI.
svn path=/trunk/; revision=13988
2005-03-31 22:04:59 +00:00
Anders Broman caa56dfc55 From Jacques, Olivier: Length of digit_str wrongly calculated.
Free the string, fix dissection of some elements.

svn path=/trunk/; revision=13986
2005-03-31 18:41:44 +00:00
Guy Harris 05cebb5aaa http://www.shaftnet.org/~pizza/software/capturefrm.txt is currently not
available; add an archive.org URL for it.

svn path=/trunk/; revision=13983
2005-03-31 07:59:43 +00:00
Anders Broman 86d6adf84f Further IE dissection updates.
svn path=/trunk/; revision=13982
2005-03-31 04:50:48 +00:00
Anders Broman 2c8cf2ab42 Small bug fix
svn path=/trunk/; revision=13981
2005-03-30 19:10:26 +00:00
Anders Broman dfdff5a70c Improve some debug messages.
svn path=/trunk/; revision=13980
2005-03-30 19:09:48 +00:00
Michael Tüxen 1de67556ea Fix the handling of the length parameter in the DATA chunk.
This is a quick fix. A systematic follows...

svn path=/trunk/; revision=13978
2005-03-30 16:16:07 +00:00
Anders Broman b183d4d1e3 From Ulf Lamping:
Fix a "off by one" error.

svn path=/trunk/; revision=13977
2005-03-30 13:37:27 +00:00
Ronnie Sahlberg 95d12a0bc6 From Tim
small bugfix for packet-ber.c if packet is malformed, prevent dereferenceing a null pointer


svn path=/trunk/; revision=13976
2005-03-30 09:18:25 +00:00
Gerald Combs 137d5a0fcd Add a tvb_ensure_bytes_exist() and fix a few other offset-related bugs.
svn path=/trunk/; revision=13974
2005-03-29 22:23:09 +00:00
Anders Broman dfdd9ce19d From Martin Mathieson:
- bump up SDP_MAX_PAYLOAD_TYPES to 20 (I have an mgcp capture where a media
gateway responded with 12 media types, resulting in a crash).  Probably more
care needs to be taken while parsing the list of media types though...

svn path=/trunk/; revision=13973
2005-03-29 20:58:03 +00:00
Gerald Combs 8e79a1852f Use an offset of 0 in PER_NOT_DECODED_YET() so that we don't generate a
dissector bug error.

svn path=/trunk/; revision=13970
2005-03-29 16:11:11 +00:00
Gerald Combs 3056b9e17d Add a tvb_ensure_bytes_exist().
svn path=/trunk/; revision=13968
2005-03-29 15:38:11 +00:00
Gerald Combs 9ead15a6eb README.developer says:
"PROTOABBREV     A name for the protocol for use in filter expressions;
                 it should contain only lower-case letters, digits, and
                 hyphens."

In proto_register_protocol(), generate a warning if PROTOABBREV contains
invalid characters.  Along with the list above, allow underscores and
periods.  Fix up whitespace.

Lower-case PROTOABBREV in several dissectors.

svn path=/trunk/; revision=13967
2005-03-29 14:56:09 +00:00
Ronnie Sahlberg e4f2f32fe6 from Sid
updates to FTAM


svn path=/trunk/; revision=13966
2005-03-29 12:36:40 +00:00
Ronnie Sahlberg 86dcf6dbd2 from Sid
bugfix for ACSE


svn path=/trunk/; revision=13965
2005-03-29 12:27:13 +00:00
Gerald Combs 731e79432e Add a tvb_ensure_bytes_exist().
svn path=/trunk/; revision=13963
2005-03-28 22:35:35 +00:00
Ashok Narayanan 778c9abaea Minor change to Call-ID dissector to set up object line.
svn path=/trunk/; revision=13960
2005-03-28 19:32:39 +00:00
Gerald Combs a988f8f5cc Pass a NULL instead of an empty string in the value_string/true_false_string
field of hf_rtp_payload_type.  This should fix the "values output" test failures
in the FreeBSD builder.

svn path=/trunk/; revision=13959
2005-03-28 19:19:19 +00:00
Gerald Combs 131ab36a32 In tvb_get_string(), throw an exception if our length is less than zero.
Add a message block length check to the AIM dissector.

svn path=/trunk/; revision=13955
2005-03-28 15:55:47 +00:00
Guy Harris 9385c4b868 The "application_context_version" variables in the CAMEL and GSM MAP
dissectors aren't needed outside the dissectors, and having more than
one of them exported causes build problems, at least on OS X - make them
static.

Fix indentation.

svn path=/trunk/; revision=13951
2005-03-28 02:53:49 +00:00
Gerald Combs 62aa500e15 Make hf_oampdu_info_state_parser "BASE_HEX" instead of "8", so that we don't
throw an assertion in hfinfo_uint_vals_format().

svn path=/trunk/; revision=13950
2005-03-28 02:03:45 +00:00
Ronnie Sahlberg cb859703ca make skinny compile again
svn path=/trunk/; revision=13948
2005-03-27 22:56:32 +00:00
Anders Broman d0c11490d0 Fix a typo
svn path=/trunk/; revision=13947
2005-03-27 22:11:09 +00:00
Anders Broman 12e4f59054 From Jacques, Olivier:
Camel dissector

svn path=/trunk/; revision=13945
2005-03-27 21:44:26 +00:00
Anders Broman ec539cbdb3 From Alejandro Vaquero :
Find attached a patch for SDP sessions to:
 - Dissect Dynamic payload types in RTP packets
 - Add the dynamic payload type description in RTP packets
 - Add RTP dynamic payload types description in the Voip Calls Graph, in the RTP and SDP.

svn path=/trunk/; revision=13942
2005-03-27 21:37:05 +00:00
Anders Broman 8e083f4c2e Previous commit failed doing them one by one.
From  Alejandro Vaquero :
 Find attached a patch for SDP sessions to:
 - Dissect Dynamic payload types in RTP packets
 - Add the dynamic payload type description in RTP packets
 - Add RTP dynamic payload types description in the Voip Calls Graph, in the RTP and SDP.

svn path=/trunk/; revision=13941
2005-03-27 21:14:48 +00:00
Anders Broman b583591455 Previous commit failed doing them one by one.
From  Alejandro Vaquero :
 Find attached a patch for SDP sessions to:
 - Dissect Dynamic payload types in RTP packets
 - Add the dynamic payload type description in RTP packets
 - Add RTP dynamic payload types description in the Voip Calls Graph, in the RTP and SDP.

svn path=/trunk/; revision=13940
2005-03-27 21:14:15 +00:00
Anders Broman 56b7c5fe5b Previous commit failed doing them one by one.
From  Alejandro Vaquero :
 Find attached a patch for SDP sessions to:
 - Dissect Dynamic payload types in RTP packets
 - Add the dynamic payload type description in RTP packets
 - Add RTP dynamic payload types description in the Voip Calls Graph, in the RTP and SDP.

svn path=/trunk/; revision=13939
2005-03-27 21:12:39 +00:00
Anders Broman dba36256af Previous commit failed doing them one by one.
From  Alejandro Vaquero :
 Find attached a patch for SDP sessions to:
 - Dissect Dynamic payload types in RTP packets
 - Add the dynamic payload type description in RTP packets
 - Add RTP dynamic payload types description in the Voip Calls Graph, in the RTP and SDP.

svn path=/trunk/; revision=13938
2005-03-27 21:11:48 +00:00
Anders Broman 8750cb2561 Use the new table for dynamic payload types.
svn path=/trunk/; revision=13937
2005-03-27 21:01:21 +00:00
Ulf Lamping 9e296ecd6d buildbot bugfix: add another tvb_ensure_bytes_exist()
svn path=/trunk/; revision=13933
2005-03-27 12:28:03 +00:00
Ulf Lamping fd61b593c0 buildbot bugfix: add another tvb_ensure_bytes_exist()
svn path=/trunk/; revision=13932
2005-03-27 10:53:14 +00:00
Ulf Lamping de77acf875 buildbot bugfix: add another tvb_ensure_bytes_exist (tvb,offset,length);
svn path=/trunk/; revision=13927
2005-03-27 01:02:29 +00:00
Gerald Combs c1967f8152 Make sure we have enough bytes in our tvbuff to dissect our header.
svn path=/trunk/; revision=13925
2005-03-26 23:02:24 +00:00
Guy Harris ff24a4ecc8 Update the URL for draft-stewart-sctp-pktdrprep to the -02 draft.
Clean up indentation.

Have the main loop for dissecting chunks check that the chunk size is
large enough for the chunk header, and have it pass the chunk size,
minus the size of the chunk header, to dissectors for particular chunk
types.  Make those dissectors check that value to make sure it's large
enough for any fixed-length portion before subtracting the length of
that portion and using the result as a remaining data length.

svn path=/trunk/; revision=13924
2005-03-26 21:31:13 +00:00
Anders Broman 8bd496faec Fix some typos + decode more IE stuff
svn path=/trunk/; revision=13923
2005-03-26 19:55:46 +00:00
Anders Broman f5c7049c2e Fix a bug reported by Soi Hon Lo octet 6x and 7 not read from tvb.
svn path=/trunk/; revision=13922
2005-03-26 19:09:05 +00:00
Ulf Lamping 9fe9c6826f buildbot bugfix: another (un-)signed problem and a problem with the offset (fixed by calling tvb_ensure...)
svn path=/trunk/; revision=13921
2005-03-26 12:10:58 +00:00
Guy Harris be4b443f10 With the recent change that makes the length field for FT_PROTOCOL and
FT_NONE be, in effect, unsigned, it's no longer necessary to check for a
so-large-it-doesn't-fit-in-a-signed-value length for items of those types.

svn path=/trunk/; revision=13918
2005-03-26 04:04:37 +00:00
Guy Harris 43558fba8a Get rid of boilerplate.
Use "tvb_ensure_bytes_exist()" to check for some invalid lengths.

Add some comments about possible problems in the code.

Get rid of an unnecessary length check (the length is the sum of a small
constant and a value extracted from a single byte, so the sum won't
overflow).

For a FCP_RSP, make the top-level protocol tree item run to the end of
the tvbuff and then set its length when we finish dissecting it (if we
throw an exception and don't get around to setting the length, that
means that we hit the end of the tvbuff before we hit the end of the
item).  Add some checks to catch too-large length fields.


svn path=/trunk/; revision=13917
2005-03-26 03:56:54 +00:00
Ulf Lamping eb1193bfa2 buildbot bugfix: if a length value is below zero, trim it to zero
svn path=/trunk/; revision=13912
2005-03-26 03:03:43 +00:00
Ulf Lamping 63cd52a5ae buildbot bugfix: another (un-)signed one
svn path=/trunk/; revision=13911
2005-03-26 01:23:39 +00:00
Guy Harris 67c8764353 Add some length checks to the CHAP dissector.
Use %u, not %d, to display unsigned values.

svn path=/trunk/; revision=13908
2005-03-26 00:15:19 +00:00
Ulf Lamping ad23912341 buildbot bugfix: yet another (un-)signed problem.
Guy, you may have a look to add some "invalid" message to the tree in this case

svn path=/trunk/; revision=13907
2005-03-25 23:44:49 +00:00
Ulf Lamping 29b948e907 buildbot bugfix: and again, a guint16 will never become lower than zero
svn path=/trunk/; revision=13906
2005-03-25 23:12:07 +00:00
Ronnie Sahlberg d46de2e0de jxta updates
svn path=/trunk/; revision=13904
2005-03-25 22:37:58 +00:00
Ronnie Sahlberg dc38b5cae7 updates to SAMR
from Michael richardson


svn path=/trunk/; revision=13903
2005-03-25 22:27:37 +00:00
Ulf Lamping bb8006d371 bugfix: prevent a negative length, if ah.ah_len is zero
svn path=/trunk/; revision=13902
2005-03-25 21:19:18 +00:00
Guy Harris f981bb3341 For the Bandwidth Allocation Protocol Phone Delta option:
the length of a suboption must be at least 2;

	the length of the Unique Digit option must be 3, and its name is
	"Unique Digit", not "Uniq Digit";

	the length of the other suboptions must be at least 3.

svn path=/trunk/; revision=13901
2005-03-25 20:12:27 +00:00
Guy Harris 525396b959 In the cases fixed by the two previous fixes, check to make sure the
items don't run past the length left in the option, and, if they do, put
an indication into the protocol tree that they did.

The length returned by "tvb_strsize()" includes the terminating null
character.

svn path=/trunk/; revision=13900
2005-03-25 19:52:51 +00:00
Gerald Combs f56c06ebdc Add checks to make sure the packet length hasn't overflowed in a couple of
places.

svn path=/trunk/; revision=13899
2005-03-25 19:44:09 +00:00
Ulf Lamping a52bb15613 bugfix: similar problem than the previous one fixed by Gerald
svn path=/trunk/; revision=13898
2005-03-25 17:24:48 +00:00
Gerald Combs c0ce016153 Keep the length value from rolling over in CBCP. Add a comment asking if
there's a better way to do this.

svn path=/trunk/; revision=13897
2005-03-25 17:04:00 +00:00
Gerald Combs f9b17cefe1 Add a few more payload length checks.
svn path=/trunk/; revision=13896
2005-03-24 21:17:08 +00:00
Anders Broman 6211456ece From Jacques Olivier:
Here is a patch that:
* packet-ber.c:
- Fixes handling tags longer than one octet (in
"packet-ber.c:get_ber_identifier") which consists of replacing "if (t &
0x80) break;" by "if (!(t & 0x80)) break;"
- Add debug info on the identifier when debug is enabled (I don't know if we want to keep this, but I find it useful)
- printf's a warning when packet-ber hits a constructed type (to remind that we eventually have to handle this)
- Add the display of unknown BER octet strings (this one was already submitted along with the initial Camel dissector but didn't got
included)

svn path=/trunk/; revision=13895
2005-03-24 14:21:30 +00:00
Guy Harris 8b33d8b19a Keep a list of all the x11_conv_data_t structures, so that when we're
freeing our data structures, we can go through all those structures and
free up the hash tables associated with them, rather than just leaking
them.

svn path=/trunk/; revision=13891
2005-03-24 04:44:33 +00:00
Guy Harris 873bd2bc91 The correlation ID is a 32-bit integer, not a string.
svn path=/trunk/; revision=13887
2005-03-23 22:30:37 +00:00
Guy Harris 7176376813 The DNS name data starts at the beginning of the suboption data, not the
beginning of the suboption.

svn path=/trunk/; revision=13886
2005-03-23 21:42:40 +00:00
Anders Broman 4b29cdad3c Some more IE stuff and added some ref:s
svn path=/trunk/; revision=13885
2005-03-23 21:38:05 +00:00
Guy Harris 06009efc45 When checking whether suboption data fits within the option, check
whether the suboption data offset plus the suboption data length is >,
not >=, the end of the option data - the end of the option data is the
first byte *after* the option data.

For CableLabs string suboptions, use the right offset when fetching the
data.

svn path=/trunk/; revision=13884
2005-03-23 21:22:18 +00:00
Guy Harris 7fd976834e From Anton Ivanov: add support for Frame Relay over ATM.
svn path=/trunk/; revision=13883
2005-03-23 20:25:29 +00:00
Anders Broman 68e9137eb1 Let packet-gsm_a.c dissect L3 messages.
svn path=/trunk/; revision=13880
2005-03-23 12:57:09 +00:00
Guy Harris 532dc3b69a Audit for TLV loops that don't check the length to make sure it's large
enough, and fix them - and handle the already-fixed case similarly (note
that the length is bogus, and break out of the loop).

Put object header items into the protocol tree in the order in which
they appear in the packet.

For unknown subobjects, make the "Data (N bytes)" item cover only the
data, not the header (which is already covered).

Fix the offset in some calls.

svn path=/trunk/; revision=13879
2005-03-23 09:47:11 +00:00
Ulf Lamping 42301df7bf buildbot reported bug fixed: prevent an endless loop
But what's the right way to do instead? Just inserted a return, this should do no harm.

Could someone with more knowledge of this dissector review this change?

svn path=/trunk/; revision=13878
2005-03-23 09:08:36 +00:00
Ulf Lamping 98b3ae923f hf_oampdu_info_state_parser seems to be an uint8 not bool, as it can contain 4 values
svn path=/trunk/; revision=13877
2005-03-23 08:38:47 +00:00
Guy Harris 189c2652f7 "tvb_get_stringz()" and "abs_time_to_str()" don't return null pointers,
so don't check whether they've done so with "DISSECTOR_ASSERT()". 
("proto_item_set_string()" and friends already do so.)

Fix indentation.

svn path=/trunk/; revision=13876
2005-03-23 03:51:38 +00:00
Olivier Biot 71d79f31c0 As suggested by Ulf Lamping, prevent Ethereal from bailing out if there's a protocol error, as we now have a DISSECTOR_ASSERT() macro.
svn path=/trunk/; revision=13869
2005-03-22 22:27:14 +00:00
Ulf Lamping b955abc3ed bugfix for buildbot randpkt: don't call proto_tree_add_string with a NULL pointer
TO THE DISSECTOR DEVELOPERS, PLEASE FIX THIS: I could easily found several places where a g_assert is called, depending on the input packet data. NEVER DO THIS, as this crashes Ethereal simply by invalid packet data input!!!

svn path=/trunk/; revision=13868
2005-03-22 21:47:11 +00:00
Anders Broman b042374230 More IE dissection
svn path=/trunk/; revision=13866
2005-03-22 21:33:53 +00:00
Anders Broman a17d3c60ba Dissect part of the payload.
svn path=/trunk/; revision=13862
2005-03-22 15:36:33 +00:00
Anders Broman 9645994141 Export q850_cause_code_vals as its's used by other dissector(s)
svn path=/trunk/; revision=13860
2005-03-22 15:33:50 +00:00
Anders Broman 0108e3ada9 Updates according to R1.0.3 (2005-02-26) and decode some more IE:s
svn path=/trunk/; revision=13855
2005-03-21 21:15:42 +00:00
Ronnie Sahlberg bafebc7b80 from Hannes Gredler
update for q933
(and changes to move variable declarations to the start of a block since normal c compilers can not handle declarations in the middle of a block)



svn path=/trunk/; revision=13854
2005-03-21 20:52:08 +00:00
Ulf Lamping d2afae8211 two bugfixes (reported by buildbot randpkt):
don't use the return value of gmtime, if it's NULL

prevent from an endless loop, if payload_length is 0

svn path=/trunk/; revision=13853
2005-03-21 20:01:35 +00:00
Ronnie Sahlberg 9e7a393c1f make ethereal decrypt gss-krb (secure ldap and ms signandseal for dce)
also when linked with mit kerberos




svn path=/trunk/; revision=13850
2005-03-21 10:52:57 +00:00
Ronnie Sahlberg 31f7bd0e60 remove some heimdal dependencies we dont really need
and prepare for gssapi mit support


svn path=/trunk/; revision=13849
2005-03-21 10:07:55 +00:00
Guy Harris 839dd9002c Add a capture_fr() routine when capturing on Frame Relay.
svn path=/trunk/; revision=13845
2005-03-21 03:55:50 +00:00
Guy Harris 7431ca3f58 The table containing payload types and payload dissectors are now sparse
tables that are searched rather than dense tables that are indexed, so
there's no reason to tread payload types 130 and 131 specially.

svn path=/trunk/; revision=13844
2005-03-21 02:00:14 +00:00
Ulf Lamping 49045443e9 bugfix (hopefully make buildbot happy again): don't call a function pointer, if it's NULL
However, handling of payload 130 and 131 at that place still seems to be bogus to me

svn path=/trunk/; revision=13839
2005-03-21 00:54:13 +00:00
Guy Harris 6e2808c4bd Fix some offsets.
svn path=/trunk/; revision=13835
2005-03-20 22:24:51 +00:00
Michael Tüxen cea073ec0b SCTP port numbers are 16 unsigned integers.
svn path=/trunk/; revision=13832
2005-03-20 20:46:54 +00:00
Guy Harris 0af4492612 Don't try to run net-snmp-config if we don't find it.
Check whether krb5.h defines KEYTYPE_ARCFOUR_56 - not all versions do
(in particular, the Heimdal that comes with FreeBSD 4.6 doesn't).

packet-kerberos.h includes krb5.h if we hae Heimdal; we don't need to do
so in packet-spnego.c.

svn path=/trunk/; revision=13828
2005-03-20 19:29:22 +00:00
Guy Harris fa6f190539 Put the ports and addresses into "struct _sctp_info", as the dissector
fills them in.

svn path=/trunk/; revision=13827
2005-03-20 18:59:39 +00:00
Ulf Lamping 5ada21589e remove some MSVC warnings
svn path=/trunk/; revision=13824
2005-03-20 12:07:00 +00:00
Michael Tüxen 3aa6383210 From Oleg Terletsky: Support for SCTP chunk counters. Modified to handle bundling correctly.
svn path=/trunk/; revision=13823
2005-03-20 12:02:00 +00:00
Guy Harris dec6cc3408 Fix dissect_per_restricted_character_string() calls in h225.cnf to pass
0, not NULL, for the last argument.

Re-generate packet-h225.c with the fixed h225.cnf.

svn path=/trunk/; revision=13820
2005-03-20 11:09:29 +00:00
Guy Harris 26722e4761 Fix asn2eth to pass 0, not NULL, for the last argument to
"dissect_per_restricted_character_string()", which is a guint32, not a
pointer.  Re-generate packet-h225.c with the fixed asn2eth.

svn path=/trunk/; revision=13819
2005-03-20 10:57:39 +00:00
Luis Ontanon 4012e774fd Make sure the tap info is created even when tree==NULL
svn path=/trunk/; revision=13815
2005-03-20 00:07:07 +00:00
Ronnie Sahlberg 1af7ff9672 make idl2eth handle 8bit bitmaps
make atsvc an autogenerated dcerpc dissector


svn path=/trunk/; revision=13808
2005-03-19 14:30:05 +00:00
Ronnie Sahlberg 20d135115b bugfix to idl2eth : handle the case when pointers were not explicitely specified
and we have a pointer to an array of pointers

make the EFS dissector autogenerated by idl2eth



svn path=/trunk/; revision=13806
2005-03-19 09:11:56 +00:00
Ronnie Sahlberg 941769c640 fix a string in the hf fields
svn path=/trunk/; revision=13803
2005-03-18 20:24:08 +00:00
Michael Tüxen 95ddff547d From Jeff Morris: Display PC structured.
svn path=/trunk/; revision=13802
2005-03-18 19:50:17 +00:00