Commit Graph

1203 Commits

Author SHA1 Message Date
Michael Tüxen db21ed4e2d From Jeff Morris: display protocol class at parameter level.
svn path=/trunk/; revision=13800
2005-03-18 14:32:41 +00:00
Ronnie Sahlberg 5233758ae4 from Ming Zhang
fix incorrect offset for a field in the READ ELEMENT STATUS cdb


svn path=/trunk/; revision=13799
2005-03-18 09:03:36 +00:00
Ronnie Sahlberg 27b1665acd only show the Status field in a DataIn PDU if the S bit is set.
svn path=/trunk/; revision=13798
2005-03-18 08:51:12 +00:00
Gerald Combs 67b0b5a54a Increase the width of some unsigned ints, so that we don't roll them over.
This fixes the crash file at
http://www.ethereal.com/distribution/buildbot-builds/randpkt/randpkt-udp.port==53,KINK.out.1111097410 .

Make the protocol name lower case.

svn path=/trunk/; revision=13797
2005-03-18 00:23:16 +00:00
Anders Broman fe9a6628b8 From Jeff Morriss: use the new range preference type.
svn path=/trunk/; revision=13796
2005-03-17 22:08:50 +00:00
Guy Harris c8a0d29d22 Use "format_text()" on strings fetched from packets.
svn path=/trunk/; revision=13794
2005-03-17 19:44:45 +00:00
Gerald Combs 023d72fb44 Fix a couple of format string bugs discovered by Bryan Fulton.
svn path=/trunk/; revision=13793
2005-03-17 18:32:36 +00:00
Ronnie Sahlberg 5162c81d71 iscsi LUNs were reported incorrectly for SCSI Command PDUs when they were not matched with a response.
Read the LUN value into a local variable always and use that to pass to the scsi dissector since we can always use this value from the iscsi heade for COMMAND pdus   (but not data/in/out)



svn path=/trunk/; revision=13791
2005-03-17 10:18:18 +00:00
Gerald Combs fd61f72cb7 Use val_to_str instead of indexing a value_string directly. This keeps us
from crashing when we encounter an invalid type value.

svn path=/trunk/; revision=13790
2005-03-17 05:14:01 +00:00
Tim Potter 2ebd49cd2c Apply abartlet@samba.org's "raw NTLMSSP over GSS-SPNEGO" patch.
svn path=/trunk/; revision=13788
2005-03-17 02:27:26 +00:00
Guy Harris e44a0c7dd1 Use 0, not NULL, for integer arguments; NULL might be defined as "(void *)0",
and that causes compiler warnings when it's passed as an integer argument.

svn path=/trunk/; revision=13785
2005-03-16 23:49:12 +00:00
Gerald Combs 8ff6c3d656 Replace malloc()/free() with g_malloc()/g_free().
svn path=/trunk/; revision=13784
2005-03-16 23:25:11 +00:00
Guy Harris 90f8224360 Have GSS-API subdissectors supply a "data is encrypted" flag to their
callers, so that they can tell "no decrypted tvbuff because I couldn't
decrypt it" from "no decrypted tvbuff because it's not encrypted in the
first place".  Set that based on the Kerberos seal algorithm field in
the SPNEGO Kerberos 5 wrap dissector code.

Use that to determine whether the GSS-API encapsulated data in LDAP is
encrypted or not., rather than using a heuristic.

Set the length of the SASL blob tvbuff based on the SASL length and the
length of the tvbuff from which it's consstructed, rather than setting
it to the SASL length.

svn path=/trunk/; revision=13780
2005-03-16 21:59:25 +00:00
Guy Harris c664c29958 Spell out "G.723".
svn path=/trunk/; revision=13779
2005-03-16 21:48:46 +00:00
Guy Harris 0eaac18fff Check whether we have a first byte before checking it.
svn path=/trunk/; revision=13778
2005-03-16 21:40:34 +00:00
Guy Harris b678ec3704 Get rid of an unused variable.
svn path=/trunk/; revision=13777
2005-03-16 21:37:28 +00:00
Anders Broman 71e75d9183 Dissect a bit of the payload to, Picture start block and temporal ref.
svn path=/trunk/; revision=13776
2005-03-16 20:06:01 +00:00
Guy Harris 7846581664 Fix some comments.
Use the same code to handle payload types in sessions set up by SDP and
sessions set up by other protocols, rather than duplicating that code.

svn path=/trunk/; revision=13775
2005-03-16 19:55:49 +00:00
Guy Harris 38de3a617a Get rid of some redundant tests that cause compiler warnings.
svn path=/trunk/; revision=13774
2005-03-16 19:41:33 +00:00
Anders Broman 4bb41cd1c7 Dissect some more IE:s and bug fixes.
svn path=/trunk/; revision=13773
2005-03-16 19:30:39 +00:00
Anders Broman fce4f45b75 Try the pt_dissector table also if conversation has been set up with SDP.
svn path=/trunk/; revision=13772
2005-03-16 19:25:13 +00:00
Guy Harris ad555d7c60 Fix a typo in a comment, and get rid of some unused variables, to
squelch compiler warnings.

svn path=/trunk/; revision=13771
2005-03-16 19:07:32 +00:00
Guy Harris 6bf27da8ce Doing a g_assert() that can fail with data that could appear in a packet
is wrong; cast the "guint8" value to "guint" to widen it, so that adding
1 to it doesn't overflow.  (But I don't think that cast should be
necessary - the "usual arithmetic conversions" in C should widen the
value anyway.)

