Commit Graph

2923 Commits

Author SHA1 Message Date
Tomas Kukosa bab34b522b new field type FT_GUID
svn path=/trunk/; revision=14845
2005-07-04 13:04:53 +00:00
Tomas Kukosa 5f2fd433ab - use tvb instead of offset and length in dissect_per_octet_string() for value returning
- asn2eth: #.FN_PARS support for OCTET STRING
- usage of #.FN_PARS in h225 and h245
- h225: ParallelH245Control support
- h245: better support of NonStandardParameter
- usage of MAX_OID_STR_LEN constant
- all PER dissectors regenerated

svn path=/trunk/; revision=14844
2005-07-04 09:35:25 +00:00
Guy Harris 828641b2ad Mark stub data as such if no dissector claims it.
svn path=/trunk/; revision=14842
2005-07-04 03:45:29 +00:00
Anders Broman 8a448fade7 Add an exported value string
svn path=/trunk/; revision=14840
2005-07-03 21:20:27 +00:00
Anders Broman 2d264e4314 Add an exported value string
svn path=/trunk/; revision=14839
2005-07-03 21:19:49 +00:00
Anders Broman 6671c5b15d Change gsm_a.c to use value strings in some places in preparation to use it from packet-uma.c and gsm_map.
Some bug fixes to packet-uma.c

svn path=/trunk/; revision=14838
2005-07-03 20:33:06 +00:00
Anders Broman efc7044f35 Add packet-mms.h
svn path=/trunk/; revision=14837
2005-07-03 12:01:11 +00:00
Ronnie Sahlberg 3440ba76fc New protocol :
MMS    Manufacturing Message Specification


svn path=/trunk/; revision=14836
2005-07-03 06:08:53 +00:00
Ronnie Sahlberg 50f4e721ce export a few more symbols from acse
svn path=/trunk/; revision=14835
2005-07-03 05:28:12 +00:00
Guy Harris 8b8f22ec94 Note that the MPLS extension dissector will misdissect ICMP packets that
contain more than 128 bytes of the original datagram.  (Yes, RFC 1812
and the ICMP Extensions for MPLS draft collide here, as the draft in
question notes.)

svn path=/trunk/; revision=14834
2005-07-03 00:52:08 +00:00
Michael Tüxen 3b62802faa Use brackets instead of parentheses for the checksum info, which is generated.
svn path=/trunk/; revision=14833
2005-07-02 21:16:17 +00:00
Guy Harris a42c4bc656 Have separate fields for NFSv2, NFSv3, and NFSv4 return statuses, using
the names in the v2, v3, and v4 specs for values, so that they display
correctly and can be filtered on correctly.

Have "nfs.status" as a hidden field, with a name table giving just "OK"
and "ERR_" values, and having items for v2, v3, and v4 status values
(the only collision is that the v3 JUKEBOX error is the v4 DELAY error),
so that filters on "nfs.status" will still work, but will now be able to
filter symbolically on values from v2, v3, and v4.

Show 33 status values in the Info column and the summary entry using the
table of v3 status values and names, not the table of v2 status values
and names.

Fix some v3 dissectors to use the v3 return status field rather than the
v2 return status field.

svn path=/trunk/; revision=14831
2005-07-02 08:18:17 +00:00
Ulf Lamping 2ce8d2a30f fixed various issues (two serious ones) found by "private" fuzz-testing
svn path=/trunk/; revision=14830
2005-07-01 21:04:13 +00:00
Tomas Kukosa abc732f855 beter displaying of true/false strings in dissect_ber_bitstring()
svn path=/trunk/; revision=14828
2005-07-01 13:48:52 +00:00
Ulf Lamping dd1287fc71 add some more information to the DCE/RPC packet details summary line
svn path=/trunk/; revision=14827
2005-06-30 22:51:17 +00:00
Ulf Lamping 3d831f4bfb add a new DCE/RPC related column, which contains the call_id for connection oriented packets or the sequence number for connectionless (datagram) packets.
This is extremely useful, to keep track of the corresponding request/response packets of a DCE/RPC call (which can be quite a lot packets if fragmentation is used).

svn path=/trunk/; revision=14826
2005-06-30 22:46:19 +00:00
Ronnie Sahlberg 19409dc44f fix a bug in the conformance file for CMIP to make it compile again
(semi-recent changes to asn2eth and PARAM handling makes us have to use double %% in some BODY statements)

at the same time, regenerate it so it also benefit from bugfixes to handling of indefinite length



svn path=/trunk/; revision=14823
2005-06-30 07:48:25 +00:00
Guy Harris 324bed3029 If only part of an entry in an object fits in the object, don't report
the stuff that didn't fit as a negative number of junk bytes.

The difference between two pointers isn't guaranteed to have a
particular size; cast it to "long" and display it with "%ld".

svn path=/trunk/; revision=14821
2005-06-29 23:19:21 +00:00
Ronnie Sahlberg c7c28d5112 from
Maria-Luiza Crivat and
Brice Augustin

ICMP MPLS extensions


svn path=/trunk/; revision=14818
2005-06-29 10:39:09 +00:00
Ronnie Sahlberg 54b0d37892 fix a typo for the name of a bit
svn path=/trunk/; revision=14817
2005-06-29 08:11:23 +00:00
Ulf Lamping 1c13be2c9c make dissect_CBA_Connection_Data available for plugins
svn path=/trunk/; revision=14816
2005-06-29 08:06:07 +00:00
Ulf Lamping 2cecaba970 add references to the corresponding request of datagram ping and ack packets
svn path=/trunk/; revision=14815
2005-06-29 08:03:06 +00:00
Ronnie Sahlberg 226c5a56ab be more careful when attempting to dissect an unknown ber field not to read beyond the end and triggering a [malformed packet]
also prettify the error when finding "unknown" entries inside a SEQUENCE to make it easier to track down what went wrong.



svn path=/trunk/; revision=14814
2005-06-29 08:00:55 +00:00
Guy Harris 6e1081bf45 Squelch a compiler warning.
svn path=/trunk/; revision=14813
2005-06-28 22:39:56 +00:00
Guy Harris 7556ea3783 Declare "decrypt_krb5_data()" for use by the KINK dissector.
svn path=/trunk/; revision=14809
2005-06-28 21:25:56 +00:00
Anders Broman 359ada1199 Fix to SendAuthenticationInfoRes
svn path=/trunk/; revision=14808
2005-06-28 21:14:59 +00:00
Gerald Combs 7f2a239179 Add missing commas.
svn path=/trunk/; revision=14804
2005-06-28 14:46:47 +00:00
Gerald Combs 4c6c39effd Terminate a bunch of value_strings.
svn path=/trunk/; revision=14803
2005-06-28 14:02:21 +00:00
Ronnie Sahlberg 12c3955d1f addition of NBS9
and bugfix for FTAM where we sometimes forgot to check if the tag was implicit.


svn path=/trunk/; revision=14802
2005-06-28 11:23:56 +00:00
Ronnie Sahlberg 52b8c407c7 regenerate FTAM with the bugfix for GraphicString in asn2eth
svn path=/trunk/; revision=14801
2005-06-27 20:45:02 +00:00
Ronnie Sahlberg 05f9375d55 fix two bugs when updating offset incorrectly that could lead to an infinite loop when trying to decode an unknown ber structure
svn path=/trunk/; revision=14799
2005-06-27 11:43:18 +00:00
Ronnie Sahlberg 6838ce2807 remove a \n in the preference string to prevent it from creating a garbage/invalid preference file entry.
svn path=/trunk/; revision=14798
2005-06-27 11:06:40 +00:00
Anders Broman fa7c5d4aac Missed from previous commit.
svn path=/trunk/; revision=14797
2005-06-27 08:55:39 +00:00
Ronnie Sahlberg 77823f61bc some implementations do provide a CRC in the FCIP frame so skip the
'test for zero' check.
the heuristics are probably strong enough even without this check.



svn path=/trunk/; revision=14796
2005-06-27 08:27:49 +00:00
Ronnie Sahlberg b913b8f3bf From Chris Bontje
DNP3 Application Layer Object dissection


