aboutsummaryrefslogtreecommitdiffstats
path: root/packet-nfs.c
AgeCommit message (Collapse)AuthorFilesLines
2003-09-28Prettify NFSv2 decorate COL_INFO and the tree pane as has already been ↵Ronnie Sahlberg1-54/+397
done for v3 svn path=/trunk/; revision=8560
2003-09-09NFSv3 Read Reply and Write Calls are often short pdus.Ronnie Sahlberg1-4/+4
Change the dissector for these calls to prettify the COL_INFO and the tree item before dissecting the data block. Previously the dissector would bail out during the short data block anbd thus not do the COL_INFO/item prettification. Bug is not fixed svn path=/trunk/; revision=8432
2003-08-27Make various lengths unsigned in "dissect_fhandle_data_unknown()", soGuy Harris1-4/+4
lengths > 2^31-1 get handled correctly. svn path=/trunk/; revision=8289
2003-08-17Prettifying the RPC and NFS (v3) layer.Ronnie Sahlberg1-60/+588
Add more text to the COL_INFO line as well as the protocol trees for NFS and RPC svn path=/trunk/; revision=8179
2003-06-10From Mike Frisch: finish NFS_ACL dissector.Guy Harris1-3/+3
svn path=/trunk/; revision=7829
2003-05-22A small fix to NFSv4 to properly decode the secinfo response array, the arrayRichard Sharpe1-4/+9
of secinfo flavors returned. svn path=/trunk/; revision=7717
2003-05-22 Update with J Bruce Field's changes to support RPCSEC_GSS.Richard Sharpe1-2/+3
svn path=/trunk/; revision=7710
2003-04-22From Mike Frisch: additional NFSv4 status codes.Guy Harris1-1/+10
svn path=/trunk/; revision=7531
2003-04-01From Mike Frisch: NFS_ACL support.Guy Harris1-31/+32
svn path=/trunk/; revision=7391
2003-02-14From Mike Frisch: add support for zero-length file handles (such as theGuy Harris1-3/+11
WebNFS root file handle). svn path=/trunk/; revision=7154
2002-12-02Don't cast away constness, and fix variable and structure memberGuy Harris1-17/+21
qualifiers as necessary to ensure that we don't have to. "strcmp()", "strcasecmp()", and "memcmp()" don't return booleans; don't test their results as if they did. Use "guint8", not "guchar", for a pointer to (one or more) 8-bit bytes. Update Michael Tuexen's e-mail address. svn path=/trunk/; revision=6726
2002-10-24Add fields for procedure numbers for NFS V2, V3, and V4, and registerGuy Harris1-4/+71
them with the ONC RPC dissector. svn path=/trunk/; revision=6494
2002-10-23Add an extra argument to "rpc_init_proc_table()" that can specify an hf_Guy Harris1-4/+4
value for a field to be used for the procedure number for that version of the protocol; use that field, if specified, instead of just putting in a generic "rpc.procedure" field. Have the ypserv dissector register those fields and supply them to "rpc_init_proc_table()". Supply -1 for other RPC programs (for now), meaning "no such field exists". svn path=/trunk/; revision=6486
2002-10-14From Mike Frisch: fix problems with SETCLIENTID and SETCLIENTID_REPLYGuy Harris1-2/+7
decoding. svn path=/trunk/; revision=6415
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-339/+339
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-08-08From Mike Frisch: add the FATTR4_MOUNTED_ON_FILEID attribute.Guy Harris1-1/+3
svn path=/trunk/; revision=5972
2002-08-07From Mike Frisch: fixed LOOKUPP (NFSv4) decoding (previously undefinedGuy Harris1-4/+8
operation), added two new NFS4ERR_xxx error codes, and minor fix to ACL decoding. svn path=/trunk/; revision=5966
2002-08-06From Mike Frisch: fix NFSv4 ACL decoding.Guy Harris1-6/+192
svn path=/trunk/; revision=5957
2002-08-06From Mike Frisch: sync the SETCLIENTID args decoder with the latestGuy Harris1-23/+60
nfs4_prot.x. svn path=/trunk/; revision=5956
2002-08-06Frame numbers are "guint32"s, not signed "int"s.Guy Harris1-6/+6
svn path=/trunk/; revision=5952
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer1-5/+1
equivalents for the toplevel directory. The removal of winsock2.h will hopefully not cause any problems under MSVC++, as those files using struct timeval still include wtap.h, which still includes winsock2.h. svn path=/trunk/; revision=5932
2002-06-20From Mike Frisch: update the ACL and LOCK/LOCKT/LOCKU decodingGuy Harris1-63/+59
for NFSv4. svn path=/trunk/; revision=5717
2002-05-21Various fixes from Mike Frisch (remove unused arguments, make variablesGuy Harris1-80/+51
unsigned where appropriate). svn path=/trunk/; revision=5519
2002-05-21From Mike Frisch: fix most of the TODOs.Guy Harris1-544/+397
Make a pile of things static. Remove declarations of no-longer-extant routines from "packet-nfs.h". svn path=/trunk/; revision=5516
2002-05-21Option to make filtering on nfs fhandles stateful.Ronnie Sahlberg1-28/+201
When this ption is enabled in Protocols/NFS displayfilters for fhandle fields such as nfs.fh.{hash|name|full_name} will find both the request and matching response packets even if the fhandle is only present in one of the packets. The option supports all NFS and related protocols which use nfs fhandles including async NLM. The option will not work with nfs packets containing multiple fhandles in one PDU, nor will it work if tcp collapses multiple segments/pdus into one larger segment. It only works for async NLM if one first enables the MSG/RES stateful matching for async NLM. svn path=/trunk/; revision=5515
2002-04-03Removed many senseless pinfo parameters in RPC dissection and the layers above.Uwe Girlich1-573/+579
svn path=/trunk/; revision=5090
2002-03-07Updates from Mike Frisch.Guy Harris1-7/+9
svn path=/trunk/; revision=4895
2002-03-06From Mike Frisch: remove debug printf statements.Guy Harris1-7/+1
svn path=/trunk/; revision=4883
2002-03-01Updates from Mike Frisch.Guy Harris1-42/+79
svn path=/trunk/; revision=4840
2002-02-06If you compile with IBM's compiler on AIX 5.1, the compiler apparentlyGuy Harris1-25/+25
somehow doesn't like the structure member name "fh_len", for some reason (probably some #define in some header file); change that (and other "fh_len" variables) to "fh_length" instead. svn path=/trunk/; revision=4705
2002-01-20Allow a length of -1 to be specified when adding FT_NONE and FT_PROTOCOLGuy Harris1-47/+40
items to the protocol tree; it's interpreted as "the rest of the data in the tvbuff". This can be used if 1) the item covers the entire packet or the remaining payload in the packet or 2) the item's length won't be known until it's dissected, and will be then set with "proto_item_set_len()" - if an exception is thrown in the dissection, it means the item ran *past* the end of the tvbuff, so saying it runs to the end of the tvbuff is reasonable. Convert a number of "proto_tree_add_XXX()" calls using "tvb_length_remaining()", values derived from the result of "tvb_length()", or 0 (in the case of items whose length is unknown) to use -1 instead (using 0 means that if an exception is thrown, selecting the item highlights nothing; using -1 means it highlights all the data for that item that's available). In some places where "tvb_length()" or "tvb_length_remaining()" was used to determine how large a packet is, use "tvb_reported_length()" or "tvb_reported_length_remaining()", instead - the first two calls indicate how much captured data was in the packet, the latter two calls indicate how large the packet actually was (and the fact that using the latter could cause BoundsError exceptions to be thrown is a feature - if such an exception is thrown, the frame really *was* short, and it should be tagged as such). Replace some "proto_tree_add_XXX()" calls with equivalent "proto_tree_add_item()" calls. Fix some indentation. svn path=/trunk/; revision=4578
2002-01-14From Ronnie Sahlberg:Uwe Girlich1-21/+15
this fixes the bug that nfs name snooping did not work for nfs v2. svn path=/trunk/; revision=4541
2002-01-14NFSv3 fsstat reply label texts explanded. "afiles" and similar names were notUwe Girlich1-13/+13
really that useful. svn path=/trunk/; revision=4540
2002-01-12From Ronnie Sahlberg: file handle to file name resolution in NFS andGuy Harris1-6/+497
related protocols. svn path=/trunk/; revision=4533
2001-11-27Thou shalt not use C++-style comments in C code, for they upset some CGuy Harris1-2/+2
compilers. svn path=/trunk/; revision=4284
2001-10-29From Ronnie Sahlberg: FT_UINT64 support, code to handle 64-bit integersGuy Harris1-48/+48
without requiring compiler support for them, and updates to the Diameter, L2TP, NFS, and NLM dissectors to use it and to the ONC RPC dissector to allow ONC RPC subdissectors to use it. svn path=/trunk/; revision=4099
2001-10-29Updates from Mike Frisch to reflect NFSv4 protocol changes.Guy Harris1-255/+355
svn path=/trunk/; revision=4098
2001-09-14Times in NFS done as FT_ABSOLUTE_TIME and FT_RELATIVE_TIME fields, fromGuy Harris1-41/+126
Ronnie Sahlberg. svn path=/trunk/; revision=3938
2001-06-19Labels must be followed by statements; GCC may let you get away withoutGuy Harris1-2/+3
the statement, but MSVC++ doesn't. svn path=/trunk/; revision=3574
2001-06-18NFS file handle analysing works now for kernel based NFS v3 servers ofUwe Girlich1-12/+257
Linux 2.4.0 too. svn path=/trunk/; revision=3569
2001-06-18From Joerg Mayer: explicitly fill in all members of aGuy Harris1-201/+201
"header_field_info" structure, including the ones that are later set by the routines to register fields. svn path=/trunk/; revision=3561
2001-05-30There are no more old-style (non-tvbuffified) ONC RPC dissectors, so getGuy Harris1-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
2001-05-30Tvbuffified NFS dissector, from Mike Frisch, plus some registered-fieldGuy Harris1-1287/+1726
cleanups. svn path=/trunk/; revision=3476
2001-05-23If you put an item into the protocol tree with "dissect_rpc_data()",Guy Harris1-4/+4
it must be FT_BYTES, not FT_STRING. svn path=/trunk/; revision=3440
2001-03-09Fixes to Lemon to get it to compile on platforms (such as some versionsGuy Harris1-2/+2
of Tru64 UNIX) that define TRUE and FALSE. Fixes to some Tru64 compiler warnings. svn path=/trunk/; revision=3120
2001-03-06Fix a decode problem with failed NFSv4 SETATTR operations.Gilbert Ramirez1-3/+9
From Mike Frisch. svn path=/trunk/; revision=3109
2001-03-02Update from Mike Frisch.Guy Harris1-7/+34
svn path=/trunk/; revision=3095
2001-02-21NFSv4 updates from Mike Frisch to fix some cosmetic issues whenGuy Harris1-6/+42
displaying XDR arrays. svn path=/trunk/; revision=3065
2001-02-13Updates from Mike Frisch.Guy Harris1-9/+25
svn path=/trunk/; revision=3029
2001-02-09Further NFSV4 updates from Mike Frisch.Guy Harris1-331/+815
svn path=/trunk/; revision=3010