svn path=/trunk/; revision=13770
2005-03-16 18:53:28 +00:00
Gerald Combs 47999c28c4 Fix a format string vulnerability discovered by Bryan Fulton.
svn path=/trunk/; revision=13769
2005-03-16 17:22:38 +00:00
Ronnie Sahlberg a01dfef2f7 close potential overflow causing malloc to allocate 0 bytes
svn path=/trunk/; revision=13766
2005-03-16 13:39:55 +00:00
Ronnie Sahlberg a777d5b1ad prettify nlm a bit
svn path=/trunk/; revision=13765
2005-03-16 12:47:29 +00:00
Ronnie Sahlberg bfdd246e65 make idl2eth able to handle negative case tags
svn path=/trunk/; revision=13764
2005-03-16 11:39:46 +00:00
Ronnie Sahlberg 525bdb673b decode some more of drsuapi
svn path=/trunk/; revision=13763
2005-03-16 11:29:09 +00:00
Ronnie Sahlberg e5f203eb7a jxta updates from duigou
svn path=/trunk/; revision=13762
2005-03-15 10:18:54 +00:00
Ronnie Sahlberg abd7102bed fix a compiler warning
svn path=/trunk/; revision=13761
2005-03-15 10:05:54 +00:00
Ronnie Sahlberg e85d023949 ikev2 support from Shoichi Sakane
svn path=/trunk/; revision=13760
2005-03-15 09:58:58 +00:00
Ronnie Sahlberg b140a83293 more idl2eth and drsuapi updates
svn path=/trunk/; revision=13759
2005-03-15 09:36:18 +00:00
Ronnie Sahlberg 5d7b72fd86 update to idl2eth adding WERROR as a built in type
svn path=/trunk/; revision=13758
2005-03-15 08:24:10 +00:00
Anders Broman 612e924994 Routines for Unlicensed Mobile Access(UMA) dissection ( http://www.umatechnology.org/
UMA Protocols (Stage 3) R1.0.2 (2004-11-05) )
Work in progress.

svn path=/trunk/; revision=13756
2005-03-14 22:26:57 +00:00
Ronnie Sahlberg 1fe0f9022e a lot of people dont specify top level pointers in teh idl and just
cerlare it as a parameter that is a struct/union and not a ref pointer to one.

this is ok since toplevel ref pointers are invisible in the wire encoding anyway.

unfortunatelky  ethereal dce runtime needed to see that pointer to keep track of whisch one was a toplevel and which one wasnt.


implement a new api to call pointers which explicitely specifies whether the pointer is toplevel or embedded.
eventually all dce dissectors will use this new interface and the generic dissect_ndr_pointer() can be retired.



svn path=/trunk/; revision=13755
2005-03-14 20:51:13 +00:00
Guy Harris 9ce4ff20ef Tagged integers have 4 bytes of data (1 byte of tag, 3 bytes of
integer), not 5 bytes.

svn path=/trunk/; revision=13753
2005-03-14 20:23:11 +00:00
Guy Harris a81c8f1738 Some VoIP VLAN query and reply fields have a length of 6, not 7, with
only 2 bytes of data; dissect those differently.

svn path=/trunk/; revision=13752
2005-03-14 19:53:07 +00:00
Guy Harris c7e7167a2b Combine the two switch statements on IE type into one; this cleans
things up a bit (so that if we go through one switch statement we don't
fall into the other).

svn path=/trunk/; revision=13751
2005-03-14 11:12:00 +00:00
Guy Harris 0c70225fc6 Comment changes.
svn path=/trunk/; revision=13750
2005-03-14 10:45:46 +00:00
Ronnie Sahlberg 549ec8ee25 fix typo in name of KINK developer
svn path=/trunk/; revision=13749
2005-03-14 10:27:25 +00:00
Ronnie Sahlberg 59b3267d40 updates for drsuapi
svn path=/trunk/; revision=13748
2005-03-14 09:49:58 +00:00
Guy Harris 5f1b64cf8c Don't cruft up the display of the bitmap with "Tag interpretation".
(Perhaps we should just get rid of the "tag interpretation" field and,
instead, have explicit hf_ values for each of the fields and subfields.)

svn path=/trunk/; revision=13747
2005-03-14 03:08:38 +00:00
Ulf Lamping 49213d49da Very first start of a dissection of the VNC (RFB) protocol.
This is not much more than the dissector skeleton code.

svn path=/trunk/; revision=13746
2005-03-14 00:53:58 +00:00
Guy Harris 4d5d55b604 Handle the packet headeer for sFlow V5, put in a stub dissector for V5
samples, and give the URL of the V5 spec and some hints about how to
handle the private enterprise code in those samples.

For subtrees that cover structures, make the tree cover the entire
structure, not just the first field.

Add the flow sample type and extended data type to the protocol tree.

Set the protocol column name to capitalize "sFlow" the conventional way,
and remove the redundant "sFlow" from the Info column.

svn path=/trunk/; revision=13744
2005-03-13 21:42:51 +00:00
Guy Harris 99d60f21aa Don't attempt to get a pointer to the entire tagged field when
dissecting it; instead, fetch items from the tagged field as we go. 
Also, check the length of the tagged field against a minimum length, if
there is one.

When adding the SSID, just fetch it directly as a string, and leave it
up to the string display code to deal with non-printable characters.

When dissecting a tagged field, don't zero out the "out_buff" buffer
beforehand, just stick in the terminating '\0' afterwards.

svn path=/trunk/; revision=13743
2005-03-13 13:28:06 +00:00
Guy Harris d5c1aec8b5 Get rid of extra semicolon - it might be giving MSVC++ heartburn.
svn path=/trunk/; revision=13740
2005-03-13 07:53:19 +00:00
Gerald Combs 9d5ee3cfea Fix a check for the number of suboptions.
svn path=/trunk/; revision=13739
2005-03-13 05:48:43 +00:00
Guy Harris 4047793286 Use the tokenizing routines to parse HTTP request and status lines.
Rename the RequestDissector type to ReqRespDissector as it's used to
dissect status (response) lines as well as request lines.

svn path=/trunk/; revision=13738
2005-03-13 00:49:33 +00:00
Ronnie Sahlberg 8123288f6d some auth padding update from metze
svn path=/trunk/; revision=13736
2005-03-12 21:01:38 +00:00
Ronnie Sahlberg 3a26213e88 the previous drsuapi patch showed how idl2eth can handle embedded arrays just fine.
beautifully fine.

this patch overrides the array,   tells idl2eth to not generate code to unmarshall the conformance blob or the data for the array.

a handwritted replacement function is implemented in the template instead which prettifies the output a lot.



svn path=/trunk/; revision=13735
2005-03-12 12:04:44 +00:00
Ronnie Sahlberg 2ee14eef27 refine IDL
svn path=/trunk/; revision=13733
2005-03-12 10:55:50 +00:00
Ulf Lamping 25531c9a70 from Micheal Duigou: some more doxygen tags
svn path=/trunk/; revision=13732
2005-03-12 09:59:28 +00:00
Ronnie Sahlberg cc6d037933 fix small bug from previous checkin for fixed arrays
svn path=/trunk/; revision=13730
2005-03-12 09:24:54 +00:00
Ronnie Sahlberg 0e3ff62701 initial DRSUAPI dissector
now that we can decrypt DCERPC