svn path=/trunk/; revision=14794
2005-06-27 08:12:55 +00:00
Guy Harris 81466a539e The name returned by "get_dns_name()" (and thus by
"get_dns_name_type_class()") is null-terminated - and the length
returned is *NOT* the length of the string, it's the length of the chunk
of DNS data extracted by "get_dns_name()", and that chunk could just
point to a later chunk as part of DNS compression.  When running the
name through "format_text()", just use "strlen()" to get the length, so
you don't get a value that's too large *OR* too small (both are
possible - "too large" if it's uncompressed and includes length
informatioin, "too small" if it contains a pointer to a string longer
than the pointer).

When adding a string value to the protocol tree, add the *raw* name, not
the formatted name - the Ethereal display code will format the string's
value as necessary.

Add formatting code for DNS names in replies.

svn path=/trunk/; revision=14793
2005-06-27 07:50:11 +00:00
Anders Broman e37467eb29 From Alejandro Vaquero
new dissector for the AudioCodes trunk trace protocol. 
This protocol is used to debug the trunk protocol in AudioCodes 
gateways. It currently supports ISDN PRI and CAS (MFCR2, WinkStart, 
etc...) trunk protocols. It also add these protocols in the "Voip Calls 
Graph..."

svn path=/trunk/; revision=14790
2005-06-27 06:21:51 +00:00
Guy Harris 89e823ea4f Yet more constification.
svn path=/trunk/; revision=14788
2005-06-26 21:11:22 +00:00
Guy Harris b50dd72e2a More constification.
svn path=/trunk/; revision=14787
2005-06-26 20:39:21 +00:00
Guy Harris ab797734dd Get rid of the private "my_match_strval()" routine in many dissectors;
add a "match_strval_idx()" routine that does the same thing, and have
"match_strval()" call it.

Make those routines, and "val_to_str()", return a "const" pointer. 
Update dissectors as necessary to squelch compiler warnings produced by
that.

Use "val_to_str()" rather than using "match_strval()" and then, if the
result is null, substituting a specific string.  Clean up some other
"match_strval()"/"val_to_str()" usages.

Add a null pointer check in the NDPS dissector's "attribute_value()"
routine, as it's not clear that "global_attribute_name" won't be null at
that point.

Make some global variables in the AFS4INT dissector local.

Make some routines not used outside the module they're in static.

Make some tables "static const".

Clean up white space.

Fix Gerald's address in some files.

svn path=/trunk/; revision=14786
2005-06-26 19:56:52 +00:00
Guy Harris 2b07720c2f Set the Info column to the correctly-capitalized name.
Use "val_to_str()" to set the Info column, and give the "hyperscsi.cmd"
field a value_string table.

svn path=/trunk/; revision=14785
2005-06-26 19:55:06 +00:00
Ulf Lamping 6c3b559e21 value_string.c(71) : warning C4090: 'return' : different 'const' qualifiers
svn path=/trunk/; revision=14784
2005-06-26 11:40:26 +00:00
Ulf Lamping ba1d304f7a prefs.c(1218) : warning C4761: integral size mismatch in argument; conversion supplied
prefs.c(1230) : warning C4761: integral size mismatch in argument; conversion supplied
prefs.c(1240) : warning C4761: integral size mismatch in argument; conversion supplied
prefs.c(1245) : warning C4761: integral size mismatch in argument; conversion supplied

svn path=/trunk/; revision=14783
2005-06-26 11:32:02 +00:00
Ulf Lamping d5ae7ee8af proto.c(2941) : warning C4090: 'function' : different 'const' qualifiers
proto.c(2941) : warning C4022: 'g_tree_insert' : pointer mismatch for actual parameter 2

svn path=/trunk/; revision=14782
2005-06-26 11:29:04 +00:00
Ulf Lamping 1e0675a01b packet-x11.c(1780) : warning C4090: 'function' : different 'const' qualifiers
packet-x11.c(1780) : warning C4022: 'g_tree_insert' : pointer mismatch for actual parameter 3
packet-x11.c(2209) : warning C4090: 'initializing' : different 'const' qualifiers

svn path=/trunk/; revision=14781
2005-06-26 11:24:26 +00:00
Ulf Lamping debc4cd849 packet-smb.c(14406) : warning C4090: 'return' : different 'const' qualifiers
svn path=/trunk/; revision=14780
2005-06-26 11:21:39 +00:00
Ulf Lamping 0265375589 packet-pgsql.c(891) : warning C4090: 'return' : different 'const' qualifiers
svn path=/trunk/; revision=14779
2005-06-26 11:18:47 +00:00
Ulf Lamping 10ffd2da48 packet-diameter.c(856) : warning C4090: 'function' : different 'const' qualifiers
packet-diameter.c(856) : warning C4024: 'addVendor' : different types for formal and actual parameter 2
packet-diameter.c(857) : warning C4090: 'function' : different 'const' qualifiers
packet-diameter.c(857) : warning C4024: 'addVendor' : different types for formal and actual parameter 3
packet-diameter.c(863) : warning C4090: 'function' : different 'const' qualifiers
packet-diameter.c(863) : warning C4024: 'addCommand' : different types for formal and actual parameter 2

svn path=/trunk/; revision=14778
2005-06-26 11:10:26 +00:00
Anders Broman 1bad9775dd Add a signal
svn path=/trunk/; revision=14777
2005-06-26 11:03:39 +00:00
Ulf Lamping c14334db25 packet-dcerpc-samr.c(2795) : warning C4090: '=' : different 'const' qualifiers
packet-dcerpc-samr.c(2900) : warning C4090: '=' : different 'const' qualifiers
packet-dcerpc-samr.c(2933) : warning C4090: '=' : different 'const' qualifiers

svn path=/trunk/; revision=14776
2005-06-26 11:02:13 +00:00
Anders Broman 7e2903bdc8 Fix a compiler warning.
svn path=/trunk/; revision=14774
2005-06-26 11:00:19 +00:00
Ulf Lamping a96c3b0f73 packet-ansi_map.c(760) : warning C4090: 'return' : different 'const' qualifiers
svn path=/trunk/; revision=14772
2005-06-26 10:58:32 +00:00
Ulf Lamping ac5e6ff1c6 packet-ansi_a.c(460) : warning C4090: 'return' : different 'const' qualifiers
svn path=/trunk/; revision=14771
2005-06-26 10:55:34 +00:00
Ulf Lamping d2081016d5 packet-ansi_801.c(93) : warning C4090: 'return' : different 'const' qualifiers
svn path=/trunk/; revision=14770
2005-06-26 10:51:56 +00:00
Ulf Lamping 7589aef14f packet-ansi_683.c(93) : warning C4090: 'return' : different 'const' qualifiers
svn path=/trunk/; revision=14769
2005-06-26 10:48:27 +00:00
Ulf Lamping c660aa2e54 packet-ansi_637.c(288) : warning C4090: 'return' : different 'const' qualifiers
svn path=/trunk/; revision=14768
2005-06-26 10:45:25 +00:00
Ulf Lamping 5b9f563924 packet-alcap.c(195) : warning C4090: 'return' : different 'const' qualifiers
svn path=/trunk/; revision=14767
2005-06-26 10:41:38 +00:00
Ronnie Sahlberg f5009dc138 rename the protocol and the protocol fields to msmms from mms to make way for the telco mms protocol.
svn path=/trunk/; revision=14761
2005-06-26 08:12:54 +00:00
Ronnie Sahlberg 070e3b0970 update libethereal.def to the new name dissect_ber_CHOICE
svn path=/trunk/; revision=14760
2005-06-26 06:28:53 +00:00
Ronnie Sahlberg e55dcb785e prettify ftam by puttign the command name in the info column
svn path=/trunk/; revision=14759
2005-06-26 06:16:03 +00:00
Ronnie Sahlberg 3a51ba4293 make dissect_ber_choice take a guint* that will return the
index of the branch taken or -1  to make prettifications easier to implement.


change the signature of dissect_ber_choice and rename it to dissect_ber_CHOICE to catch all
occurences of the use of this function

update asn2eth to use the new name/signature

update all occurences of this function to the new name and new signature.



svn path=/trunk/; revision=14758
2005-06-26 05:48:50 +00:00
Ronnie Sahlberg 2facda00c0 from Kashyap Desai
fix bug in conversation_delete_proto_data
second argument to g_slist_remove() is a pointer to the data, not a GSlist containing a list of such pointers.


svn path=/trunk/; revision=14755
2005-06-25 22:15:51 +00:00
Ronnie Sahlberg 06df848879 From Martin Mathieson
New protocol : MS MediaServer protocol


