Commit Graph

5132 Commits

Author SHA1 Message Date
Guy Harris 7efa2e4941 Get rid of the unused "pinfo" argument to "dissect_osi_options()".
svn path=/trunk/; revision=5110
2002-04-07 21:54:48 +00:00
Guy Harris 4fb8509ac2 Get rid of an unused variable.
svn path=/trunk/; revision=5109
2002-04-07 21:47:50 +00:00
Guy Harris 5bb4bf06a9 Gerald says the padding has values that don't look like FCSes; note that
in the comment.

svn path=/trunk/; revision=5108
2002-04-07 21:44:55 +00:00
Guy Harris ae54ef681c Make the end-of-packet padding a per-capture-file property.
Read in the entire packet, including the padding, and just tell our
caller about the non-padding part; that avoids doing a "file_seek()"
("fseek()"s are inefficient on some platforms, as they flush the
standard I/O buffers and do an "lseek()"), and would also let us supply
the padding to the caller if it turns out it's an FCS rather than
padding.

svn path=/trunk/; revision=5107
2002-04-07 21:29:01 +00:00
Gerald Combs f0e2b1a83c Add support for Sniffer 4.6 wireless captures.
svn path=/trunk/; revision=5106
2002-04-07 19:10:10 +00:00
Guy Harris 815093d2ac Get rid of the global variable referring to the current protocol tree;
pass it as a parameter, instead.

svn path=/trunk/; revision=5105
2002-04-05 20:04:52 +00:00
Guy Harris d0bbf74bf0 Give all subtrees an ett_ value.
Clean up some case statements - instead of having most branches do
"return 0", and the default branch just break, with code after the case
statement handing that case and then returning 0, pull the code after
the case statement into the default case, and have the other cases just
break, with the "return 0" after the case statement.

Initialize some ett_ values that weren't getting initialized.

svn path=/trunk/; revision=5104
2002-04-05 10:08:24 +00:00
Guy Harris 7bbd5cf563 Give the top-level tree for concatenated PDUs an ett_ value of ett_wtp.
Create a protocol tree item for the fixed part of the WTP header.

Don't assign the value of "proto_tree_add_XXX" routines to a variable if
you're not going to use the value.

svn path=/trunk/; revision=5103
2002-04-05 09:29:15 +00:00
Tim Potter 3c2ed458ba Decode some bits of the PRINTER_INFO_2 structure that we were missing
before.

Display which info level a getprinter response contains in COL_INFO.

Fixed some bugs in dissecting devicemodes - the device name and form name
live in a 64-byte buffer instead of a NULL terminated unicode string.

svn path=/trunk/; revision=5102
2002-04-05 03:07:28 +00:00
Guy Harris b74f1ac1ce Add ett_ values for subtrees.
svn path=/trunk/; revision=5101
2002-04-04 23:54:55 +00:00
Guy Harris f7dbfdd274 From Mark Burton: add an ett_iscsi ett_ value for the top-level tree
item.

svn path=/trunk/; revision=5100
2002-04-04 23:24:09 +00:00
Guy Harris 30bb7330d3 Put in the RFCs for RIPv1 and RIPv2.
Handle an address family of 0; that means that the address wasn't
specified in the request, which is used for a "send me the whole routing
table" request.

Replace some "proto_tree_add_XXX" calls with "proto_tree_add_item"
calls.

Use FALSE, rather than TRUE, as the byte order argument in one
"proto_tree_add_item" call, for consistency with other calls; the field
is a string, so the byte order doesn't matter.

svn path=/trunk/; revision=5099
2002-04-04 23:20:33 +00:00
Guy Harris 3cf1b5ffa5 Before putting an item into a protocol tree, make sure the item above
it, if it's going to be displayed (i.e., if it's not the root node), has
had an ett_ value associated with it.

svn path=/trunk/; revision=5098
2002-04-04 20:23:50 +00:00
Guy Harris 9f8e93226c Compile fix from Mark Burton.
svn path=/trunk/; revision=5097
2002-04-04 10:20:24 +00:00
Guy Harris c8fdc30fe2 Make "dissect_data()" static - it's only called through handles.
svn path=/trunk/; revision=5096
2002-04-04 05:16:15 +00:00
Gilbert Ramirez dfd6b4fcf0 Add _U_ to unused argument.
svn path=/trunk/; revision=5095
2002-04-04 03:52:47 +00:00
Gilbert Ramirez 3d7d008703 Remove unused variable.
svn path=/trunk/; revision=5094
2002-04-04 03:51:39 +00:00
Guy Harris 892df728ad Include "packet-smb-common.h" to get the declaration of
"dissect_nt_sec_desc()".

