aboutsummaryrefslogtreecommitdiffstats
path: root/packet-nfs.c
Commit message (Collapse)AuthorAgeFilesLines
* Removed trailing whitespaces from .h and .c files using theJörg Mayer2002-08-281-339/+339
| | | | | | | winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
* From Mike Frisch: add the FATTR4_MOUNTED_ON_FILEID attribute.Guy Harris2002-08-081-1/+3
| | | | svn path=/trunk/; revision=5972
* From Mike Frisch: fixed LOOKUPP (NFSv4) decoding (previously undefinedGuy Harris2002-08-071-4/+8
| | | | | | | operation), added two new NFS4ERR_xxx error codes, and minor fix to ACL decoding. svn path=/trunk/; revision=5966
* From Mike Frisch: fix NFSv4 ACL decoding.Guy Harris2002-08-061-6/+192
| | | | svn path=/trunk/; revision=5957
* From Mike Frisch: sync the SETCLIENTID args decoder with the latestGuy Harris2002-08-061-23/+60
| | | | | | nfs4_prot.x. svn path=/trunk/; revision=5956
* Frame numbers are "guint32"s, not signed "int"s.Guy Harris2002-08-061-6/+6
| | | | svn path=/trunk/; revision=5952
* Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer2002-08-021-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
* From Mike Frisch: update the ACL and LOCK/LOCKT/LOCKU decodingGuy Harris2002-06-201-63/+59
| | | | | | for NFSv4. svn path=/trunk/; revision=5717
* Various fixes from Mike Frisch (remove unused arguments, make variablesGuy Harris2002-05-211-80/+51
| | | | | | unsigned where appropriate). svn path=/trunk/; revision=5519
* From Mike Frisch: fix most of the TODOs.Guy Harris2002-05-211-544/+397
| | | | | | | | Make a pile of things static. Remove declarations of no-longer-extant routines from "packet-nfs.h". svn path=/trunk/; revision=5516
* Option to make filtering on nfs fhandles stateful.Ronnie Sahlberg2002-05-211-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
* Removed many senseless pinfo parameters in RPC dissection and the layers above.Uwe Girlich2002-04-031-573/+579
| | | | svn path=/trunk/; revision=5090
* Updates from Mike Frisch.Guy Harris2002-03-071-7/+9
| | | | svn path=/trunk/; revision=4895
* From Mike Frisch: remove debug printf statements.Guy Harris2002-03-061-7/+1
| | | | svn path=/trunk/; revision=4883
* Updates from Mike Frisch.Guy Harris2002-03-011-42/+79
| | | | svn path=/trunk/; revision=4840
* If you compile with IBM's compiler on AIX 5.1, the compiler apparentlyGuy Harris2002-02-061-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
* Allow a length of -1 to be specified when adding FT_NONE and FT_PROTOCOLGuy Harris2002-01-201-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
* From Ronnie Sahlberg:Uwe Girlich2002-01-141-21/+15
| | | | | | this fixes the bug that nfs name snooping did not work for nfs v2. svn path=/trunk/; revision=4541
* NFSv3 fsstat reply label texts explanded. "afiles" and similar names were notUwe Girlich2002-01-141-13/+13
| | | | | | really that useful. svn path=/trunk/; revision=4540
* From Ronnie Sahlberg: file handle to file name resolution in NFS andGuy Harris2002-01-121-6/+497
| | | | | | related protocols. svn path=/trunk/; revision=4533
* Thou shalt not use C++-style comments in C code, for they upset some CGuy Harris2001-11-271-2/+2
| | | | | | compilers. svn path=/trunk/; revision=4284
* From Ronnie Sahlberg: FT_UINT64 support, code to handle 64-bit integersGuy Harris2001-10-291-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
* Updates from Mike Frisch to reflect NFSv4 protocol changes.Guy Harris2001-10-291-255/+355
| | | | svn path=/trunk/; revision=4098
* Times in NFS done as FT_ABSOLUTE_TIME and FT_RELATIVE_TIME fields, fromGuy Harris2001-09-141-41/+126
| | | | | | Ronnie Sahlberg. svn path=/trunk/; revision=3938
* 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