svn path=/trunk/; revision=14754
2005-06-25 21:57:11 +00:00
Guy Harris 4841b02c60 The data in an Identification packet is a message intended to be
human-readable; displayh it with "tvb_format_text()".

svn path=/trunk/; revision=14752
2005-06-25 19:14:17 +00:00
Anders Broman 44d693bf55 Major rewrite to update to version TS 129 002 V6.9.0
svn path=/trunk/; revision=14749
2005-06-25 17:26:30 +00:00
Ronnie Sahlberg 12c6e46a49 new FTAM dissector generated by asn2eth
svn path=/trunk/; revision=14747
2005-06-25 12:40:53 +00:00
Ronnie Sahlberg d0a7c6efcd Make ACSE export the EXTERNAL construct since both CMIP and FTAM rely on it.
svn path=/trunk/; revision=14746
2005-06-25 07:46:14 +00:00
Ronnie Sahlberg 0392684ab7 for unknown GraphicString
just decode them as an octet string and say in the decode pane this is an unknown GraphicString



svn path=/trunk/; revision=14742
2005-06-24 10:03:20 +00:00
Ronnie Sahlberg 7f08072192 fix to ber NULL handling
1, make it actually show the hf field when present
2, make it handle imlicit_tag properly


svn path=/trunk/; revision=14741
2005-06-24 08:57:41 +00:00
Guy Harris b67f63560e More constification.
svn path=/trunk/; revision=14740
2005-06-24 02:51:01 +00:00
Guy Harris 76258fe8e3 Constify a bunch of structure members and function arguments, to squelch
compiler warnings.

Clean up indentation.

svn path=/trunk/; revision=14739
2005-06-24 01:32:42 +00:00
Anders Broman 6f9d56ddd0 From Valery Vybornov:
add register_dissector to packet-tcap.c

svn path=/trunk/; revision=14738
2005-06-23 22:17:03 +00:00
Ronnie Sahlberg a52b44c54b fix for CMIP, we should set the opcode_type BEFORE we try to use it in the subdissector,
it doesnt work really that well if we have opcode_type set to INVOKE   from the previous packet and this new packet contains a ReturnResult.



svn path=/trunk/; revision=14733
2005-06-23 09:28:46 +00:00
Gerald Combs 6a4b3f9cd7 Fix an off-by-four error, which should take care of bugs 254 - 258. Print
OID values as unsigned ints instead of signed.

svn path=/trunk/; revision=14729
2005-06-22 15:37:46 +00:00
Ronnie Sahlberg 299ce87bfe update to packet-ber
1, start making indefinite length  constructions actually work
2, when attempting to decode an unknown BER octet sequence, do not generate [malformed packet] just because the length does not make sense and might point outside the tvb.   it might just be that there are implicit tags in the asn1 specification and that it is just impossible to decode the octet stream without knowledge of the asn.



svn path=/trunk/; revision=14728
2005-06-22 09:58:46 +00:00
Ronnie Sahlberg d9826d34d5 add a dummy variable frame_number to dissect_frame() and assign it the current frame number so that the crashdump that buildbot generates will show which frame the problem occured in.
this is useful since some bugs only trigger ia crash on some platforms.
example   bug 255 which does not trigger a crash on linux redhat 7.1



svn path=/trunk/; revision=14727
2005-06-22 08:41:58 +00:00
Ronnie Sahlberg 1a663222b4 only create the ACSE protocol tree if there is an ACSE layer present.
do not create it if it is just a SES_DATA_TRANSFER PDU


svn path=/trunk/; revision=14726
2005-06-22 08:28:59 +00:00
Ronnie Sahlberg 5a3ff9906c remove a dissector table we no longer use from ACSE
and also from the CMIP and FTAM dissectors that tried to register against it.

Implement a workaround for the asn2eth bug (can not yet handle tagged assignments) to the conformance file and remove the warnings from the template file.

Since workaround is implemented in conformance file, make make copy_files install the dissector instead of printing a warning message.



svn path=/trunk/; revision=14725
2005-06-22 08:15:18 +00:00
Luis Ontanon acddab0452 add ipbcp attribute as in Q.1970
svn path=/trunk/; revision=14724
2005-06-22 02:18:10 +00:00
Gerald Combs 8de654b9ce Make a couple of variables dynamic, as suggested by Ulf.
svn path=/trunk/; revision=14723
2005-06-21 22:02:18 +00:00
Ronnie Sahlberg 6f189c8082 terminate some value_strings properly with a {0,NULL}
svn path=/trunk/; revision=14721
2005-06-21 10:19:10 +00:00
Ronnie Sahlberg 33f4400f83 the maximum ASN OID length is 256 bytes and there is a define to control this.
fix bug251 and all other occurances where an oid string  passed to packet_ber_object_identifier()
is not defined as foo[MAX_OID_STR_LEN]

svn path=/trunk/; revision=14720
2005-06-21 09:38:59 +00:00
Luis Ontanon bfa7197fcf if exists call the h248term subdissector.
svn path=/trunk/; revision=14717
2005-06-20 21:21:06 +00:00
Anders Broman 46a2aec7bc From Mike Duigou:
In order to get filtering of conversations and
> endpoints to work from the endpoints and conversations windows I found 
> it necessary to add a new AT_URI address type and a SAT_JXTA. This also 
> necessitated a change to to_str.c to avoid a buffer overflow problem. 
> Please review these changes carefully.
> 
> Also includes some changes to the jxta dissector to fix filtering on
> generated fields and some changes to the types used for ints/unsigned ints.
> 
> Fixes a bug with the processing of messages containing namespaces.

svn path=/trunk/; revision=14716
2005-06-20 20:15:33 +00:00
Anders Broman 7ec6ab1d78 From Mike Duigou:
In order to get filtering of conversations and
> endpoints to work from the endpoints and conversations windows I found 
> it necessary to add a new AT_URI address type and a SAT_JXTA. This also 
> necessitated a change to to_str.c to avoid a buffer overflow problem. 
> Please review these changes carefully.
> 
> Also includes some changes to the jxta dissector to fix filtering on
> generated fields and some changes to the types used for ints/unsigned ints.
> 
> Fixes a bug with the processing of messages containing namespaces.

svn path=/trunk/; revision=14715
2005-06-20 20:14:57 +00:00
Gerald Combs 3a6c9ab134 Fix a format string vulneratility in the AFP dissector identified
by iDEFENSE.  Add constant format strings to proto_item_append_text()
in a bunch of other dissectors.  Copy a comment from proto.c to proto.h.

svn path=/trunk/; revision=14713
2005-06-20 19:35:58 +00:00
Ronnie Sahlberg c3cfe365cf convert the function
dissect_spnego_mechTypes() tu use the packet-ber api instead of the 
asn1 api.


svn path=/trunk/; revision=14712
2005-06-20 10:22:03 +00:00
Ronnie Sahlberg bdac892d95 convert one function to use packet-ber instead of asn1
svn path=/trunk/; revision=14711
2005-06-20 09:43:29 +00:00
Ronnie Sahlberg 5f334f7f7b move two functions that are not used by tcap and only used by gsm_a and gsm_ss into gsm_ss.
remove the include <epan.asn1.h> from tcap since it no longer needs that file.

only 9 dissectors remain that use asn1.h



svn path=/trunk/; revision=14710
2005-06-20 07:18:10 +00:00
Ronnie Sahlberg b958accede move one function only used by SPNEGO to packet-spnego.c
remove the include of <epan/asn1.h> from kerberos, ntlmssp and gssapi since they no longer need to include that file.


svn path=/trunk/; revision=14709
2005-06-20 05:28:56 +00:00
Ronnie Sahlberg 9df676d79b convert gssapi to use packet-ber helpers instead of the asn1 ones.
once spnego is converted as well, the   epan/asn1.h  include can be removed from :
kerberos, spnego, gssapi and ntlmssp



svn path=/trunk/; revision=14708
2005-06-20 04:44:39 +00:00
Anders Broman 2524713192 Add some Cisco AVP:s
svn path=/trunk/; revision=14705
2005-06-19 21:16:04 +00:00
Jörg Mayer 3b785e39ec Fix trivial warning
svn path=/trunk/; revision=14701
2005-06-19 15:17:42 +00:00
Jörg Mayer 39fe3f0ba3 Warning fix: Declare some more strings const
svn path=/trunk/; revision=14700
2005-06-19 15:16:30 +00:00
Ronnie Sahlberg 3c1fa6d6eb New autogenerated ACSE dissector.
Note that the autogenerated dissector contains two bugs which i belive are asn2eth bugs.
This is why make copy_files does not work.

