Commit Graph

5352 Commits

Author SHA1 Message Date
Gilbert Ramirez 41cc7f0707 Merge the work in Novell_NCP_branch into the mainline code.
A little work still needs to be done on the new NCP dissector -- make
some of the COL_INFO texts more useful, handle a Unicode issue, and
modify some of the cases that use "request conditions".
But the NCP dissector as it stands is very usable now.

Note: I didn't merge in the PROTO_LENGTH_UNTIL_END macro... I wanted
to think about the various possible macros and review an email conversation
I had with Guy on the subject.

svn path=/trunk/; revision=5432
2002-05-09 23:50:34 +00:00
Ronnie Sahlberg 9625720a39 Added parsing of PORTMAP GETPORT functions.
When we see PRTOMAP GETPORT calls for UDP, make sure all further UDP packets to  or from
this port goes to the ONC-RPC dissector regardless of the port on the other side.

We need this because if there is ONC-RPC traffic going between the ONC-RPC Program port to a port which has a normal ethereal dissector, ethereal would dissect the traffic as the protocol associated with the other port instead.

svn path=/trunk/; revision=5430
2002-05-09 12:10:06 +00:00
Guy Harris a0c1d24f5f Process address lengths according to the X.25 spec.
Put in a comment noting that the address data should, if the A bit is
set, be processed according to the spec.

Label addresses for registration requests and confirmations
appropriately.

svn path=/trunk/; revision=5429
2002-05-09 11:18:47 +00:00
Guy Harris 5f3ec8a741 Put in a comment noting that the previous change came from a real
capture, so if an IDL disagrees, the IDL is wrong.

svn path=/trunk/; revision=5428
2002-05-09 09:54:13 +00:00
Guy Harris 94f3f3479e As Ronnie Sahlberg notes, the problem is that the QueryDomainInfo
response starts with a UNIQUE pointer to a DOMAIN_INFO, not with a REF
pointer to a DOMAIN_INFO - and also not with a UNIQUE pointer to a
DOMAIN_INFO REF pointer; fix the code to match that.

svn path=/trunk/; revision=5427
2002-05-09 09:49:34 +00:00
Guy Harris c5312df095 In at least one capture, a QueryDomainInfo response starts with what is,
I guess, a UNIQUE pointer to a DOMAIN_INFO REF pointer; dissect it as
such.

svn path=/trunk/; revision=5426
2002-05-09 08:36:45 +00:00
Guy Harris 6495ee6eef Fix another place where the heuristic dissector was checking data before
it new it was available.

Fix some comments.

svn path=/trunk/; revision=5425
2002-05-09 08:27:51 +00:00
Guy Harris c9c26fce69 In the heuristic dissector, check to make sure the data being looked at
is available before looking at it, so we don't throw an exception before
we conclude whether the packet is, or isn't, one of ours.

svn path=/trunk/; revision=5424
2002-05-09 07:42:07 +00:00
Guy Harris cbad622d0e From Martin Thomas: handle address lengths based on TOA bit in X.25.
svn path=/trunk/; revision=5423
2002-05-09 05:49:28 +00:00
Tim Potter e932bc78a9 Added a routine to dissect a DOS error code. These are used in the spoolss
(also registry and srvsvc?) pipe dissectors.

Also added some helper routines for decoding a range of uint8s.  These map
nicely to the dissect_{dcerpc,ndr}_foo() format with the addition of a
length parameter, but aren't really part of the NDR specification and are
probably only going to be used in the NT dcerpc dissectors.

svn path=/trunk/; revision=5421
2002-05-09 02:44:22 +00:00
Guy Harris 904ecac64a From Didier Gautheron:
DSI and ASP updates to better handle addresses in replies.

	Dissect DSI "open session" and "attention" messages.

svn path=/trunk/; revision=5420
2002-05-08 23:46:34 +00:00
Guy Harris 4f82062233 From Joerg Mayer:
autoconf 2.53 creates directories named autom4te.cache
        Add them to .cvsignore

svn path=/trunk/; revision=5419
2002-05-08 22:24:03 +00:00
Guy Harris 9c6a759e7e From Stefan Wenk: SIP heuristic dissector.
svn path=/trunk/; revision=5418
2002-05-08 20:29:47 +00:00
Ronnie Sahlberg 5b8ad79cb6 Added option to match async NLM MSG with RES packets, to print which MSG packet matches which RES packet and v.v as well as (in RES packets) how long the call took to execute.
svn path=/trunk/; revision=5417
2002-05-08 12:51:45 +00:00
Guy Harris 7181a4d327 From Kan Sasaki: VSA decoding and other changes to RADIUS.
svn path=/trunk/; revision=5416
2002-05-08 08:13:08 +00:00
Tim Potter b4248be92d Added constant and value_string for invalid security descriptor owner
error.

