Commit Graph

5335 Commits

Author SHA1 Message Date
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
Guy Harris 16d52f4f29 From Joerg Mayer: mark unused arguments as such.
svn path=/trunk/; revision=5380
2002-05-04 09:05:44 +00:00
Richard Sharpe e626714c31 Add the packet len to the protocol tree as well, since it is often not visible in the summary display.
svn path=/trunk/; revision=5379
2002-05-04 02:54:48 +00:00
Guy Harris 71f8208bf9 From Didieer Gautheron:
Don't show progress bar for quick "Find Frame" searches
	Add "Find Next" and "Find Previous" to repeat searches

Add documentation for "Find Next" and "Find Previous".

svn path=/trunk/; revision=5378
2002-05-03 21:55:15 +00:00
Guy Harris 7aba39031e From Didier Gautheron: add a "frame.marked" hidden field, set if the
frame is marked, so that you can use Find Frame to find the next marked
frame, and can filter the display to show only marked frames.

Update the documentation to note that "frame.marked" is set on marked
frames.

svn path=/trunk/; revision=5377
2002-05-03 21:38:20 +00:00
Guy Harris 04ad5f17ea From Didier Gautheron:
afp :
	more calls.
    asp :
	move release transaction to atp.
	dissect asp call.
	fix a bug with transaction handling (conversation +tid are not
	enough as key ).
    atp :
	deal with one packet transaction without ATP_EOM.
    dsi:
	safeguard against overflow for unreassembled packet.
	more flags decoded.

Update the "packet-atalk.c" comment to reflect all the protocols in it.

svn path=/trunk/; revision=5376
2002-05-03 21:25:43 +00:00
Nathan Neulinger 185fb53e72 fix field names, break down flood and trace control packets, other cosmetics
svn path=/trunk/; revision=5375
2002-05-03 20:34:14 +00:00
Nathan Neulinger 84d448e702 split opnums out onto separate tree
svn path=/trunk/; revision=5374
2002-05-03 19:47:09 +00:00
Nathan Neulinger 3fb5815bb4 added dissection of various query, report, admin operations
svn path=/trunk/; revision=5373
2002-05-03 19:31:02 +00:00
Nathan Neulinger c76c6580bc added full copy of protocol header, small updates
svn path=/trunk/; revision=5372
2002-05-03 16:23:25 +00:00
Nathan Neulinger 699de0ebbc Add initial support for udp packets of the Distributed Checksum Clearhouse protocol
svn path=/trunk/; revision=5371
2002-05-03 15:50:11 +00:00
Ronnie Sahlberg e6b32ff74a Added some new discovered names for some NETLOGON functions
svn path=/trunk/; revision=5370
2002-05-03 11:16:55 +00:00
Guy Harris 4df4388b91 Make the filter list combo box case-sensitive, as filter expressions are
case-sensitive.

Squelch a compiler complaint.

svn path=/trunk/; revision=5369
2002-05-03 03:30:15 +00:00
Guy Harris 433e8801a1 Clean up the handling of filter strings:
have "filter_packets()" make a copy of the filter string handed
	to it, as it may save the filter string in the "capture_file"
	structure, and the caller of "filter_packets()" shouldn't have
	to worry about the string it passed to "filter_packets()" being
	stashed away somewhere so that it can't just free that string or
	change it;

	have callers of "filter_packets()" free up the string they
	handed to it, if the string was allocated and they're done with
	it;

	plug some memory leaks in "match_selected_cb_do()".

Check for an illegal "action" argument being passed to
"match_selected_cb_do()".

Move some keys out of "keys.h" into "gtk/main.c", as they're only used
in "gtk/main.c".

Make the pointer to the filter list a data item for the combo box, as
it's a copy of the list of strings for the combo box, rather than
attaching it to the widgets that activate the filter (a pointer to the
combo box *itself* is a data item for those widgets).

In "filter_activate_cb()", make a copy of the text from the text entry
field as soon as we fetch it, and use that copy.  Free that copy if
we didn't add the filter to the filter list.

Don't make a copy of the entire filter list and use that to set the
combo box's list of items - just use the list itself.  Also, when the
list is changed, make the new value the data for the combo box (the list
pointer will actually not be changed, because we happen to be using
"g_list_append()", but let's not rely on that).

svn path=/trunk/; revision=5368
2002-05-03 03:24:47 +00:00
Guy Harris 0705d7ff0b Remove some no-longer-applicable XXX comments.
When you click "OK" on the dialog box, destroy the dialog box *before*
activating any text widget into which we've stuffed the filter
expression, so we don't get the dialog box destroyed out from under us
before we try to destroy it ourselves.

svn path=/trunk/; revision=5367
2002-05-02 23:49:21 +00:00
Guy Harris f7724391aa From Joerg Mayer: get rid of some unused variables and arguments, and
mark other unused arguments as such.

svn path=/trunk/; revision=5366
2002-05-02 21:47:47 +00:00
Guy Harris f7570d4440 From Joerg Mayer: get rid of unused arguments, and "#if" out an unused
stub routine.

svn path=/trunk/; revision=5365
2002-05-02 19:39:05 +00:00
Guy Harris 5d7d5bb2d0 From Joerg Mayer: get rid of unused arguments.
svn path=/trunk/; revision=5364
2002-05-02 19:32:19 +00:00