svn path=/trunk/; revision=5093
2002-04-04 00:56:06 +00:00
Tim Potter 94f9089c89 Decode PRINTER_INFO_1 and PRINTER_INFO_3 structures.
svn path=/trunk/; revision=5092
2002-04-03 23:32:23 +00:00
Guy Harris e66556f584 Use the reported length, not the captured length, when saying how many
bytes of FTP data there were in the frame.

Use -1 for the length in the top-level item for the FTP data.

svn path=/trunk/; revision=5091
2002-04-03 22:35:08 +00:00
Uwe Girlich 2ca7ff7848 Removed many senseless pinfo parameters in RPC dissection and the layers above.
svn path=/trunk/; revision=5090
2002-04-03 13:24:13 +00:00
Guy Harris 78216336d8 From Jeff Morriss: get rid of an unused function argument.
Use -1 rather than "tvb_length(tvb)" as the length for the top-level
protocol item.

Don't initialize "sccp_item" - it's not used if "tree" is null.

svn path=/trunk/; revision=5089
2002-04-02 22:42:11 +00:00
Guy Harris 9971cb529e From Tom Uijldert: comment out an unused function.
svn path=/trunk/; revision=5088
2002-04-02 20:16:19 +00:00
Uwe Girlich f675fc93c3 code cleanup: removed unused parameter
svn path=/trunk/; revision=5087
2002-04-02 06:29:48 +00:00
Uwe Girlich 73bd3782b6 code cleanup, removed unused parameters, inserted some _U_
svn path=/trunk/; revision=5086
2002-04-02 06:28:16 +00:00
Guy Harris e363ae0f77 Add in the neighbor probe messages (but without any dissection of the
Neighbors 2 message).

Get rid of the unused "hf_naddr" field.

svn path=/trunk/; revision=5085
2002-04-02 05:12:12 +00:00
Guy Harris 5f948e482c In the tree-printing code, we may be handed a leaf node, so don't
require that "fi->tree_type" be positive.