svn path=/trunk/; revision=5415
2002-05-08 05:15:11 +00:00
Guy Harris 95a095a1c4 From Chenjiang Hu: use the correct offset when fetching unreserved
bandwidth values.

svn path=/trunk/; revision=5414
2002-05-07 18:52:27 +00:00
Ronnie Sahlberg dad31088e2 Several bugfixes for SAMR
svn path=/trunk/; revision=5413
2002-05-07 11:26:46 +00:00
Ronnie Sahlberg 04158638ae Added extra check in the function that parses NDR pointers.
When the representation for a pointer type gets dissected, the dissector
is actually called twice. Once with conformant_run==1 and once ==0.
The idea is that when conformant_run is ==1, the ONLY bytes that will be
dissected and would be the array structure preceeding the actual data.
And the normal data and content will be dissected when conformant_run ==0.
This is to handle the case properly when conformant arrays are embedded inside
aggregated types, in which case there will be other data inserted between
these array control data, and the array content.

The check that is added will assert that no other data is actually eaten
for conformant_run==1 than just this data.
This will help debugging dcerpc dissectors.

svn path=/trunk/; revision=5412
2002-05-07 10:07:55 +00:00
Guy Harris d471f94388 Traffic with a traffic type of 0x06 is Signalling AAL traffic, including
non-Q.2931 SSCOP traffic; change comments to reflect that.

svn path=/trunk/; revision=5411
2002-05-07 06:25:30 +00:00
Tim Potter ea89f9f772 Fix up item lengths for policy handle subtree and subitems under it.
svn path=/trunk/; revision=5410
2002-05-07 00:35:14 +00:00
Guy Harris c23a824fa5 Remove the unused "offset_saved" variable, as per the changes to
"ethereal_gen.py" not to generate the line setting it.

svn path=/trunk/; revision=5409
2002-05-06 21:53:33 +00:00
Guy Harris 937c162036 Get rid of "template_main_dissector_switch_msgtype_end", and get rid of
the unused "offset_saved" variable, as per comments by Frank Singleton.

svn path=/trunk/; revision=5408
2002-05-06 21:50:28 +00:00
Guy Harris 1d97fc6d8c From Frank Singleton: fix for the handling of enum types.
svn path=/trunk/; revision=5407
2002-05-06 21:41:07 +00:00
Guy Harris 76e8a255f6 Note that not all attribute values are text strings.
svn path=/trunk/; revision=5406
2002-05-06 02:12:36 +00:00
Guy Harris 8d1b21c57c Conversations aren't being used, so don't bother including
<epan/conversation.h>.

svn path=/trunk/; revision=5405
2002-05-06 01:45:58 +00:00
Guy Harris 1bff9074ef Note a problem with "GETSTR".
svn path=/trunk/; revision=5404
2002-05-06 01:25:45 +00:00
Guy Harris 08b87db529 Note in comments that we should perhaps get all the information for
RADIUS attributes from files like the FreeRadius dictionary files,
rather than compiling them into the RADIUS dissector.

svn path=/trunk/; revision=5403
2002-05-06 00:58:28 +00:00
Guy Harris 87b92007d1 Fix a typo in a comment.
When displaying text strings, show escapes in octal (as is done C)
rather than decimal.

Display RADIUS_BINSTRING values as strings of hex digits rather than as
text strings.

Make some items that apparently *are* text strings RADIUS_STRING rather
than RADIUS_BINSTRING.

The return value of "rdconvertbufftostr()" is never used; get rid of it.

svn path=/trunk/; revision=5402
2002-05-06 00:49:19 +00:00
Tim Potter afa61bda6e Remove unused function.
Dissect a status code at the end of GetAliasMem reply instead of uint32.

svn path=/trunk/; revision=5401
2002-05-05 23:48:19 +00:00
Guy Harris 3355fdf0f3 Fix the declaration of pointers to "tcp_dissect_pdus()".
svn path=/trunk/; revision=5400
2002-05-05 22:30:39 +00:00
Guy Harris ded6d3e2f4 Improve a comment.
svn path=/trunk/; revision=5399
2002-05-05 22:25:14 +00:00
Guy Harris 133f4e981f Use "gint32" rather than "int32_t"; not all platforms define the later,
but GLib defines the former.

svn path=/trunk/; revision=5398
2002-05-05 22:20:11 +00:00
Guy Harris 33e80cec64 Have "tvb_ensure_length_remaining()" directly call
"compute_offset_length()", and throw the exception it returns, rather
than calling "tvb_length_remaining()" and throw BoundsError if it
returns -1; this allows us to add additional exceptions without having
to change "tvb_ensure_length_remaining()".

Make "_tvb_get_nstringz()" static, as it's not used outside "tvbuff.c".

svn path=/trunk/; revision=5397
2002-05-05 21:07:52 +00:00
Guy Harris d612dab6df Make "tvb_ensure_length_remaining()" return a "guint" - it can't return
a negative value.

