Commit Graph

1203 Commits

Author SHA1 Message Date
Guy Harris 67c8764353 Add some length checks to the CHAP dissector.
Use %u, not %d, to display unsigned values.

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Fix the offset in some calls.

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

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

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

Fix indentation.

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

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



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

prevent from an endless loop, if payload_length is 0

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




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


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

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

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

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

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

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

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

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

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


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

make the EFS dissector autogenerated by idl2eth



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