the dissection is not complete since idl2eth can not yet handle
all the weird extensions in the idl file yet.


svn path=/trunk/; revision=13729
2005-03-12 09:02:01 +00:00
Guy Harris 092815f97d From Vladimir Kondratiev:
- Give each IE its own subtree, with a summary at the root, and
	  details within the tree.  It allows a condensed view when IE
	  trees are closed.

	- Display country info in multiple protocol tree items, with
	  each (start channel, channels, power) triplet in a separate
	  item.

	- Put a separate item into the protocol tree for each CFP
	  parameter.

svn path=/trunk/; revision=13713
2005-03-11 12:07:30 +00:00
Guy Harris 3057f63c8d Fix the offset for the system uptime field.
svn path=/trunk/; revision=13712
2005-03-11 11:59:27 +00:00
Guy Harris 2368cd28d9 We don't have an SMDS dissector, and it's not clear what dissector
should be used for ATM, so just use the data dissector for now.

The X.25 dissector registers itself as "x.25", not "x25".

svn path=/trunk/; revision=13711
2005-03-11 11:46:48 +00:00
Ronnie Sahlberg 349c5a8699 from metze
various bugfixes and enhancements to decryption of secure ldap


svn path=/trunk/; revision=13710
2005-03-11 09:31:11 +00:00
Guy Harris 009de7a662 From Alexandro Vaquero:
fix the call to "rtp_add_address()" to match the new signature;

	fix a problem with the codec displayed in the "Voip Graph"
	for H245 "RequestMode" messages.

svn path=/trunk/; revision=13709
2005-03-11 03:05:57 +00:00
Guy Harris 6db3fe1e96 Just use "tvb_format_text()" to handle strings - don't roll our own
routine to handle that.
 
Don't format the value text into a buffer; just use
"proto_item_append_text()", so we don't run the risk of overflowing the
buffer.

Use "ip_to_str()" to format an IP address - don't roll our own code to
handle that.

Don't make "is_fhss" global - that causes its value to depend on the
last packet dissected, which isn't necessarily the right value for the
packet being dissected.

svn path=/trunk/; revision=13707
2005-03-11 01:35:02 +00:00
Jörg Mayer 0f764ba58a Warning fix: no newline at end of file
svn path=/trunk/; revision=13701
2005-03-10 21:04:34 +00:00
Luis Ontanon 008054453b From Alejandro Vaquero:
- Automatic dissection of RTP events (RFC2833) set in SDP sessions.
- Add RTP events (RFC2833) to the Voip Graph