The comment at the top of the generated file explains which two changes one has to do manually after autogenerating the dissector, until asn2eth gets fixed.


svn path=/trunk/; revision=14699
2005-06-19 11:54:33 +00:00
Ronnie Sahlberg 54f15811b5 make cmip and ftam also register by ber oid so that they will work when the new ACSE goes in
svn path=/trunk/; revision=14696
2005-06-19 11:47:59 +00:00
Ronnie Sahlberg beb9e86120 push one more object into the session structure so acse can pick it up later.
svn path=/trunk/; revision=14695
2005-06-19 11:40:39 +00:00
Luis Ontanon 30b7a5866b from Didier Gautheron
The new AFP 3.2 specification used by Apple OS X 10.4


svn path=/trunk/; revision=14694
2005-06-19 00:08:30 +00:00
Gerald Combs c62e906508 Clear out any leftover preference information. Fix up whitespace.
svn path=/trunk/; revision=14693
2005-06-18 20:57:01 +00:00
Jörg Mayer f4e36cdc6c Partial fix for bug 191: Sanity check is ok now
svn path=/trunk/; revision=14692
2005-06-18 15:41:26 +00:00
Jörg Mayer bf1c2080d4 Dominik Kuhlen: Fix a copy/paste bug reported in
http://bugs.ethereal.com/bugzilla/show_bug.cgi?id=211

