aboutsummaryrefslogtreecommitdiffstats
path: root/packet-nfs.c
Commit message (Collapse)AuthorAgeFilesLines
* Labels must be followed by statements; GCC may let you get away withoutGuy Harris2001-06-191-2/+3
| | | | | | the statement, but MSVC++ doesn't. svn path=/trunk/; revision=3574
* NFS file handle analysing works now for kernel based NFS v3 servers ofUwe Girlich2001-06-181-12/+257
| | | | | | Linux 2.4.0 too. svn path=/trunk/; revision=3569
* From Joerg Mayer: explicitly fill in all members of aGuy Harris2001-06-181-201/+201
| | | | | | | "header_field_info" structure, including the ones that are later set by the routines to register fields. svn path=/trunk/; revision=3561
* There are no more old-style (non-tvbuffified) ONC RPC dissectors, so getGuy Harris2001-05-301-162/+162
| | | | | | | | | rid of support for them, and remove the "_tvb" from the end of the names of RPC type dissection routines. Update Gerald's e-mail address. svn path=/trunk/; revision=3477
* Tvbuffified NFS dissector, from Mike Frisch, plus some registered-fieldGuy Harris2001-05-301-1287/+1726
| | | | | | cleanups. svn path=/trunk/; revision=3476
* If you put an item into the protocol tree with "dissect_rpc_data()",Guy Harris2001-05-231-4/+4
| | | | | | it must be FT_BYTES, not FT_STRING. svn path=/trunk/; revision=3440
* Fixes to Lemon to get it to compile on platforms (such as some versionsGuy Harris2001-03-091-2/+2
| | | | | | | | of Tru64 UNIX) that define TRUE and FALSE. Fixes to some Tru64 compiler warnings. svn path=/trunk/; revision=3120
* Fix a decode problem with failed NFSv4 SETATTR operations.Gilbert Ramirez2001-03-061-3/+9
| | | | | | From Mike Frisch. svn path=/trunk/; revision=3109
* Update from Mike Frisch.Guy Harris2001-03-021-7/+34
| | | | svn path=/trunk/; revision=3095
* NFSv4 updates from Mike Frisch to fix some cosmetic issues whenGuy Harris2001-02-211-6/+42
| | | | | | displaying XDR arrays. svn path=/trunk/; revision=3065
* Updates from Mike Frisch.Guy Harris2001-02-131-9/+25
| | | | svn path=/trunk/; revision=3029
* Further NFSV4 updates from Mike Frisch.Guy Harris2001-02-091-331/+815
| | | | svn path=/trunk/; revision=3010
* Updates from Mike Frisch.Guy Harris2001-02-071-126/+238
| | | | svn path=/trunk/; revision=2998
* Allow dissectors of ONC RPC-based protocols to register themselvesGuy Harris2001-01-281-96/+123
| | | | | | | | | | | | | | | | | | | either with a table of old-style dissectors or a table of tvbuffified dissectors, and have the RPC dissector pass the appropriate arguments to the dissectors. Finish tvbuffifying the NLM dissector, getting rid of the last traces of old-style dissector code. In those routines in the NFS dissector that take new-style arguments (because they're called from the NLM dissector), make them take an offset as an argument, so they don't assume that they're handed a tvbuff starting at the stuff they're supposed to dissect, and make the versions that take old-style arguments construct a tvbuff and call the versions that take new-style arguments. Do the latter with the routines in "packet-rpc.c" as well. svn path=/trunk/; revision=2943
* Fix comments to reflect what a null function pointer in a "vsff" tableGuy Harris2001-01-181-6/+6
| | | | | | | | really means. Make the "XXX_proc" arrays static. svn path=/trunk/; revision=2920
* Ensure that all value_string arrays end in {0, NULL}. Dissectors got awayGilbert Ramirez2001-01-031-18/+19
| | | | | | | | | | | | | | with not terminating their arrays because they knew the limits of the value used to look up strings in the value_string array, but the dfilter_expr_dlg does not know these limits and must rely on the terminating {0, NULL} record. Also, in SNA fixed a bug in which a field should have been defined as FT_UINT8 but was defined as FT_BOOLEAN. In WTP, fixed a value string which had duplicate keys. svn path=/trunk/; revision=2817
* Have "proto_register_protocol()" build a list of data structures forGuy Harris2001-01-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | protocols, in addition to adding structures to the list of filterable fields. Give it an extra argument that specifies a "short name" for the protocol, for use in such places as pinfo->current_proto; the dialog box for constructing filters; the preferences tab for the protocol; and so on (although we're not yet using it in all those places). Make the preference name that appears in the preferences file and the command line for the DIAMETER protocol "diameter", not "Diameter"; the convention is that the name in question be all-lower-case. Make some routines and variables that aren't exported static. Update a comment in the ICP dissector to make it clear that the dissector won't see fragments other than the first fragment of a fragmented datagram. svn path=/trunk/; revision=2810
* NFS V4 support, from Mike Frisch.Guy Harris2000-12-011-5/+1769
| | | | svn path=/trunk/; revision=2725
* Move "bytes_to_str()" to "strutil.c" from "packet.c" - it's just aGuy Harris2000-11-131-4/+4
| | | | | | | | | | | | | | | | | | | string formatter, like "format_text()", and, as "tvbuff.c" now calls it (*vide infra*), we don't want to have to make "tvbuff.c" drag "packet.h" in just to declare "bytes_to_str()". It's now declared in "strutil.h", so include it in modules that use "bytes_to_str()" and weren't already including it. Add a "tvb_bytes_to_str()" wrapper that calls "tvb_get_ptr()" to get a pointer to a chunk of N bytes at a given offset in a tvbuff and then hands that chunk to "bytes_to_str()". Convert the code that was doing that to use "tvb_bytes_to_str()" instead (which caught what I suspect is a bug in the Q.2931 dissector, where it was handing an offset of 0 to "tvb_get_ptr()" - a cut-and-pasteo, I think). Tvbuffify the ARP dissector. svn path=/trunk/; revision=2634
* Don't set the text on a V2 READDIR entry if there's no entry.Guy Harris2000-08-271-2/+3
| | | | svn path=/trunk/; revision=2380
* Get rid of an unused variable.Guy Harris2000-08-151-2/+1
| | | | svn path=/trunk/; revision=2278
* Much cleaner tvb start code for file handle dissection.Uwe Girlich2000-08-141-12/+4
| | | | svn path=/trunk/; revision=2272
* Several new RPC dissecting function introduced. Interface toUwe Girlich2000-08-081-11/+11
| | | | | | existing functions changed. So NFS was also necessary to change. svn path=/trunk/; revision=2225
* Don't use "fd->pkt_len" when checking to see if you've run off the endGuy Harris2000-08-061-4/+4
| | | | | | | | | | | | | | | | | | of the packet, use "pi.captured_len" - "fd->pkt_len" may include data that isn't in the capture, due to a short snapshot length. Don't use "fd->cap_len" when checking to see if you've run off the end of the packe, use "pi.captured_len" - "fd->cap_len" isn't adjusted to reflect any length fields, but "pi.captured_len" is (removing, for example, Ethernet padding from the packet). Use "END_OF_FRAME" rather than "pi.captured_len - offset", to make it a bit clearer what's being done. In the V.120 dissector, use "tvb_length()" when adding the top-level protocol tree entry for V.120, as it's a tvbuffified dissector. svn path=/trunk/; revision=2214
* Add some error values that, whilst they're not in the NFS V2 spec, are,Guy Harris2000-08-031-1/+6
| | | | | | | as I remember, issued by some NFS V2 servers (EXDEV, for one, can almost certainly be issued by most V2 servers). svn path=/trunk/; revision=2201
* File handle dissection works now with the old Linux user-land nfsd too.Uwe Girlich2000-07-131-8/+80
| | | | svn path=/trunk/; revision=2134
* Start of a NFS file handle dissection. ReliantUNIX and Linux knfsd handlesUwe Girlich2000-07-131-27/+420
| | | | | | are correctly dissected. svn path=/trunk/; revision=2133
* Use "dissect_rpc_list()" to dissect NFS READDIR/READDIRPLUS reply listsGuy Harris2000-06-121-47/+7
| | | | | | | and portmapper DUMP reply lists, rather than duplicating what "dissect_rpc_list()" does. svn path=/trunk/; revision=2060
* Add routines for adding items to a protocol tree that take arguments ofGuy Harris2000-05-311-40/+40
| | | | | | | | | | | | | | | | | a particular type, rather than taking a varargs list, along the lines of the "proto_tree_add_XXX_format()" routines. Replace most calls to "proto_tree_add_item()" and "proto_tree_add_item_hidden()" with calls to those routines. Rename "proto_tree_add_item()" and "proto_tree_add_item_hidden()" to "proto_tree_add_item_old()" and "proto_tree_add_item_hidden_old()", and add new "proto_tree_add_item()" and "proto_tree_add_item_hidden()" routines that don't take the item to be added as an argument - instead, they fetch the argument from the packet whose tvbuff was handed to them, from the offset handed to them. svn path=/trunk/; revision=2031
* Add tvbuff class.Gilbert Ramirez2000-05-111-130/+130
| | | | | | | | | | | | | | | Add exceptions routines. Convert proto_tree_add_*() routines to require tvbuff_t* argument. Convert all dissectors to pass NULL argument ("NullTVB" macro == NULL) as the tvbuff_t* argument to proto_tree_add_*() routines. dissect_packet() creates a tvbuff_t, wraps the next dissect call in a TRY block, will print "Short Frame" on the proto_tree if a BoundsError exception is caught. The FDDI dissector is converted to use tvbuff's. svn path=/trunk/; revision=1939
* Use the new split between protocol registration and protocol handoffGuy Harris2000-04-041-1/+5
| | | | | | | | | | | | | | | | registration routines to get rid of the special handling of ONC RPC protocols - dissectors for ONC RPC-based protocols should register their protocol, fields, and ETT values in a protocol registration routine, and register themselves with the ONC RPC dissector in their protocol handoff routine, so that the latter is done after the ONC RPC dissector's protocol registration routine is called, so that the data structures needed when dissectors for ONC RPC protocols register themselves with the ONC RPC dissector have been initialized. Get rid of "init_dissect_rpc()", which initializes said data structures; do that in "proto_register_rpc()" instead. svn path=/trunk/; revision=1789
* When dissecting an NFS file handle, show the raw bytes of the fileGuy Harris2000-03-231-11/+27
| | | | | | | | | | | | handle data (snoop does this, and it's somewhat convenient if you're trying to see whether, say, an ACCESS call is acting on the file whose file handle you got back from a previous MOUNT request). Boost the maximum number of bytes worth of hex data shown by "bytes_to_str()" from 10 to 16, so that we can show the file handle 16 bytes per line (as snoop does). svn path=/trunk/; revision=1744
* Change dfilter_init() to check for empty-string abbreviations and forGilbert Ramirez2000-03-201-4/+4
| | | | | | | duplicate abbreviations. All mods to packet-*.c files are fixes to remove those cases. svn path=/trunk/; revision=1733
* Break proto_tree_add_item_format() into multiple functions:Gilbert Ramirez2000-03-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | proto_tree_add_protocol_format() proto_tree_add_uint_format() proto_tree_add_ipxnet_format() proto_tree_add_ipv4_format() proto_tree_add_ipv6_format() proto_tree_add_bytes_format() proto_tree_add_string_format() proto_tree_add_ether_format() proto_tree_add_time_format() proto_tree_add_double_format() proto_tree_add_boolean_format() If using GCC 2.x, we can check the print-format against the variable args passed in. Regardless of compiler, we can now check at run-time that the field type passed into the function corresponds to what that function expects (FT_UINT, FT_BOOLEAN, etc.) Note that proto_tree_add_protocol_format() does not require a value field, since the value of a protocol is always NULL. It's more intuitive w/o the vestigial argument. Fixed a proto_tree_add_item_format-related bug in packet-isis-hello.c Fixed a variable usage bug in packet-v120.c. (ett_* was used instead of hf_*) Checked in Guy's fix for the function declearation for proto_tree_add_text() and proto_tree_add_notext(). svn path=/trunk/; revision=1713
* Fix some "proto_tree_add_text()" calls.Guy Harris2000-03-071-3/+3
| | | | svn path=/trunk/; revision=1696
* Corrected a SEGFAULT in v2 readdir reply, v3 readdir reply, and v3 readdirplusUwe Girlich2000-01-261-8/+11
| | | | | | | reply. It came in with the new dissect_rpc_string() with gives the string back. svn path=/trunk/; revision=1570
* Give "dissect_rpc_string()" an extra "char **" argument; if it'sGuy Harris2000-01-221-15/+33
| | | | | | | | | | non-null, it returns through that argument a pointer to the displayed version of the string, otherwise it just frees that string. Use that to put, in the tree item for READDIR and READDIRPLUS reply directory entry items, the file name from the directory entry. svn path=/trunk/; revision=1521
* Last dissectors for NFS v3 are finally done.Uwe Girlich2000-01-181-31/+185
| | | | svn path=/trunk/; revision=1508
* Fix Gerald's e-mail address.Guy Harris2000-01-071-2/+2
| | | | svn path=/trunk/; revision=1437
* New NFS v3 dissector (READDIR). 5 functions are still missing.Uwe Girlich1999-12-161-4/+111
| | | | svn path=/trunk/; revision=1354
* More dissectors for NFS v3. Still 7 functions are missing.Uwe Girlich1999-12-141-131/+250
| | | | | | NFS reply status now searchable with the filter expression nfs.status. svn path=/trunk/; revision=1330
* More v3 dissectors added. 11 function are still missing.Uwe Girlich1999-12-101-11/+288
| | | | svn path=/trunk/; revision=1282
* More v3 dissector routines. 14 functions are still missing.Uwe Girlich1999-12-091-20/+129
| | | | svn path=/trunk/; revision=1259
* More v3 dissector routines. 25 functions still missing.Uwe Girlich1999-12-091-31/+224
| | | | svn path=/trunk/; revision=1258
* NFS v2 ist ready.Uwe Girlich1999-12-061-13/+225
| | | | svn path=/trunk/; revision=1228
* many new dissectors in the NVF v2 areaUwe Girlich1999-12-021-82/+232
| | | | svn path=/trunk/; revision=1183
* ACCESS call,reply added.Uwe Girlich1999-11-291-8/+81
| | | | svn path=/trunk/; revision=1154
* Some more RPC functions dissected.Uwe Girlich1999-11-291-29/+222
| | | | svn path=/trunk/; revision=1153
* NFS v2 setattr call: non-set values are marked as such.Uwe Girlich1999-11-261-8/+48
| | | | svn path=/trunk/; revision=1116
* Add terminating NULL record to value_string nfs2_mode_names to preventGilbert Ramirez1999-11-231-1/+2
| | | | | | segfault. svn path=/trunk/; revision=1100