svn path=/trunk/; revision=13697
2005-03-10 19:32:22 +00:00
Ronnie Sahlberg 8700645d54 add support to decrypt and dissect sign-and-sealed traffic.
(cifs: dc's talking to eachother   and when longhorn comes out: anyone wanting to talk dce to a dc!)

((this is an incredibly advanced feature well worthy of mentioning in NEWS))


svn path=/trunk/; revision=13690
2005-03-10 10:16:49 +00:00
Ronnie Sahlberg 1564a2d2d3 add two nice defines for how to decrypt a GSSKRB tvb
dce has slightly different padding and checksumming so we have to tell decrypt_arcfour() about it.



svn path=/trunk/; revision=13689
2005-03-10 08:52:59 +00:00
Ronnie Sahlberg 0180d280fe change the signature for the functions to decrypt data for the
dcerpc_auth_subdissector_fns structure.

the SignAndSeal decryption (which works really well) needs this.



svn path=/trunk/; revision=13688
2005-03-10 08:50:18 +00:00
Ulf Lamping 2f73c1d242 removed some MSVC compiler warnings, mostly I've casted "downsized function parameters"
svn path=/trunk/; revision=13684
2005-03-09 23:00:21 +00:00
Gerald Combs aa8bea0559 Add a couple of definitions not present in MIT Kerberos. Fix a compiler
warning.

svn path=/trunk/; revision=13682
2005-03-09 19:43:29 +00:00
Ronnie Sahlberg 6626c6aac2 refactor the code to not use heimdal functions to decrypt and unwrap the blob.
use builtin functrions instead  which will make it trivial to add this support to mit later


svn path=/trunk/; revision=13680
2005-03-09 11:59:40 +00:00
Guy Harris 56f04fe686 Set the eol-style and keywords properties.
Use "tvb_reported_length_remaining()", not "tvb_length_remaining()", in
the loop parsing the packet contents, so we throw an exception on a
short frame (to mark that it *is* a short frame).

Use "tvb_format_text()" for text strings, so we don't have a problem
with non-printable characters.

Use "ether_to_str()" to turn MAC addresses into strings.

Clean up indentation.

svn path=/trunk/; revision=13679
2005-03-09 10:57:58 +00:00
Guy Harris 87c16299db From Vladimir Kondratiev:
- better parsing for TIM info element: it parses 'bitmap control' byte
and provides list of AID for stations having power saving traffic.
- separate names for TIM elements. It helps to higlight beacons with
some properties, for example DTIM ones (dtim_count==0).

svn path=/trunk/; revision=13678
2005-03-09 10:43:34 +00:00
Guy Harris 85dc6331eb Comment out a routine that's not currently being used.
svn path=/trunk/; revision=13677
2005-03-09 10:29:59 +00:00
Guy Harris 8d34b8cacd From Ricardo Muggli: decode the voice VLAN field in CDP packets.
svn path=/trunk/; revision=13676
2005-03-09 10:24:34 +00:00
Guy Harris 3ca7500032 Updates from Abhijit Menon-Sen.
svn path=/trunk/; revision=13672
2005-03-09 03:15:59 +00:00
Guy Harris d7855a3c4d Fix the properties.
svn path=/trunk/; revision=13671
2005-03-09 03:04:46 +00:00
Guy Harris 33006e7f92 Squelch some compiler warnings if we don't have Kerberos.
svn path=/trunk/; revision=13670
2005-03-09 03:03:10 +00:00
Guy Harris 77780b3697 "time_t", not "timer_t".
svn path=/trunk/; revision=13669
2005-03-09 02:39:31 +00:00
Ronnie Sahlberg 0aad06dea5 use the rc4 functions from epan/crypt-rc4 instead of those in heimdal
so that we dont have to include <rc4.h> from heimdal

hopefully the build on freebsd will succeed now


svn path=/trunk/; revision=13668
2005-03-08 23:47:29 +00:00
Ronnie Sahlberg 0f5bac2858 New protocol : KINK
From Taekshi Nakashima   the KINK protocol


svn path=/trunk/; revision=13667
2005-03-08 22:32:43 +00:00
Ronnie Sahlberg 176c87d3dd remove some dependencies of libgssapi
svn path=/trunk/; revision=13665
2005-03-08 21:13:14 +00:00
Ronnie Sahlberg 95532c9493 remove the need to include <gssapi.h> from heimdal
svn path=/trunk/; revision=13664
2005-03-08 20:22:07 +00:00
Ronnie Sahlberg 5cfb848064 If ethereal is linked with HEIMDAL
and Kerberos decryption is enabled in preferences
and if we have the keytab file available

then attempt to decrypt Secure LDAP



svn path=/trunk/; revision=13660
2005-03-08 09:46:24 +00:00
Ronnie Sahlberg 6e6e082d34 when HEIMDAL is linked with :
make spnego able to decrypt data wrapped inside
 GSSAPI/SPNEGO/KRB5 arcfour-hmac

This code will be more etherealified and evolve into being able to link with MIT as well.



svn path=/trunk/; revision=13659
2005-03-08 09:45:19 +00:00
Lars Roland 9a1a762922 remove remnants of the old plugin api from dissectors and plugins
svn path=/trunk/; revision=13656
2005-03-07 21:40:29 +00:00
Anders Broman d8d583a587 Add a g723 dissector to dissect the first byte to find the rate and if speech is pressent or not.
svn path=/trunk/; revision=13652
2005-03-07 20:11:03 +00:00
Luis Ontanon 8b481b2ab9 From Florian Lohoff:
Add Netscreen vendor specific attributes


svn path=/trunk/; revision=13650
2005-03-07 11:35:52 +00:00
Jörg Mayer 8de6e67f08 Fix a small typo that would prevent compilation with MIT Kerberos
svn path=/trunk/; revision=13647
2005-03-07 10:15:03 +00:00
Ronnie Sahlberg 31a9522aa2 export some symbols we will need later.
svn path=/trunk/; revision=13646
2005-03-07 09:02:33 +00:00
Jörg Mayer f2bab830dc Make packet-kerberos.c compile again:
Replace the use of the undefined type krb5_keyusage (at least with heimdal)
in decrypt_krb5_data with the old int. The change wasn't complete anyway
as the .h file wasn't changed and the third implemenitation of
decrypt_krb5_data was left out also.

Disclaimer: I only made sure it compiles again, I don't know whether the
  change has any side effects.


svn path=/trunk/; revision=13645
2005-03-07 08:47:48 +00:00
Guy Harris ab32b090b7 Back out the BACnet application layer dissectin code - its use of
recursion instead of iteration means that packets with sufficiently
large lists can cause it to overflow the stack and crash.

svn path=/trunk/; revision=13643
2005-03-07 01:22:55 +00:00
Ronnie Sahlberg 7a43aeb457 minor update, add an extra parameter to a call to prepare for decryption of GSSAPI wrapped data
svn path=/trunk/; revision=13642
2005-03-06 22:52:58 +00:00
Ronnie Sahlberg 26dd060797 export decrypt_krb5_data
svn path=/trunk/; revision=13641
2005-03-06 22:34:13 +00:00
Guy Harris 722832f739 The length field in the "BACnet encoding rules" is limited to 32 bits
("Data lengths larger than 2^32-1 are not encodable using primitive
tags"), so it doesn't need to be a "guint64" - but it *can* be that big,
so we should handle the 65536-2^32-1 case.

Don't gratuitously throw away the upper 24 bits of various lengths by
casting them to guint8.

Show signed values as such.

Don't use "match_strval()" - it returns a null pointer if it doesn't
find the value in the value_string table; instead, use "val_to_str()" so
we don't blow up if the value isn't found.

svn path=/trunk/; revision=13640
2005-03-06 22:14:24 +00:00
Luis Ontanon c57a54f3ec Add a preference for another alternate tcp port
svn path=/trunk/; revision=13638
2005-03-06 21:32:13 +00:00
Anders Broman 2f4c6bf770 Fix a minor bug with FT_BOOLEAN.
svn path=/trunk/; revision=13637
2005-03-06 20:54:01 +00:00
Guy Harris e41c4740c9 Handle XNS IDP socket numbers.
Handle SMB-over-SPP.

svn path=/trunk/; revision=13635
2005-03-06 20:13:58 +00:00
Jörg Mayer 9432483a14 Warning fix:
packet-sdp.c:74: warning: 'reset_sdp_packet_info' declared 'static'
        but never defined


svn path=/trunk/; revision=13624
2005-03-06 09:33:44 +00:00
Guy Harris 177e6f1bc2 From Yaniv Kaul: show the protocol name in every record.
svn path=/trunk/; revision=13623
2005-03-06 04:42:51 +00:00
Guy Harris a313c47a59 Get rid of an unused variable.
svn path=/trunk/; revision=13621
2005-03-06 04:41:00 +00:00
Guy Harris f63c9301b2 No, the code is the numerical value, not the vendor ID.
svn path=/trunk/; revision=13618
2005-03-06 03:38:17 +00:00
Guy Harris c9826f64d8 From Ben Turner: fix an addVendor() call.
svn path=/trunk/; revision=13617
2005-03-06 03:28:41 +00:00
Guy Harris 84f0170f07 Add a newline to the end of the file.
svn path=/trunk/; revision=13616
2005-03-06 03:25:19 +00:00
Guy Harris b21ab2a5e0 Get rid of "unknown transport" warnings - don't spam the user just
because we haven't yet written a dissector for a particular protocol.

svn path=/trunk/; revision=13615
2005-03-06 03:19:34 +00:00
Guy Harris 2ad3b256f4 Handle the "32-bit length is > 2^31-1, so the protocol tree routines
will treat it as negative" problem by first calling
"tvb_ensure_bytes_exist()" - if the length is *that* large, it will run
past the end of the tvbuff, so the exception that
"tvb_ensure_bytes_exist()" will throw with a negative argument will be
the correct exception.

svn path=/trunk/; revision=13614
2005-03-06 03:11:24 +00:00
Guy Harris 39ad72864f No, they don't use BER for the variable portion of a PDU; update the
comment appropriately.

Make a bunch of routines static.

Don't just dissect stuff past the end of the variable portion as data -
the protocol spec doesn't appear to say there's anything after that.

Don't pass the offset to the routines to dissect the different types of
PDUs, just have them start at 0.

Use guint8 for 8-bit unsigned quantities.

Rename the routine to dissect Abort PDUs to match the other PDU
dissectors.

svn path=/trunk/; revision=13611
2005-03-06 02:24:49 +00:00
Guy Harris 476c8da086 Don't use "long" and "%l[doux]" for 64-bit quantities, use guint64 and %
followed by PRIu64.

Don't use C++/C99-style comments.

Use "tvb_reported_length()" to get packet lengths - don't use
"tvb_length()", and especially don't directly refer to the "length"
field of the tvbuff.

svn path=/trunk/; revision=13609
2005-03-06 01:53:56 +00:00
Jörg Mayer 8940beb1e2 Martin Mathieson: Add information sources
svn path=/trunk/; revision=13607
2005-03-06 01:15:29 +00:00
Guy Harris ea23bf66f9 From Herbert Lischka: implement some (not all) tags according to BACNET
application handbook.

svn path=/trunk/; revision=13605
2005-03-06 00:17:37 +00:00
Guy Harris 4576918110 For OSPF versions other than 2 or 3, stop dissecting the packet after
the checksum (which is the last header field common to V2 and V3).

svn path=/trunk/; revision=13603
2005-03-05 23:36:07 +00:00
Ronnie Sahlberg 7d6a1b502c From Mike Duigou updates to JXTA
svn path=/trunk/; revision=13602
2005-03-05 21:00:41 +00:00
Guy Harris 30a19a9b3c Clean up indentation.
Strings don't have a base, so use BASE_NONE with them, not BASE_DEC or
BASE_HEX.

svn path=/trunk/; revision=13600
2005-03-05 20:36:03 +00:00
Ronnie Sahlberg aaa9cb5150 New Protocol : DTP
From Charlie Lenahan   initial DTP support


svn path=/trunk/; revision=13598
2005-03-05 11:12:01 +00:00
Ronnie Sahlberg a7ca6143e7 from susanne edlund : make tlli appear in the tree
also change value_length and total_length signed to eliminate a compiler warning



svn path=/trunk/; revision=13597
2005-03-05 10:51:30 +00:00
Guy Harris 1a7b3ec143 From Susanne Edlund: filter on NRI values in BSSGP.
svn path=/trunk/; revision=13595
2005-03-05 04:58:13 +00:00
Guy Harris 001b5aaba6 From Chris Waters: correct an error with the decoding of signal
strength information in 802.11 captures.

svn path=/trunk/; revision=13594
2005-03-05 01:03:22 +00:00
Guy Harris 5ba3adf134 Omit some stuff when building without a Kerberos library, as it's unused
if you don't have a Kerberos library to do decryption.

svn path=/trunk/; revision=13593
2005-03-05 01:00:15 +00:00
Michael Tüxen 10edbd81c3 Enable details in protocol tree by default like TCP and UDP.
svn path=/trunk/; revision=13592
2005-03-05 00:51:33 +00:00
Lars Roland e434150f99 fix kerberos dissector for those having no kerberos decryption
svn path=/trunk/; revision=13591
2005-03-05 00:21:46 +00:00
Ronnie Sahlberg 413deb9130 from Carlos Pignataro
update MPLS to support MPLS Echo



svn path=/trunk/; revision=13590
2005-03-04 22:32:06 +00:00
Ronnie Sahlberg 7671b98bac make kpasswd privide subdissectors to handle the user-data field for the KRB_PRIV structure for kpasswd requests and replies.
decrypt and behold the new password in plaintext in all its glory
(given you have the keytab with the old one of course)


svn path=/trunk/; revision=13586
2005-03-04 13:39:15 +00:00
Ronnie Sahlberg 6fec8dca5f some authentication stuff from metze
svn path=/trunk/; revision=13584
2005-03-04 12:28:00 +00:00
Ronnie Sahlberg 2f4cb22585 make ethereal able to decrypt KRB_PRIV which kpasswd uses
svn path=/trunk/; revision=13583
2005-03-04 12:21:40 +00:00
Ronnie Sahlberg bb77a3224f the unknown stuff in the decrypted blobs in mapi are just uninitialized buffer padding so dont show them in the decode tree
svn path=/trunk/; revision=13582
2005-03-04 11:08:03 +00:00
Luis Ontanon 5ef5e77434 From Francisco Alcoba,
do not look for data blocks in ACK packets


svn path=/trunk/; revision=13581
2005-03-03 13:59:52 +00:00
Guy Harris fa7eb4fdeb From Anders Broman: fix a fault in the CODEC LIST routine where offset
was wrongly calculated, and clean up some other miscellaneous stuff.

svn path=/trunk/; revision=13580
2005-03-03 10:23:29 +00:00
Guy Harris 8ff4e8160e Oops, forgot packet-idp.h.
svn path=/trunk/; revision=13579
2005-03-03 09:36:19 +00:00
Guy Harris 0de93bd590 From Yuriy Sidelnikov: correctly display User Information
field in release request/response PDu if the Reason field
is absent.

svn path=/trunk/; revision=13578
2005-03-03 08:54:00 +00:00
Guy Harris 282080e26d Add support for what appears to be 3Com's scheme for encapsulating XNS
over Token Ring (and presumably other link layers using 802.2 LLC), and
for the XNS IDP and SPP protocols.

svn path=/trunk/; revision=13577
2005-03-03 08:34:48 +00:00
Guy Harris 439a65b82f Use "tvb_get_string()" to fetch strings from the packet, rather than
filling up a fixed-length buffer.

Add a bunch of length checks.

Clean up indentation.

svn path=/trunk/; revision=13574
2005-03-02 21:08:47 +00:00
Anders Broman 7cb9e36324 Present diameter time as UTC time rather than the local time zone of the machine running Ethereal is at.
Insert a comment that time before 1970 will not be presented properly.

svn path=/trunk/; revision=13573
2005-03-02 20:16:18 +00:00
Guy Harris e84c3d927c Handle the CRC correctly:
don't do it if we don't have the entire packet, including the
	CRC value;

	fetch the CRC value from the packet with tvb_get_letoh24(),
	and compare that against the computed CRC, rather than comparing
	the computed CRC (presumably in host byte order) with the
	little-endian CRC in the packet (that doesn't work if host byte
	order is big-endian).

svn path=/trunk/; revision=13571
2005-03-02 00:21:33 +00:00
Guy Harris bb7d0d43e8 Set the svn:keywords and svn:eol-style properties appropriately, and
give it an RCS ID.

svn path=/trunk/; revision=13568
2005-03-01 21:47:54 +00:00
Luis Ontanon ecea5fac96 In packets with more than one req/resp the items of all the req/resp subtrees always pointed to the offset of the first req/resp.
svn path=/trunk/; revision=13564
2005-03-01 11:37:26 +00:00
Ronnie Sahlberg 175815e0fe If errorrecoverylevel==0 is used and the A bit is clear in a DataIn PDU
the iscsi layer will not hold the LUN value (it is reserved)
so we need to remember if from the initial Command PDU.

make the LUN reporting work for errorrecoverylevel==0 targets


svn path=/trunk/; revision=13563
2005-03-01 10:09:53 +00:00
Guy Harris dfc51396ee Show NTP times correctly.
svn path=/trunk/; revision=13562
2005-03-01 06:32:56 +00:00
Guy Harris fc96a5d5f3 Show NTP times in a fashion more similar to that used for other times.
svn path=/trunk/; revision=13561
2005-03-01 06:04:31 +00:00
Guy Harris cfb9cf0129 Show NTP times correctly.
svn path=/trunk/; revision=13560
2005-03-01 06:03:08 +00:00
Luis Ontanon 88ffe08066 even if unharmful, this was simply ugly.
change

do {
 if (i == 0) break;
 ...
} while (i);

for a propper

while(i) {
 ...
}


svn path=/trunk/; revision=13557
2005-02-28 22:39:03 +00:00
Luis Ontanon d018dcf663 few changes to http
- stat_infos are mantained in a GPtrArray to avoid leaking and overwriting them
- added http_host and request_uri to http_info_value_t 


svn path=/trunk/; revision=13555
2005-02-28 22:27:24 +00:00
Anders Broman aae42374bc Change the RADIUS ATTRIBUTES for some 3GPP AVP:s to display them as (UTF8)Strings, also
added some more AVP:s from a later spec.

svn path=/trunk/; revision=13554
2005-02-28 20:51:23 +00:00
Anders Broman 3167213f5d Undo change of return (addVendor(atoi(id), code, name)); as it wasn't correct.
svn path=/trunk/; revision=13553
2005-02-28 20:49:34 +00:00
Anders Broman e09fcce637 Correct presentation of IMSI digits and highlight correct bytes.
svn path=/trunk/; revision=13552
2005-02-28 20:48:23 +00:00
Guy Harris daf2a17826 Add a link to an RX spec, and ask whether the Epoch really should be
dissected as a UN*X time.

svn path=/trunk/; revision=13551
2005-02-28 19:47:46 +00:00
Guy Harris 6421106005 Fix capitalization.
svn path=/trunk/; revision=13549
2005-02-28 09:21:59 +00:00
Anders Broman e18e3db225 Avoid trying to display a time before 00:00:00 UTC, January 1, 1970 as it currently will be displayed wrongly.
svn path=/trunk/; revision=13542
2005-02-27 21:33:32 +00:00
Luis Ontanon 36833b76d8 From Stefano Pettini
1) added _U_ tags in RMT dissectors to suppress "unused parameter" warnings.

2) added a dissector_add_handle("ip.udp", ip_handle) to IP dissector, to
allow the following chain of protocols: IP over UDP over IP. It seems
uncommon, but it's used by implementations of experimental protocols
(e.g. TCP-XM) that run a userspace IP stack (e.g. lwIP) over UDP. The
dissector of IP over UDP must be enabled explicitly using the "decode
as..." window.



