Commit Graph

5322 Commits

Author SHA1 Message Date
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
Guy Harris cedbe93a26 Only say "IPv6" once in the Info column for "no next header" packets.
svn path=/trunk/; revision=5363
2002-05-02 11:52:52 +00:00
Guy Harris 50e7338c51 From Joerg Mayer:
Prefer IEEE entries over CaveBear entries, as the former list
	seems to be the better maintained one.

svn path=/trunk/; revision=5362
2002-05-02 11:07:47 +00:00
Guy Harris 8245e425ff From Joerg Mayer: flag unused arguments as such.
svn path=/trunk/; revision=5361
2002-05-02 11:05:44 +00:00
Guy Harris a2de5f613b From Joerg Mayer: flag unused arguments as such.
svn path=/trunk/; revision=5360
2002-05-02 10:59:37 +00:00
Guy Harris b41c5cf529 Put the protocol version into the ICQ v2/v3/v4 tree.
svn path=/trunk/; revision=5359
2002-05-02 10:53:03 +00:00
Guy Harris 0949b2667c From Joerg Mayer: get rid of some unused arguments.
Put a minimal protocol tree in for ICQ v2, v3, and v4.

Add some length checks.

Properly handle the captured and the actual size of the ICQ packet.

svn path=/trunk/; revision=5358
2002-05-02 10:46:23 +00:00
Guy Harris 8c050e6851 From Joerg Mayer: mark unused arguments as such.
Add a check in "dissect_hello_restart_clv()" that the length of the TLV
is correct.

Use "val_to_str()" to get the name of the adjacency state in
"dissect_hello_ptp_adj_clv()".

svn path=/trunk/; revision=5357
2002-05-02 10:13:56 +00:00
Guy Harris 2e44d10e3e Make all routines not used outside this module static.
Get rid of some unused arguments.

Pass the tree argument, not the item argument, to "proto_tree_add"
routines.

svn path=/trunk/; revision=5356
2002-05-02 09:52:20 +00:00
Guy Harris eb3a7f1f5e From Joerg Mayer: get rid of an unused argument.
svn path=/trunk/; revision=5355
2002-05-02 09:34:33 +00:00
Guy Harris b883ca4127 From Joerg Mayer: get rid of unused arguments.
Fix the spelling of "Reserved".

Use "proto_item_append_text()" when dissecting EIGRP TLVs, so they don't
have to put in name of the TLV into the top-level item for the TLV, they
can just append to the name that's already there.

svn path=/trunk/; revision=5354
2002-05-02 09:28:43 +00:00
Guy Harris 4eac41df60 Handle the "no next header" next header value specially - put into the
Info column information about the non-final headers seen in the packet
(or leave the information put in there by the AH dissector alone, if
there were AH's), or, if none were seen, just mark it as a "no next
header" packet, and do that in the code used if there's no match for the
next header value in the protocol table, rather than registering a
dissector for "no next header", which also means we'll dissect the
payload as data if there is any.

Use -1, not "tvb_reported_length_remaining()", when making a subset
tvbuff that runs to the end of the parent tvbuff.

svn path=/trunk/; revision=5353
2002-05-02 08:55:52 +00:00
Guy Harris c6266da2d7 Fix a comment.
svn path=/trunk/; revision=5352
2002-05-02 08:51:47 +00:00
Ronnie Sahlberg aec8996522 Added LSA functions 0x38 and 0x3b. These were the two last LSA functions and now
all functions described in lsarpc.idl had been implemented.

svn path=/trunk/; revision=5351
2002-05-02 08:47:23 +00:00