svn path=/trunk/; revision=5084
2002-04-02 05:07:36 +00:00
Guy Harris 590c3c0f8c Fix a typo.
svn path=/trunk/; revision=5083
2002-04-02 01:34:15 +00:00
Guy Harris 15fc29c820 Fix a bunch of bits of code that used "tvb_get_ntohl()" to fetch IP
addresses and then tried to compensate for that error using "htonl()"
(or didn't bother compensating, in some cases).

svn path=/trunk/; revision=5082
2002-04-02 01:32:46 +00:00
Guy Harris 49de302c84 Use "tvb_memcpy()", not "tvb_get_ptr()" followed by "memcpy()".
svn path=/trunk/; revision=5081
2002-04-02 01:32:11 +00:00
Guy Harris e6272e1605 Fix a call to "proto_tree_add_ipv4()" that was supposed to be a call to
"proto_tree_add_item()".

svn path=/trunk/; revision=5080
2002-04-02 01:28:14 +00:00
Guy Harris 0a05bfbeff Just use "proto_tree_add_item()" to add IP addresses - don't bother
copying to a variable and then using that.

svn path=/trunk/; revision=5079
2002-04-02 01:25:08 +00:00
Guy Harris 24f5a37e3f Get rid of unused macro.
svn path=/trunk/; revision=5078
2002-04-02 00:18:53 +00:00
Guy Harris 49d51f81e5 Get rid of declarations of routines and structures and function types
that we no longer use as of 0.9.0 (when we got rid of support for
non-tvbuffified dissectors).

svn path=/trunk/; revision=5077
2002-04-02 00:04:18 +00:00
Guy Harris 94a3e0ce9f Make some routines not used outside "packet-rpc.c" static.
svn path=/trunk/; revision=5076
2002-04-01 23:56:41 +00:00
Guy Harris 7f0c93cf5f Use "proto_tree_add_item()" to add IP addresses; that eliminates a bunch
of work *and* gets rid of the incorrect "convert from network to host
byte order and then byte-swap" code.

svn path=/trunk/; revision=5075
2002-04-01 22:40:20 +00:00
Guy Harris db3328892c Fix to decoding of the AUTHORIZE call, from Mike Frisch.
svn path=/trunk/; revision=5074
2002-04-01 22:30:34 +00:00
Guy Harris c0565b3fbe From Kikuchi Ayamura: include <ucd-snmp/ucd-snmp-config.h> to fix IRIX
compilation problems.

svn path=/trunk/; revision=5073
2002-04-01 22:00:00 +00:00
Guy Harris f681e6f92c Bug fix from Mike Frisch.
svn path=/trunk/; revision=5072
2002-04-01 21:17:27 +00:00
Guy Harris f969aba211 WebDAV support, and rewrite of the method-testing code to compute the
method length and use that in all comparisons, from Blair Cooper.

Fix the check for "M-" to check also whether there are at least two
characters in the line.

svn path=/trunk/; revision=5071
2002-04-01 21:12:31 +00:00
Guy Harris 3d6dc60340 From Andrew Feren: on Windows, in the drop-down list for the "Interface"
field in the "Capture Options" dialog, put the descriptive name of the
device in parentheses after the actual device path.

svn path=/trunk/; revision=5070
2002-04-01 21:09:59 +00:00
Guy Harris 8ae18ded80 From Andrew Feren: on Windows, in the drop-down list for the "Interface"
field in the "Capture Options" dialog, put the descriptive name of the
device in parentheses after the actual device path.

svn path=/trunk/; revision=5069
2002-04-01 03:55:44 +00:00
Guy Harris 5de2533f2d Start assigning ett_ values at 0, rather than 1; get rid of the reserved
ETT_NONE entry.

Initialize the "tree_type" field of a "field_info" structure to -1,
meaning "this has not been given a subtree".  Add checks before using
that field that it's in range.  That way, you have to create a subtree
before putting protocol tree items under another item.

We allocate the "tree_is_expanded" array when we've registered all
dissectors; there's no need to allocate it while we're registering
dissectors and, in fact, doing so means we leak memory (the memory for
the version we allocated while registering dissectors).

svn path=/trunk/; revision=5068
2002-04-01 02:00:53 +00:00
Guy Harris d1f2aaf8ac Get rid of ett_ values for options with no subtrees.
Show the names of the control characters being mapped by the async
control character map option.

Use "proto_item_add_subtree()" to establish a subtree, so that the ett_
value gets associated with it.  (Unfortunately, "proto_item" and
"proto_tree" are typedefs for the same type, so checks for use of one
when you should be using the other aren't done at compile time.)

Get rid of some extra blanks before colons.

svn path=/trunk/; revision=5067
2002-04-01 00:51:43 +00:00
Guy Harris f5c5669291 Get rid of unused arguments.
Use the "nb" argument to "redraw_hex_dump()", so we redraw the specified
byte view pane, rather than always redrawing the main window's byte view
pane (and never redrawing the byte view pane of additional packet
windows, so that the font for them doesn't change if you change the font
preference).

svn path=/trunk/; revision=5066
2002-03-31 23:11:04 +00:00
Guy Harris 48214be46f Get rid of an unused argument to "set_active_all()".
Mark as unused arguments that are now unused as a result of not passing
them to "set_active_all()".

svn path=/trunk/; revision=5065
2002-03-31 22:58:27 +00:00
Guy Harris d535c27d4a The variables in question are only used if old unused code is present.
Fix the #ifdef.

svn path=/trunk/; revision=5064
2002-03-31 22:50:34 +00:00
Guy Harris 2963d86afd (Conditionally) mark unused variables as such.
svn path=/trunk/; revision=5063
2002-03-31 22:43:47 +00:00
Guy Harris 7212bcc1e9 Mark unused arguments as such.
svn path=/trunk/; revision=5062
2002-03-31 22:43:03 +00:00
Guy Harris 57294d193a Mark unused variables with _U_ if they can't be eliminated.
Use the "optp" argument in more option dissectors, and set the name of
the option in the table entries for those options - and for one option
where that name *was* being used.

Get rid of unused variables.

svn path=/trunk/; revision=5061
2002-03-31 22:37:09 +00:00