svn path=/trunk/; revision=13540
2005-02-27 20:26:55 +00:00
Guy Harris 5639b87daf The Kerberos-over-UDP dissector can decide not to dissect packets, so it
needs to be a new-style dissector and explicitly reject them so that
other dissectors can pick them up.

svn path=/trunk/; revision=13528
2005-02-26 00:14:22 +00:00
Guy Harris c68bde2e82 The Kerberos 4 dissector is now a dissector that can reject packets, so
register it with "new_register_dissector".

svn path=/trunk/; revision=13527
2005-02-25 23:47:21 +00:00
Ronnie Sahlberg 9087bf8e45 start dissecting serviceactionin16
svn path=/trunk/; revision=13523
2005-02-25 23:03:24 +00:00
Michael Tüxen a88d115a38 Show prot numbers in protocol tree, if wanted. Suggested by Jeff Morris.
svn path=/trunk/; revision=13518
2005-02-25 21:03:48 +00:00
Michael Tüxen 22012f92d0 Add higher SI values.
svn path=/trunk/; revision=13517
2005-02-25 20:33:28 +00:00
Ronnie Sahlberg 7f86cffa58 add support to call krb4 for suspected krb4 stuff soming in on udp port 88
weirdo krb4 implementations apparently do this.


svn path=/trunk/; revision=13516
2005-02-25 11:38:56 +00:00
Ronnie Sahlberg 4a338216da pinfo->private_data was a quite subptimal idea
change the decodeas for dcerpc so that it actually works again for dcerpc over smb