svn path=/trunk/; revision=14690
2005-06-18 08:49:24 +00:00
Luis Ontanon 9dfb07c762 from Vasanth Manickam
Synergy is a cross platform software which enables to easily share a single mouse and keyboard between multiple computers with different operating systems, each with its own display, without special hardware. Its listed on sourceforge (http://synergy2.sourceforge.net/).


svn path=/trunk/; revision=14689
2005-06-18 01:15:17 +00:00
Luis Ontanon c7244c2a0d - Use report_error and Co. to report errors
svn path=/trunk/; revision=14688
2005-06-18 01:09:04 +00:00
Michael Tüxen d8ff9be3ba Add support for draft-ietf-tsvwg-sctp-auth-00.txt.
svn path=/trunk/; revision=14686
2005-06-17 21:02:40 +00:00
Luis Ontanon c014cc7973 - fix a bug I introduced by copy pasting an incorrect offset of some items
- prepare the tap


svn path=/trunk/; revision=14684
2005-06-17 17:37:10 +00:00
Luis Ontanon 9af01355e5 Register the dtap dissector by name.
svn path=/trunk/; revision=14683
2005-06-17 17:33:48 +00:00
Luis Ontanon 57b4ec0b35 - Write rf5 files (I don't think tektronix software will be able to read these, ethereal does)
- change k12.atm.vci and k12.atm.vpi into atm.vci and atm.vpi


svn path=/trunk/; revision=14682
2005-06-17 17:26:43 +00:00
Anders Broman 03bae827fc Change "radius type" on some vendor AVP:s and add some more ones.
svn path=/trunk/; revision=14673
2005-06-16 22:07:38 +00:00
Anders Broman 5cea18c3e2 Add some more vendors
svn path=/trunk/; revision=14672
2005-06-16 22:06:12 +00:00
Anders Broman 6b95a695cd From Paul Ollis:
epan/dissectors/packet-sigcomp.c
  --------------------------------

    Function dissect_sigcomp:

        1. Make sure the temporary buffer that is used to load byte-code from
           state is zeroed, since the function udvm_state_access implicitly
           relies on this.

        2. Pass the SigComp message header length, state length and partial
           state length to decompress_sigcomp_message.

        3. Removed the state_vars_valid parameter from calls to
           udvm_state_access.

svn path=/trunk/; revision=14667
2005-06-16 21:16:23 +00:00
Anders Broman 681f2bbdef From Paul Ollis:
epan/sigcomp_state_hdlr.c epan/sigcomp_state_hdlr.h
  ---------------------------------------------------

    Function udvm_state_access:

        1. Removed the state_vars_valid parameter. It is no longer used.

        2. The function now correctly updates each of state_length,
           state_address and state_instruction with saved state value.

           [Previously this was only done for state referenced in the SigComp
            message header.]

        3. Removed code that (incorrectly) read byte_copy_left from UDVM memory
           within the loop that writes the state to UDVM memory.

        4. Removed the code that set the useful values in UDVM memory. This
           should only be done for state referenced in the SigComp message
           header. (The decompress_sigcomp_message function, sets the useful
           values.)


  epan/sigcomp-udvm.c epan/sigcomp-udvm.h
  ---------------------------------------

    Function decompress_sigcomp_message:

        1. Added three new parameters; header_len, byte_code_state_len,
           byte_code_id_len.  The byte_code_state_len and byte_code_id_len
           are used to set the useful values in UDVM memory. The
           header_len is required to calculate the cycles available
           for decompression.

        2. Various minor corrections to spellings, etc in generated
           messages.

        3. Reduced the number of lines of output for print_level_1. Now
           the execution trace shows the instruction name and parameter
           values on one line.

           [This was done because, we found that even at the lowest
           level of detail ethereal became unusably slow; running on
           a 500 MHz SPARC. This seems to be related to the number of
           lines produced by the SigComp trace, which can easily be over
           1000 with the modified code.]

        4. Removed the used of some floating point functions. In all
           cases they were unnecessary and could potentially cause the
           code to produce the wrong results on some platforms (although
           this is unlikely).

        5. The useful values are now set correctly, using the new
           byte_code_state_len and byte_code_id_len parameters.

        6. The message header length is now included in the calculation of
           maximum_UDVM_cycles. Previously, the calculation could underestimate
           the value, resulting in the (small) chance that some legitimate
           messages might fail to decompress.

           Note: The calculation might now slightly over-estimate the cycles
           but this is a reasonable thing to do.

        7. Implemented the PUSH, POP, CALL and RETURN instructions.

           Note: The two SORT instructions and the CRC and SHA-1 instructions
           are still not implemented.

        8. The COPY and COPY-LITERAL instructions now apply the
           byte-copying-rules to the source address as well as the destination
           address.

        9. The COPY-LITERAL and COPY-OFFSET now correctly handle the
           destination operand. Previously, it was possible for the destination
           to be left at byte_copy_right when it should be left at
           byte_copy_left.

        10. All three COPY instructions will now behave correctly if the source
            or destination start at byte_copy_right; i.e. they read/write to
            byte_copy_right, byte_copy_right+1, etc. Previously the parameters
            would wrap to byte_copy_left.

        11. The COPY-OFFSET instruction now correctly calculates the source
            address for all values of offset. Previously a very large offset
            (greater than the circular buffer size) could cause the starting
            position to be mis-calculated.

        12. Modulo 65536 arithmetic has been added in some places where it was
            missing.

            [Only when noticed, we have not been able to check all the code.]

        13. Some redundant code was removed for the INPUT-BITS instruction.
            Also, INPUT-BITS (0, x, x) now correctly discards spare bits when
            the P-bit, has changed.

        14. Corrected the cycles used calculation for the INPUT-BITS
            instruction.

        15. Corrected some minor cases where the used_udvm_cycles was not
            incremented.

            [Not really a problem, but it allowed us to verify correctness with
            some of the SigComp torture tests.]

        16. Removed some redundant code in INPUT-HUFFMAN (and reorganised some
            comments to keep them making sense).


    Function decomp_dispatch_get_bits:

        1. This has been rewritten. The original version could not correctly
           handle requests for more than 8 bits. The new version is cleaner and
           correctly handles all cases.

svn path=/trunk/; revision=14666
2005-06-16 21:15:12 +00:00
Gerald Combs 06a47f5880 Fix Win32 compilation, broken by yesterday's checkin.
svn path=/trunk/; revision=14664
2005-06-16 19:51:14 +00:00
Jörg Mayer 488483855f Get rid of several megabytes worth of warnings about
"discards qualifier from assignment".

svn path=/trunk/; revision=14663
2005-06-16 17:23:34 +00:00
Guy Harris ff8f331006 Remove unused variable.
Clean up indentation.

svn path=/trunk/; revision=14662
2005-06-16 10:06:22 +00:00
Guy Harris 7db2a1221f From Peter Kovar: fix an incorrect assignment that caused a compilation
error with GCC 4.

svn path=/trunk/; revision=14660
2005-06-16 09:58:01 +00:00
Guy Harris ddbee0ffd0 Clean up white space.
Register "standard" and "lock_info_col" as obsolete preferences, so
they're silently ignored rather than triggering warnings.

Propagate changes to check for "dissect_ber_octet_string()" supplying a
null tvbuff pointer from the checkins to the generated dissector ("Do
not modify this file" means "Do not modify this file"!) to the tcap.cnf
file, so that they're not lost if the dissector is regenerated.  (Don't
propagate the checks for "tvb_new_subset()" returning null - it never
returns null.)

Pass -1 to "tvb_new_subset()" when appropriate.

When looping over packet data, check against the reported length, not
the captured length, so we indicate a short frame if we get stopped by
the snapshot length.

Get rid of unused variables.

svn path=/trunk/; revision=14658
2005-06-16 07:46:03 +00:00
Guy Harris 7c3ce4f5fa Register "version" as an obsolete preference, so it's silently ignored,
rather than provoking a warning.

svn path=/trunk/; revision=14657
2005-06-16 06:50:20 +00:00
Guy Harris ad99cb236c "dissect_isup_thin()" is a new-style dissector; register it as such.
svn path=/trunk/; revision=14653
2005-06-16 06:32:20 +00:00
Guy Harris ef37a1f7d2 Squelch some unitialized variable warnings.
svn path=/trunk/; revision=14652
2005-06-16 06:31:25 +00:00
Guy Harris 0583a7ef79 "proto_tree_add_text()" doesn't add a named field, so it takes no "hf_"
argument.

Report a non-integral type used with "dissect_per_integer()" with an
explicit "REPORT_DISSECTOR_BUG()" call, as that's a dissector bug.

svn path=/trunk/; revision=14651
2005-06-16 06:30:33 +00:00
Guy Harris 003a0a5bac Include <ctype.h> to get "isdigit()" defined/declared.
"dissect_msrp()" is a "new-style" dissector; register it as such.

Squelch an uninitialized variable warning.

svn path=/trunk/; revision=14650
2005-06-16 06:28:50 +00:00
Guy Harris 85f9363860 Squelch some compiler warnings.
svn path=/trunk/; revision=14649
2005-06-16 06:27:18 +00:00
Guy Harris 3b3670d2d3 Static variables considered harmful. Make the ISAKMP version a
parameter to many functions inside the ISAKMP dissector, as well as to
the "isakmp_dissect_payloads()" routine it exports.  Get rid of
"isakmp_set_version()", as the version can be passed to
"isakmp_dissect_payloads()" from the KINK dissector.

Put the declaration of "isakmp_dissect_payloads()" into a
"packet-isakmp.h" header, and have "packet-isakmp.c" and "packet-kink.h"
include it rather than declariing "isakmp_dissect_payloads()" itself -
or not doing so at all.

svn path=/trunk/; revision=14648
2005-06-16 06:19:03 +00:00
Guy Harris 562efe2ce9 Regenerate - this squelches some compiler warnings.
svn path=/trunk/; revision=14647
2005-06-16 06:06:18 +00:00
Luis Ontanon 6aead4f02c third and last(?) iteration on the import routines for tektronix 32bit rf5 files.
Now the import is correct even for large files.
I found out when and where the "junk" was inserted.


svn path=/trunk/; revision=14646
2005-06-16 02:27:30 +00:00
Gerald Combs 578f7a4e84 Handle FT_UINTs in dissect_per_integer(). Fixes bug 234.
svn path=/trunk/; revision=14643
2005-06-15 22:56:23 +00:00
Gerald Combs 979d807cf5 Make sure dissect_browser_TYPE_12_data() returns the right value. Catch
integer overflows in that and other functions.  Fixes bug 236.

svn path=/trunk/; revision=14640
2005-06-15 22:08:43 +00:00
Gerald Combs c2b9534398 Catch an infinite loop in smpp_handle_dlist(). Fixes bug 246.
svn path=/trunk/; revision=14639
2005-06-15 21:42:30 +00:00
Gerald Combs a2af0184b9 Add missing hf entries. Fixes bug 240.
svn path=/trunk/; revision=14638
2005-06-15 21:33:48 +00:00
Gerald Combs a9f65e1cf3 In sam_dissect_SAM_SECURITY_DESCRIPTOR_data(), throw an exception if we
fetch a too-long length.  Fixes bug 236.


svn path=/trunk/; revision=14637
2005-06-15 20:55:11 +00:00
Gerald Combs 86fc5a99b2 Fix a couple of infinite loops found by Buildbot. Were the recent
changes to this dissector fuzz tested at all?

svn path=/trunk/; revision=14636
2005-06-15 18:35:13 +00:00
Gerald Combs 65fdf41f63 Fix an infinite loop found by randpkt testing. Change the line endings from
DOS to UNIX.

svn path=/trunk/; revision=14635
2005-06-15 17:56:47 +00:00
Gerald Combs dce31be366 When we add an FT_STRINGZ item, throw an exception if the length is
less than -1.  If the length is 0, set the item string to "[Empty]".
This fixes bug 219.


svn path=/trunk/; revision=14634
2005-06-15 15:10:02 +00:00
Anders Broman f5ba6d59ca From Samuel Thibault,
Some updates to the yahoo msg dissector.

svn path=/trunk/; revision=14632
2005-06-14 21:58:54 +00:00
Anders Broman e430a0b6f0 Add vendor AVP:s for T-Mobile and T-Systems Nova International GmbH.
svn path=/trunk/; revision=14629
2005-06-14 21:46:51 +00:00
Anders Broman 3e85231160 Add Vendor ID of T-Mobile and T-Systems Nova International GmbH.
svn path=/trunk/; revision=14628
2005-06-14 21:45:29 +00:00
Gerald Combs b94621701c From Steve Grubb:
Fix bounds checking in lemon.c.  Fix up an if/else block in
packet-dcerpc-samr.c.  Fix hex printing in packet-gtp.c.


Fix other problems discovered by Steve:

Fix a bounds check in packet-isis-lsp.c.  Also, fix netmask printing
on non-little-endian machines.  Add a comment about adding a netmask
routine to to_str.c.  Add bounds checks to packet-ncp2222.inc.


All of these apply to bug 217.

svn path=/trunk/; revision=14627
2005-06-14 18:18:05 +00:00
Jörg Mayer 8063b6d0df Always skip the whole header: The current code would only decode
sizeof strcut wlan_header_v1 bytes, but if our struct was missing
some newer elements, things would go wrong.

svn path=/trunk/; revision=14626
2005-06-14 14:33:55 +00:00
Gerald Combs 5489ce999c Change read_prefs() to use GStrings instead of (re)allocating memory
ourselves.  This fixes a potential off-by-one error found by Steve Grubb.

Add two new -G options: defaultprefs and currentprefs.  The first dumps
the default preferences to stdout and the second dumps the user's prefs
to stdout.


svn path=/trunk/; revision=14624
2005-06-13 22:40:11 +00:00
Luis Ontanon 851d6b9a5e use a helper dissector to show k12 files.
svn path=/trunk/; revision=14621
2005-06-13 19:45:21 +00:00
Anders Broman 22a74984da Add some yhoo_service_vals
svn path=/trunk/; revision=14617
2005-06-11 21:31:13 +00:00
Anders Broman 5757748947 From Angelo Bannack,
A CSM_ENCAPS dissector to use with ethereal. 
The CSM_ENCAPS is a protocol used by MindSpeed to communicate with your products, and configure VoIP channels.

svn path=/trunk/; revision=14612
2005-06-11 15:58:01 +00:00
Ulf Lamping fdb5b1af02 just to get things straight: a dissector should *never* do any g_assert() calls!
in a simple approach, I've replaced all g_assert() and g_assert_not_reached() calls by their exception throwing counterparts DISSECTOR_ASSERT() and DISSECTOR_ASSERT_NOT_REACHED()

this will replace application crash by showing a dissector bug, which is the desired behaviour

there were some g_assert calls in the protocol registering functions, which might not be acting as expected now, but to be able to simply search for g_assert in the future I've replaced that calls too

one g_assert remained, the one when someone throws an unknown exception "into" packet_frame.c, but IMHO this one should remain.

svn path=/trunk/; revision=14608
2005-06-10 18:28:22 +00:00
Ulf Lamping f1252ed394 add some more details of the RT protocols frame ID's
svn path=/trunk/; revision=14600
2005-06-09 19:52:10 +00:00
Anders Broman 89ddd6077a From Tim Endean:
Check for tvb.

svn path=/trunk/; revision=14592
2005-06-09 04:28:13 +00:00
Anders Broman d82116f2aa From Olivier Jacques,
- beautify TCAP decoding without upper dissector associated.
With a couple of if (parameter_tvb) trown in to hopfully fix a Buildbot crash output

svn path=/trunk/; revision=14590
2005-06-08 18:52:34 +00:00
Gerald Combs 8b8f7af3b5 Break out of an infinite loop. Fixes bug 232.
svn path=/trunk/; revision=14589
2005-06-08 15:32:00 +00:00
Anders Broman 1ce165a446 From Tim Endean:
Fix ssn range

svn path=/trunk/; revision=14585
2005-06-08 05:04:26 +00:00
Anders Broman 1db20f1782 Fix a typo.
svn path=/trunk/; revision=14584
2005-06-08 05:03:36 +00:00
Luis Ontanon 763afdea30 From: Martin Mathieson
fix cases where %d has been used instead of %u...


svn path=/trunk/; revision=14583
2005-06-07 23:25:46 +00:00
Luis Ontanon 31f25f6a2e make sure that colifo gets set and put some other useful info there
svn path=/trunk/; revision=14582
2005-06-07 23:22:37 +00:00
Anders Broman 88bdcd02c3 Add some ethertypes
svn path=/trunk/; revision=14581
2005-06-07 20:57:27 +00:00
Anders Broman b3934176cb Some fixes from Tim Endean
svn path=/trunk/; revision=14578
2005-06-07 20:29:23 +00:00
Anders Broman 86a56ba7cc From Tim Endean:
- I have had to make some changes to packet-ber to allow for PRIVATE and APPLICATION tags.
- Both ANSI and ITU variants supported without configuration.
- Asn.1 dissectors can now register using an OID value as well as an SSN, the oid it tried first.


svn path=/trunk/; revision=14572
2005-06-07 05:49:06 +00:00
Luis Ontanon fa91e9559d register the dissector so that it can be found
svn path=/trunk/; revision=14569
2005-06-06 18:53:43 +00:00
Luis Ontanon 1415bb4d54 - add an hf entry I forgot
- get the STAT/USTAT PDU list straight 


svn path=/trunk/; revision=14568
2005-06-06 18:52:54 +00:00
Luis Ontanon acdc3d771a - make sure there's something to add to colinfo.
- auditValueRequest is a request too

svn path=/trunk/; revision=14567
2005-06-06 18:51:05 +00:00
Luis Ontanon ecdf0eff2e the trailer's offset and len were not ok.
svn path=/trunk/; revision=14566
2005-06-06 18:45:47 +00:00
Anders Broman 28b803303d Dissector for ISUP over TCP.
svn path=/trunk/; revision=14565
2005-06-06 18:01:58 +00:00
Anders Broman 44ef4de0d5 Fix a typo and add an ifdef
svn path=/trunk/; revision=14562
2005-06-06 17:07:04 +00:00
Anders Broman ae1add1c13 From Mike Duigou:
a patch which adds support for displaying jxta 
conversations and endpoints from the 'Statistics' menu. Also adds :

  - a generated field to Welcome messages to indicate whether this 
welcome is from the initiator or the receiver. You can filter on this 
field with 'jxta.welcome.initiator==[0|1]'

  - Marks the source and destination fields of message added in the last 
patch as generated fields. (Saw it being done for some other protocol).

  - Cleans up dissection of Message which used to assume it would 
dissected more than one set of hdr/message per tvbuff. Now it only 
attempts to dissect one.

- Uses GMemChunk for tap info and for conversation data rather than 
g_malloc() There's still a major leakage of g_malloc()ed the c-strings 
which are used in jxta addresses. Any suggestions for how these can be 
allocated such that they can be freed re-init is called would be 
appreciated. For address objects whose data ptr doesn't point into a 
tvbuff it's not clear what the lifecyle of an address object is.

  - Fixes a bug with filling in the of the transport layer conversation 
data. >= vs. >


svn path=/trunk/; revision=14558
2005-06-06 15:20:10 +00:00
Anders Broman 45fb18a2d6 From Mike Duigou:
a patch to to_str.c which adds support for printing 
AT_STRINGZ address type. Amazing that this wasn't there!

svn path=/trunk/; revision=14557
2005-06-06 15:17:41 +00:00
Anders Broman 0d7fce8c7d From Richard Rabbat:
a patch for a couple of fixes to rsvp sub-objects.

svn path=/trunk/; revision=14555
2005-06-06 13:55:47 +00:00
Ulf Lamping 960f3e60b4 if some PER errors has to be put to the stderr, give at least info where it's coming from (__FILE__ and __LINE__)
BTW: time for something like a "NotImplementedException"?!?, this seems to be a common mechanism, if a dissector hasn't implemented all protocol elemements (yet)

svn path=/trunk/; revision=14554
2005-06-04 22:05:50 +00:00
Ulf Lamping 41b7272c0e fix #225-#231: the enum lmp_filter_keys contained holes, so the logic to detect the field type failed, resulting in the bug
svn path=/trunk/; revision=14552
2005-06-04 21:39:36 +00:00
Luis Ontanon a547ad95eb Give the user the ability to decide how to decode USER DLTs
svn path=/trunk/; revision=14551
2005-06-04 19:22:39 +00:00
Ulf Lamping b59c893573 fix #201 second part: adapt the string length of the unformatted text, so it won't show \000 and beyond
svn path=/trunk/; revision=14550
2005-06-04 11:47:38 +00:00
Luis Ontanon 9b1c4525df fix the PDU list, and put it at the bottom
svn path=/trunk/; revision=14544
2005-06-03 14:02:06 +00:00
Luis Ontanon 8a975571a3 keywords and eol-style
svn path=/trunk/; revision=14543
2005-06-03 13:54:34 +00:00
Luis Ontanon 6cb47c1a7a - add a way to call the sscop dissector with an arbitrary handle\
- make most fields "filterable"
- dissect stat and ustat pdu lists


svn path=/trunk/; revision=14542
2005-06-03 13:50:30 +00:00
Anders Broman 98de72d588 Register the ISUP dissector to make it callable through
call_dissector()

svn path=/trunk/; revision=14541
2005-06-03 09:56:03 +00:00
Anders Broman f01b2b6197 From Mike Duigou:
A few doxygen updates and an improved section on 
writing dissectors that don't use tcp_dissect_pdus().

svn path=/trunk/; revision=14537
2005-06-03 06:35:44 +00:00
Anders Broman 52e6e313ed From Mike Duigou:
A few doxygen updates and an improved section on 
writing dissectors that don't use tcp_dissect_pdus().

svn path=/trunk/; revision=14536
2005-06-03 06:34:35 +00:00
Anders Broman bd44e72c95 From Mike Duigou:
A minor change to the prototype of tcp_dissect_pdus() 
which uses the function pointer type from packet.h

svn path=/trunk/; revision=14535
2005-06-03 06:31:58 +00:00
Anders Broman 5df33850a9 From Mike Duigou:
Extends the jxta dissector to add higher level conversation 
tracking, improved display, tapping and fixes a bug which caused some 
conversations to get lost.

svn path=/trunk/; revision=14534
2005-06-03 06:29:25 +00:00
Ashok Narayanan 7c75e42fee Updated LMP to handle the latest protocol. Removed old protocol values
since they are no longer useful.

Manu Pathak <mapathak@cisco.com> contributed these changes


svn path=/trunk/; revision=14533
2005-06-02 22:49:59 +00:00
Ulf Lamping b88fc96be7 fix call to show_fragment_seq_tree() reported by buildbot
svn path=/trunk/; revision=14532
2005-06-02 22:11:22 +00:00
Ulf Lamping 56a9fe6d2a add a generated toplevel line between the connectionless DCE/RPC protocol and the defragmented DCE/RPC content, to better understand what's going on if defragmentation is done.
svn path=/trunk/; revision=14531
2005-06-02 20:55:58 +00:00
Ulf Lamping b575d97309 use [] not () brackets to indicate [correct] UDP checksum, as this is a generated field
svn path=/trunk/; revision=14530
2005-06-02 20:52:13 +00:00
Ulf Lamping a699e351d1 add length information to "Content-encoded entity body"
svn path=/trunk/; revision=14529
2005-06-02 20:03:15 +00:00
Ulf Lamping d3f821035b fix #223: add another tvb_ensure_bytes_exist() call
svn path=/trunk/; revision=14528
2005-06-02 19:31:16 +00:00
Ulf Lamping e2c3b60280 add a generated toplevel line between the TCP protocol and the desegmented content, to better understand what's going on while desegmenting.
We'll have to add similar mechanisms for other protocols as well...

svn path=/trunk/; revision=14527
2005-06-02 18:52:55 +00:00
Ulf Lamping 5c4f877031 bugfix (fuzz_tested): t2i can be zero, test at all places before using it
svn path=/trunk/; revision=14526
2005-06-02 18:44:17 +00:00
Ulf Lamping 3c4401b95d bugfix (fuzz_tested): add tvb_ensure_bytes_exist() before adding a fragment at two places, otherwise we get an access violation
svn path=/trunk/; revision=14525
2005-06-02 18:39:45 +00:00
Ulf Lamping 9784fa242a add new function proto_tree_move_item(), which will move an already existing proto_item inside the tree (but it can't be moved to a different "tree level")
svn path=/trunk/; revision=14524
2005-06-02 18:35:20 +00:00
Ulf Lamping 4984c5e949 show Ethernet and IPX addresses the same way as we do with other fields as well (e.g. IP addresses), first the converted value (e.g. IP address or manufaturer name) and then in brackets the "raw data"
svn path=/trunk/; revision=14523
2005-06-02 18:29:29 +00:00
Ulf Lamping e3e7b4d229 bugfix: don't use match_strval() in combination with format strings (as it may return NULL) but val_to_str()
I don't know if the output as hex is appropriate, someone with more WBXML knowledge might have a look (however, it's done for unknown values only)

svn path=/trunk/; revision=14522
2005-06-02 07:29:24 +00:00
Ulf Lamping e419fe42a9 add the resolved Ethernet addresses to the "Ethernet II" summary line
svn path=/trunk/; revision=14520
2005-06-02 00:28:38 +00:00
Ulf Lamping e1a366b5fc add a reference to the corresponding RFC's of the Differentiated Services field pref setting
svn path=/trunk/; revision=14519
2005-06-01 23:47:55 +00:00
Ulf Lamping 7b376820af add some hidden fields to be able to filter on the resolved hostname "ip.host" / "ip.src_host" / "ip.dst_host", this was formerly not possible.
replace some deprecated proto_tree_add_..._hidden() calls by seperate calls by proto_tree_add_...() and PROTO_ITEM_SET_HIDDEN()

some other cosmetic changes

svn path=/trunk/; revision=14518
2005-06-01 23:44:24 +00:00
Ulf Lamping 76778cc78b mark some fields as generated and clarify some field descriptions
svn path=/trunk/; revision=14517
2005-06-01 21:28:40 +00:00
Ulf Lamping 46ff66522f prevent "Dissector Bug": prevent a string processing of length 0
svn path=/trunk/; revision=14516
2005-06-01 19:19:40 +00:00
Ulf Lamping bb4e980df1 bugfix: use g_snprintf instead of sprintf to prevent a buffer overflow
svn path=/trunk/; revision=14515
2005-06-01 19:17:59 +00:00
Ulf Lamping bc200f879c better dissect ProtSeqs values
svn path=/trunk/; revision=14508
2005-05-31 18:31:27 +00:00
Ulf Lamping 06c1482f6c bugfix: remove some not required dissect_dcom_that() calls, as "ORPC that" was errorneously dissected twice
svn path=/trunk/; revision=14507
2005-05-31 18:30:37 +00:00
Gilbert Ramirez 46788b3336 Remove bitmasks from field definitions for FT_IPv4
and FT_IPv6 fields.

svn path=/trunk/; revision=14504
2005-05-31 14:03:34 +00:00
Ulf Lamping e821e8a1f2 fix handling, if ArraySize of a BSTR is 0,
replace a g_assert by DISSECTOR_ASSERT

svn path=/trunk/; revision=14503
2005-05-31 08:02:24 +00:00
Ulf Lamping 772af896b9 add a tvb_ensure_bytes_exist() to prevent a dissector bug
svn path=/trunk/; revision=14502
2005-05-30 22:40:55 +00:00
Ulf Lamping e8c5cd2342 don't go into an (almost) endless loop, if si->info_count is -1, which is the default value. Seems to be a general bug worth to thought about, but I don't know the SMB internals and this bugfix should work anyway.
Found this by a privately fuzzed capture file (sorry, can't give it away)

svn path=/trunk/; revision=14501
2005-05-30 21:10:21 +00:00
Gerald Combs fe89e3d640 Don't try to check the suboption length type if we don't have a suboption.
Found by Steve Grubb.  Fixes part of bug 217.

svn path=/trunk/; revision=14499
2005-05-30 21:04:58 +00:00
Gerald Combs bcd1c5b9fa From Steve Grubb: Fix buffer and array length checks. Fixes part of bug 217.
svn path=/trunk/; revision=14498
2005-05-30 21:01:52 +00:00
Gerald Combs 923446f1f5 From Steve Grubb: Initialize some variables. Fixes part of bug 217.
svn path=/trunk/; revision=14497
2005-05-30 21:00:05 +00:00
Gerald Combs 861dc4e340 More bug fixes from Steve Grubb. See bug 217 for details.
svn path=/trunk/; revision=14496
2005-05-30 20:58:20 +00:00
Gerald Combs 12b7466381 From Steve Grubb: Fix a memory leak.
Don't pass a null to atoi().

Fixes part of bug 217.

svn path=/trunk/; revision=14495
2005-05-30 20:55:16 +00:00
Gerald Combs 1d3ba8764b From Steve Grubb: Fix off by one errors. Fixes part of bug 217.
svn path=/trunk/; revision=14494
2005-05-30 20:53:08 +00:00
Gerald Combs 651ee9a2fe From Steve Grubb: Initialize a variable. Fixes part of bug 217.
svn path=/trunk/; revision=14493
2005-05-30 20:51:36 +00:00
Gerald Combs cebf5bc459 Fix an off-by-one error found by Steve Grubb. Steve gets the award
for longest standing bug found so far.  This has been present since
version 0.5.0.

Fixes part of bug 217.

svn path=/trunk/; revision=14492
2005-05-30 20:48:12 +00:00
Anders Broman 05376bd969 Add dissection of MSRP
http://www.ietf.org/internet-drafts/draft-ietf-simple-message-sessions-10.txt

svn path=/trunk/; revision=14491
2005-05-30 18:39:39 +00:00
Ulf Lamping cb51c2662a fix highlighting length, if more than one RPC call is in a TCP PDU
set "n*DCERPC" in the proto column if more than one RPC call in a TCP PDU, overwriting the interface name, as there's probably more than one interface involved

add some more RPC info to the toplevel RPC proto_item

add a comment, if some bytes are not dissected but might be in the next TCP PDU

svn path=/trunk/; revision=14490
2005-05-30 18:37:19 +00:00
Ronnie Sahlberg 2edd8a7a00 add MMC READ DISC INFORMATION cdb
svn path=/trunk/; revision=14486
2005-05-30 12:09:39 +00:00
Ronnie Sahlberg 3b4e688073 add MMC READ TRACK INFORMATION cdb
svn path=/trunk/; revision=14485
2005-05-30 11:16:08 +00:00
Ulf Lamping feb55854c7 fix #215: the field hf_smb_print_spool_file_name used the wrong type, use FT_STRINGZ to add a string
svn path=/trunk/; revision=14482
2005-05-30 03:10:37 +00:00
Ulf Lamping f3037e2f53 add two more tvb_ensure_bytes_exist() calls to fix #216
When I look at the remaining code, I fear this will become a never ending story :-(

svn path=/trunk/; revision=14481
2005-05-30 02:58:13 +00:00
Ulf Lamping c173da9fec fix #201: add format_text before output of the DNS name, in case it contains invalid chars
svn path=/trunk/; revision=14479
2005-05-29 13:02:57 +00:00
Ulf Lamping 2b30b539ee fix #86: use format_text before adding version string to the info column
svn path=/trunk/; revision=14478
2005-05-29 12:27:31 +00:00
Ulf Lamping 7c07e00f1d fix #11: add a [truncated] to the label, if the message to display is too long
svn path=/trunk/; revision=14477
2005-05-29 11:23:42 +00:00
Ronnie Sahlberg acaf8730be add MMC RESERVE TRACK cdb
svn path=/trunk/; revision=14476
2005-05-29 08:45:09 +00:00
Ronnie Sahlberg bbf29dd862 MMC SET STREAMING command
svn path=/trunk/; revision=14475
2005-05-29 08:29:55 +00:00
Jörg Mayer 0fc3001d6a Add minimal 802.11j decoding. There's not fun in doing more unless
someone provides a capture file.


svn path=/trunk/; revision=14474
2005-05-29 08:19:11 +00:00
Ronnie Sahlberg aa7157462c remove offset and len from the signature of dissect_scsi_payload()
svn path=/trunk/; revision=14473
2005-05-29 03:18:53 +00:00
Ronnie Sahlberg e66ff913ff make all callers of dissect_scsi_cdb() first create a new subset tvb
change the signature for dissect_scsi_cdb since we no longer need to pass offset over.



svn path=/trunk/; revision=14472
2005-05-29 02:55:12 +00:00
Ronnie Sahlberg fc9688991f create a subset tvb before calling off to the SCSI dissector
so that the right part of the hexpane is highlighted when one clicks on an nondissected data line

svn path=/trunk/; revision=14471
2005-05-29 02:30:49 +00:00
Ronnie Sahlberg 6eb6d5f9af minor prettification
in the decode pane for the SCSI protocol,
put the name of the CDB on the protocol line


svn path=/trunk/; revision=14470
2005-05-29 01:54:22 +00:00
Ronnie Sahlberg ae9968883e update iscsi so that when we have ImmediateData we also call SCSI to decode the
payload (DATAOUT)  and not just the scsi CDB.



svn path=/trunk/; revision=14469
2005-05-29 01:49:09 +00:00
Ronnie Sahlberg 3007142732 add MMC READ BUFFER CAPACITY command
svn path=/trunk/; revision=14467
2005-05-28 13:29:45 +00:00
Ronnie Sahlberg 5d7e4750d2 add the SynchronizeCache command for MMC
svn path=/trunk/; revision=14466
2005-05-28 13:01:14 +00:00
Ulf Lamping f8b3fe7668 add some tvb_ensure_bytes_exist() calls, fixes #197, #202 and #208
svn path=/trunk/; revision=14465
2005-05-28 12:49:19 +00:00
Ronnie Sahlberg fb65ef09eb updates to mmc, add more dissection of GET_CONFIGURATION and READ_TOC
svn path=/trunk/; revision=14464
2005-05-28 12:45:38 +00:00
Ronnie Sahlberg 5c1e7a37de some more MMC4 updates
svn path=/trunk/; revision=14462
2005-05-28 08:27:44 +00:00
Ronnie Sahlberg 3df89a9d25 more scsi refactoring
starting to implement MMC codeset : CDROM/DVD



svn path=/trunk/; revision=14461
2005-05-28 05:42:39 +00:00
Ronnie Sahlberg fd6d7dd38e refactor scsi dissector toi be table driven so it will be easier to add new
commandsets.



svn path=/trunk/; revision=14460
2005-05-28 03:37:16 +00:00
Olivier Biot 97babfb98d From Gilbert Ramirez - Fix a FT_NONE with a bitmask (shouldn't have one).
svn path=/trunk/; revision=14459
2005-05-28 00:51:56 +00:00
Ronnie Sahlberg 0890269d05 from Gilbert,
make kink compile again on non-kerberos builds.

encapsulate a call to decrypt kerberos to only be compiled in when compiling with kerberos.


svn path=/trunk/; revision=14458
2005-05-27 21:39:38 +00:00
Ronnie Sahlberg 6879e6da67 from didier fix for the regression for bug 62
svn path=/trunk/; revision=14457
2005-05-27 21:33:27 +00:00
Anders Broman d328993c0d From Martin Mathieson
packet-rdt.c:
- register a configurable UDP port (off by default, but needed where setup traffic isn't captured)
- dissect extra 'buffer info' fields
- move bit fields into 'flags' subtrees
- misc. minor fixes and improvements (mainly formatting)
Missed eralier...

svn path=/trunk/; revision=14456
2005-05-27 18:35:19 +00:00
Luis Ontanon 4cd25ccc5e don't use a static buffer for preference values, allocate it, and, if necessary reallocate so that
the string always fits.


svn path=/trunk/; revision=14455
2005-05-27 18:33:09 +00:00
Gilbert Ramirez c2454f0260 Add a "-G fields3" report which prints the bitmask of the field, and avoids
printing the blurb twice, like fields2 does.
Add a script, fsanity.py, to check sanity of FT definitions. Right now the
only check is for bitmasks for integer-like fields.

svn path=/trunk/; revision=14454
2005-05-27 15:13:09 +00:00
Ronnie Sahlberg 94d8512749 From T.Nakashima
updates to KINK


svn path=/trunk/; revision=14453
2005-05-27 08:53:07 +00:00
Ronnie Sahlberg 864245ef6e cket wsp is creating string items and later appending to them and their value at runtime which breaks when the TRY_TO_FAKE_THIS_ITEM() is used.
Add a comment to proto_item_append_string() explaining the "danger" and what needs to be done if one decides to use proto_item_append_string()

Add a small change to WSP so that it will disable this speed optimization so not to trigger a DISSECTOR_BUG in proto_item_append_string()




svn path=/trunk/; revision=14452
2005-05-27 06:00:08 +00:00
Guy Harris cb3bc515e2 The DESIRE_ and OS_ values are bit indices, not numerical values that
appear by themselves; get rid of the value_string tables for them.

svn path=/trunk/; revision=14450
2005-05-27 02:30:10 +00:00
Anders Broman 7f936ea1c4 These 2 patches make RDT support pretty complete now:
From Martin Mathieson:

packet-rdt.c:
- register a configurable UDP port (off by default, but needed where setup traffic isn't captured)
- dissect extra 'buffer info' fields
- move bit fields into 'flags' subtrees
- misc. minor fixes and improvements (mainly formatting)

packet-rtsp.c:
- improve detection of RDT as the transport
- allow interleaved frame data to be dissected as RDT packets

svn path=/trunk/; revision=14443
2005-05-26 20:11:35 +00:00
Gerald Combs 4a5deae575 In some places we call proto_tree_add_item() with hfindex and length
values that may not be valid (e.g. dissect_ber_octet_string()
in packet-ber.c).  If the length is invalid, get_uint_value() or
get_int_value() will abort.  Change them to throw an exception instead.
This keeps us from having to do a lot of extra work in the dissector.

Fixes bug 182.


svn path=/trunk/; revision=14437
2005-05-26 14:53:39 +00:00
Guy Harris 4a1414164f Add some more reassembly routines.
svn path=/trunk/; revision=14430
2005-05-25 08:25:14 +00:00
Ulf Lamping d35789c6c7 fix IRemUnknown2 UUID
svn path=/trunk/; revision=14429
2005-05-24 20:01:08 +00:00
Ulf Lamping 5fd2ecb1d5 add values for STDOBJREF flags
svn path=/trunk/; revision=14428
2005-05-24 20:00:14 +00:00
Ulf Lamping c911c15371 dissect ORPC this/that of RemoteCreateInstance
svn path=/trunk/; revision=14427
2005-05-24 19:59:20 +00:00
Ulf Lamping 5812f26b65 dissect ServerAlive response
svn path=/trunk/; revision=14426
2005-05-24 19:57:37 +00:00
Gerald Combs 1c650087ac Add extra TLV length checks and signedness fixes. Fixes the infinite loop in
bug 196.

svn path=/trunk/; revision=14425
2005-05-24 16:46:18 +00:00
Gerald Combs 1a5605dc21 Throw an exception instead of calling g_assert_not_reached(). Fixes bug 175.
svn path=/trunk/; revision=14424
2005-05-24 13:50:20 +00:00
Jörg Mayer 19e90d9a5c Warning fix:
packet-bacapp.c:1264: warning: ISO C does not allow extra ';' outside of
a function


svn path=/trunk/; revision=14420
2005-05-23 12:32:37 +00:00