Use "tvb_ensure_length_remaining()" in "tcp_dissect_pdus()", rather than
checking the return value of "tvb_length_remaining()" ourselves, and
make various variables and parameters in it "guint" as appropriate.

svn path=/trunk/; revision=5396
2002-05-05 00:57:59 +00:00
Guy Harris a6e169fc27 Put the pointer to "tcp_dissect_pdus()" in the function pointer table
where the pointer to "dissect_data()" was in 0.9.3; the pointer to
"dissect_data()" wasn't initialized in 0.9.3 (as the function wasn't
exported - you call it through a handle), so no plugin should have been
using it, and putting the pointer to "tcp_dissect_pdus()" in its place
means the structure offsets of all function pointers after it will be
the same in 0.9.3 and the next release, preserving binary compatibility
for plugins.

svn path=/trunk/; revision=5395
2002-05-05 00:34:12 +00:00
Guy Harris eb70c97a9b Make a "tcp_dissect_pdus()" with the standard loop for a TCP segment,
extracting PDUs from it and possibly doing reassembly.  Make the COPS,
DNS, DSI, Gryphon, and SCCP dissectors use it.

Add "set_actual_length()", "tcp_dissect_pdus()",
"decode_boolean_bitfield()", "decode_numeric_bitfield()", and
"decode_enumerated_bitfield()" to the list of routines available to
dissectors on platforms where routines in the main program aren't
available to dynamically-loaded code.

Declare routines in "to_str.h" as "extern"; as I remember, that's
necessary to allow the "decode_XXX_bitfield()" routines declared therein
to be made available to plugins as per the above.

Note that new exported routines should be added to the end of the table
if that's the only change being made to the table.

Create a new "plugin_api_decls.h" header file, used to declare both the
"p_" variables and the "p_" structure members in the routine-exporting
mechanism; this reduces the number of places you have to change to
change the list of exported routines.

svn path=/trunk/; revision=5394
2002-05-05 00:16:38 +00:00
Guy Harris 82e11eb8ee From Didier Gautheron: put "frame.marked" into the "Frame" subtree, not
into the top-level tree.

svn path=/trunk/; revision=5393
2002-05-04 20:57:18 +00:00
Guy Harris 7b3bbbf5f6 From Joerg Mayer: get rid of "-Wno-unused".
svn path=/trunk/; revision=5392
2002-05-04 11:04:44 +00:00
Guy Harris c54e2fd1d5 Update the dissectors (by hand) to match the changes to
"ethereal_gen.py".

svn path=/trunk/; revision=5391
2002-05-04 11:03:18 +00:00
Guy Harris 12ec058306 From Joerg Mayer: mark unused arguments as such.
svn path=/trunk/; revision=5390
2002-05-04 10:41:16 +00:00
Guy Harris a10cd9f934 In the generated code, mark possibly-unused arguments as such.
svn path=/trunk/; revision=5389
2002-05-04 10:29:25 +00:00
Guy Harris 6744433452 From Joerg Mayer: mark possibly-unused arguments as unused.
svn path=/trunk/; revision=5388
2002-05-04 10:19:20 +00:00
Guy Harris c942bebb4c From Joerg Mayer: get rid of an unused argument, and flag another as
unused.

svn path=/trunk/; revision=5387
2002-05-04 10:16:12 +00:00
Guy Harris b4df834eb6 Check whether "fflush()" succeeds, and clean up and return an error if
it fails.

"wtap_dump_close()" allows you to pass a null pointer as the second
argument, so an error value isn't returned; use that in the cleanup
routine, as we don't care whether the closes fail.

svn path=/trunk/; revision=5386
2002-05-04 10:10:42 +00:00
Guy Harris 82f364ab1a Fix capture-file-specific "close output" routines to check whether the
"err" argument is null and return an error code through that argument
only if it isn't, to match what "wtap_dump_close()", which calls those
routines, does.

Put the NetXRay dump routines in order by version number.

svn path=/trunk/; revision=5385
2002-05-04 10:00:18 +00:00
Guy Harris 2be776e06c Mark unused arguments as such.
svn path=/trunk/; revision=5384
2002-05-04 09:57:29 +00:00
Guy Harris d1f7799520 From Joerg Mayer: mark unused arguments as such.
svn path=/trunk/; revision=5383
2002-05-04 09:20:28 +00:00
Guy Harris 5879955477 From Joerg Mayer: mark an unused argument as such.
svn path=/trunk/; revision=5382
2002-05-04 09:19:09 +00:00
Guy Harris 6da70104fa From Joerg Mayer: get rid of some unused arguments, and mark others as
unused.

Put in a comment to note that if we fail to open the interface either as
a device or as a pipe, we report the error from the failed
"pcap_open_live()" (which explains why "pipe_open_live()" doesn't return
an error string).

svn path=/trunk/; revision=5381
2002-05-04 09:11:28 +00:00