svn path=/trunk/; revision=13515
2005-02-25 10:30:21 +00:00
Anders Broman 3d0fbb8c63 Dissect MTP3 with service indicator 14 as H248.
svn path=/trunk/; revision=13505
2005-02-24 22:36:26 +00:00
Anders Broman 58c8e8a720 From Ben Turner:
Vendors were not being parsed properly from the XML diameter dictionary.

svn path=/trunk/; revision=13504
2005-02-24 22:35:10 +00:00
Jörg Mayer 761804b15e Add some minor Cisco proprietary stuff (hostname, network-eap)
svn path=/trunk/; revision=13495
2005-02-24 07:19:42 +00:00
Guy Harris cb1e20b79c Clean up white space.
"decode_boolean_bitfield()" returns a "const char *" - don't cast it to
a "gchar *" and modify what it points to.  Instead, just use
"other_decode_bitfield_value()".

svn path=/trunk/; revision=13494
2005-02-24 05:45:15 +00:00
Guy Harris 2b4bd5d16a Not everything that uses "capture_eth()" includes "capture.h" (the ATM
dissector, for one).

svn path=/trunk/; revision=13493
2005-02-24 05:42:51 +00:00
Anders Broman b7b5db354e fix some asn2eth warnings
svn path=/trunk/; revision=13486
2005-02-23 23:14:42 +00:00
Anders Broman 544d47560a Add dissection of packet tdmc
svn path=/trunk/; revision=13484
2005-02-23 23:12:48 +00:00
Ronnie Sahlberg fbf762bda5 update asn2eth and all generated dissectors to new dissect_ber_boolean that takes a implicit_tag parameter
svn path=/trunk/; revision=13479
2005-02-23 08:57:47 +00:00
Ronnie Sahlberg 55bd0f9bbb fix printout of length of ndmp pdu
svn path=/trunk/; revision=13478
2005-02-23 08:38:18 +00:00
Gerald Combs 105e5bd617 Add request URI and Version fields. Add a question about fixing a memory leak.
svn path=/trunk/; revision=13475
2005-02-23 05:47:17 +00:00
Ulf Lamping 3cc6dc3b90 fix usage of "if(tree) {" to display the right things, even if no coloring rule is set
svn path=/trunk/; revision=13471
2005-02-22 20:25:23 +00:00
Ulf Lamping 76c32eb945 added IEEE 802.1 Link Layer Discovery Protocol (LLDP) to the ethertypes, but sorry, no dissector (yet?)
svn path=/trunk/; revision=13460
2005-02-21 20:19:15 +00:00
Ulf Lamping 2f836c20a8 fix a typo: lenght -> length
This seems to be a "more common" typo, fixed it 13 times throughout the code ...

svn path=/trunk/; revision=13452
2005-02-20 22:36:34 +00:00
Jörg Mayer ecce686381 Add packet-rdt.h to DISSECTOR_INCLUDES
svn path=/trunk/; revision=13436
2005-02-20 04:17:17 +00:00
Luis Ontanon bec15c6a45 modify eol-style property
svn path=/trunk/; revision=13434
2005-02-20 01:58:29 +00:00
Luis Ontanon f18141e49b From Martin Mathielson
RDT (Realplayer Data Protocol) dissector and patch RTSP to create RDT conversations

svn path=/trunk/; revision=13431
2005-02-19 22:43:38 +00:00
Ronnie Sahlberg 99507223d9 usage of tcp_dissect_pdu is broken
comment it out to stop it from dumping core.
jxta people will have to fix this properly later.



svn path=/trunk/; revision=13426
2005-02-18 21:19:01 +00:00
Luis Ontanon 1e8a726aad do not prototype capture_eth() unless capture.h has being included
svn path=/trunk/; revision=13425
2005-02-18 20:19:52 +00:00
Ronnie Sahlberg 84f16e153c minor prettification
svn path=/trunk/; revision=13421
2005-02-17 20:56:47 +00:00
Ronnie Sahlberg 93e2089ed2 pass lun (and status) to scsi subdissector so we can filter
on scsi.lun   and prettify the summary line a bit.

ndmp still needs some work to track luns between commands
and fcp needs verification it works for volumesetaddressing.



svn path=/trunk/; revision=13420
2005-02-17 12:07:45 +00:00
Anders Broman 60ffea9d7a Add some of the anytime operations.
svn path=/trunk/; revision=13418
2005-02-16 22:44:15 +00:00
Ronnie Sahlberg d525ccb6f9 preparations for autogenerated ms dcerpc interfaces
make it possible to prettify SIDs and control how and where their string representation should be shown in the summary line and the tree
similar to how counted_strings prettification can be controlled


svn path=/trunk/; revision=13413
2005-02-16 11:31:56 +00:00
Ronnie Sahlberg 8851ebc541 mark the frame opened/closed fields for policy handles as GENERATED fields
svn path=/trunk/; revision=13412
2005-02-16 10:25:00 +00:00
Ronnie Sahlberg 237a5e197c add simple check that if a hf_rename field has not been referenced by the idl/cnf files then it is likely the conformance file has become stale and needs updating. abort with an error message.
svn path=/trunk/; revision=13411
2005-02-16 10:11:26 +00:00
Ronnie Sahlberg 1d8e70b969 add extra sanity check.
dont match a request with a reply that came earlier in the trace or SRT will
look funny :-)



svn path=/trunk/; revision=13409
2005-02-16 00:19:52 +00:00
Ronnie Sahlberg e8a4830bad new protocol from Giles Scott : Retix spanning tree protocol
svn path=/trunk/; revision=13408
2005-02-15 21:01:51 +00:00
Guy Harris 17f296c66f Add the missing packet-dcerpc-budb.h to the list of header files, so it
goes into the source tarball.

svn path=/trunk/; revision=13405
2005-02-15 01:42:39 +00:00
Guy Harris bfb29e9e84 Fix some compiler warnings (at least one of which is for a real problem).
svn path=/trunk/; revision=13404
2005-02-14 22:07:26 +00:00
Guy Harris 6616a3770c Make the "maintainer-clean" rules get rid of some additional generated
files.  Do this with GENERATED_HEADER_FILES, GENERATED_C_FILES, and
GENERATED_FILES macros in Makefile.common files, along the lines of what
wiretap/Makefile.common has.

Clean up "*~" files with "make clean" rather than only "make distclean"
in some additional places.

Add "maintainer-clean" rules to the Makefile.nmake files, paralelling
the ones in the automake-generated Makefile.in files, using the
GENERATED_FILES macros from Makefile.common files.  In some cases, move
the cleanup of files from "make distclean" to "make maintainer-clean",
and in other cases, put in a comment indicating why we're not doing that
(because some files that are distributed in the source tarballs, namely
Flex output, were built with a UN*X Flex and won't compile on Windows,
so we get rid of them with "make distclean" so you can clean up stuff
that *has* to be re-generated for Windows).

Clean up some *CLEANFILES definitions - get rid of ones that no longer
apply as files were moved or that add to the definition a name that's
already there.

svn path=/trunk/; revision=13402
2005-02-14 20:33:57 +00:00
Ronnie Sahlberg b4b5a4776f add machinegenerated full dissector for dcedfs BUDB protocol
svn path=/trunk/; revision=13401
2005-02-14 19:56:11 +00:00
Ronnie Sahlberg 48ffe7c894 make idl-lite compiler handle varying arrays
svn path=/trunk/; revision=13400
2005-02-14 19:46:03 +00:00
Ronnie Sahlberg 1c644d6ff7 add support for varying arrays
svn path=/trunk/; revision=13399
2005-02-14 19:43:34 +00:00
Ronnie Sahlberg 9378b4f6b4 in sack options only look for tcp session metadata if both tcp_analysis and tcp_relative preferences are set. relative depends on analysis
svn path=/trunk/; revision=13398
2005-02-14 19:34:59 +00:00
Anders Broman f687d089de Add some more V3 opcodes
svn path=/trunk/; revision=13396
2005-02-14 16:20:58 +00:00
Anders Broman f19ce95547 From :Tim Endean correct conditions for a while loop.
svn path=/trunk/; revision=13395
2005-02-14 08:21:14 +00:00
Luis Ontanon 1704803382 From Venna, Nagarjuna:
add support for RTCP-XR as specified in RFC 3611 

svn path=/trunk/; revision=13390
2005-02-13 03:41:44 +00:00
Anders Broman d685e466d9 Add a part of the previous patch that didn't apply.
svn path=/trunk/; revision=13388
2005-02-12 21:36:56 +00:00
Anders Broman df00c9604f GMM/SM:
- Dissect detach_type now correctly ( fixed by Miklos Szurdi )
   - Dissect timer correctly ( fixed by Miklos Szurdi )
   - Update SM causes for Release 6 ( Miklos Szurdi )
   - Update service_type for Release 6 ( Miklos Szurdi )
   - Rearange pco code like Guy Harris has suggested ( Guy Harris )
   - reimplement dissection of IPv4 and IPv6 addresses
   - Fix offset in pdp_addr
   - Fix offset in Traffic Flow Template (tft

svn path=/trunk/; revision=13387
2005-02-12 21:35:01 +00:00
Anders Broman 37a96cbad0 From Rene Pilz :
BSSGP:
   - Does not dissect the LLC-PDU twice

LLC:
- Add CRC calculation to differ between ciphered and non-ciphered packets without taking care about the encryption bit.
This solves crashes when the option "ignore ciphere bit" was activated


GMM/SM:
   - Dissect detach_type now correctly ( fixed by Miklos Szurdi )
   - Dissect timer correctly ( fixed by Miklos Szurdi )
   - Update SM causes for Release 6 ( Miklos Szurdi )
   - Update service_type for Release 6 ( Miklos Szurdi )
   - Rearange pco code like Guy Harris has suggested ( Guy Harris )
   - reimplement dissection of IPv4 and IPv6 addresses
   - Fix offset in pdp_addr
   - Fix offset in Traffic Flow Template (tft)

svn path=/trunk/; revision=13386
2005-02-12 21:20:38 +00:00
Anders Broman e42caa3d55 From Rene Pilz :
BSSGP:
   - Does not dissect the LLC-PDU twice

LLC:
- Add CRC calculation to differ between ciphered and non-ciphered packets without taking care about the encryption bit.
This solves crashes when the option "ignore ciphere bit" was activated


GMM/SM:
   - Dissect detach_type now correctly ( fixed by Miklos Szurdi )
   - Dissect timer correctly ( fixed by Miklos Szurdi )
   - Update SM causes for Release 6 ( Miklos Szurdi )
   - Update service_type for Release 6 ( Miklos Szurdi )
   - Rearange pco code like Guy Harris has suggested ( Guy Harris )
   - reimplement dissection of IPv4 and IPv6 addresses
   - Fix offset in pdp_addr
   - Fix offset in Traffic Flow Template (tft)

svn path=/trunk/; revision=13385
2005-02-12 21:20:01 +00:00
Anders Broman 00d977fa41 Dissect Return error and some more operationcodes.
svn path=/trunk/; revision=13384
2005-02-11 22:44:09 +00:00
Gerald Combs 4acd84cd85 From Nicolas Dichtel via Vincent Jardin:
Print a couple of missing fields.

svn path=/trunk/; revision=13379
2005-02-10 16:24:12 +00:00
Guy Harris a82419745d Add a hack to set "reversed" and "circuit" in code paths where it wasn't
getting set.  The hack needs to be replaced by code that does the right
thing.

Fix indentation.

svn path=/trunk/; revision=13374
2005-02-10 08:07:44 +00:00
Guy Harris 5ae67eb010 Remove an extra /*, some unused variables, and an unneeded include (INAP
currently has no taps).

svn path=/trunk/; revision=13371
2005-02-10 03:19:59 +00:00
Lars Roland 338bda08bd clean up makefiles.
especially /trunk/Makefile.nmake doesn't have to include
/trunk/epan/Makefile.common anymore.

svn path=/trunk/; revision=13368
2005-02-10 01:26:19 +00:00
Lars Roland ec9ca01616 Move the following files from /trunk to /trunk/epan:
asn1.[ch]
follow.[ch]
ptvcursor.[ch]
reassemble.[ch]
xmlstub.[ch]

fix #include statements accordingly.

svn path=/trunk/; revision=13366
2005-02-09 23:38:00 +00:00
Anders Broman e8f8e851c0 From Tim Endean: INAP dissector.
svn path=/trunk/; revision=13364
2005-02-09 22:35:49 +00:00
Anders Broman 60e1e4cd04 Fix dissection of some opcodes etc.
svn path=/trunk/; revision=13361
2005-02-09 21:55:55 +00:00