aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-nfs.h
AgeCommit message (Collapse)AuthorFilesLines
2019-04-26NFS: Display nfl_util components for files layout typeJorge Mora1-0/+5
Add extra fields to display the components of the layout nfl_util for the files layout type. These components include whether the layout is dense or sparse, whether the client should send the commit to the metadata server or data server and lastly the stripe unit size. Change-Id: I8c054c68353eb5bd711b2f95d8dcf74ecc2aab03 Reviewed-on: https://code.wireshark.org/review/32952 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-02-12dissectors: use SPDX identifiers.Dario Lombardo1-13/+1
Change-Id: I92c94448e6641716d03158a5f332c8b53709423a Reviewed-on: https://code.wireshark.org/review/25756 Petri-Dish: Dario Lombardo <lomato@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-10-03nfs4: Add ACCESS_MASK support for xattrsTom Haynes1-6/+9
See: https://datatracker.ietf.org/doc/draft-ietf-nfsv4-xattrs/ Change-Id: Ia9238bf96562f95eb56d25a1f8051b4e4fca5ba4 Signed-off-by: Tom Haynes <loghyr@primarydata.com> Reviewed-on: https://code.wireshark.org/review/23817 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-09-27nfsv4: Implement the xattr support for NFSv4Tom Haynes1-1/+5
See: https://datatracker.ietf.org/doc/draft-ietf-nfsv4-xattrs/ Change-Id: I775eb2ec994409717f5d4ab9feb07cb4201617f1 Signed-off-by: Tom Haynes <loghyr@primarydata.com> Reviewed-on: https://code.wireshark.org/review/23756 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-04-21packet-nfs: update GETDEVICEINFO op for pNFS SCSIBenjamin Coddington1-0/+1
The pNFS SCSI layout type defines additional structures to be returned for GETDEVICEINFO to refer to SCSI volumes. Update packet-nfs.c to decode these structures. Only BASE volume types have been tested. Change-Id: I8c6e283d6f98763ee505c7880dbc5ceac0e86675 Reviewed-on: https://code.wireshark.org/review/15016 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2015-09-21nfs: Register CB program statically and not whilst parsing itTom Haynes1-0/+1
The existing code parsed the callback program number from a packet and then registered the callback program number. But since the RPC dissector checks for valid and known program numbers, it never parses it out. Anyway, NFS4_CALLBACK is a well known number - use it! Change-Id: Ia812359102bf6620e3b83109eb918032155cd8d3 Signed-off-by: Tom Haynes <loghyr@primarydata.com> Reviewed-on: https://code.wireshark.org/review/10558 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-09-10nfs: Fix compilation breakTom Haynes1-0/+1
Initialize layout_type. Change-Id: Ied6cf61045cbee4f45b802c99ba06c2a07cc7613 Signed-off-by: Tom Haynes <loghyr@primarydata.com> Reviewed-on: https://code.wireshark.org/review/10461 Reviewed-by: Roland Knall <rknall@gmail.com> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-09-09nfs: Add NFSv4.2 op LAYOUTERRORTom Haynes1-0/+1
Change-Id: I748166ebcad1fa704b3d99770cf0c6296bdae3dd Signed-off-by: Tom Haynes <loghyr@primarydata.com> Reviewed-on: https://code.wireshark.org/review/10434 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-09-09nfs: Add NFSv4.2 op LAYOUTSTATSTom Haynes1-0/+1
Change-Id: I29429373b4a50d9580560b4f0759e31dd8cbf0c3 Signed-off-by: Tom Haynes <loghyr@primarydata.com> Reviewed-on: https://code.wireshark.org/review/10427 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-09-09nfs: Add NFSv4.2 op WRITE_SAMETom Haynes1-0/+1
Change-Id: I6a170f7e38a712c4ea0bc83ff4b1baf616a47253 Signed-off-by: Tom Haynes <loghyr@primarydata.com> Reviewed-on: https://code.wireshark.org/review/10436 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-09-09nfs: Add NFSv4.2 op READ_PLUSTom Haynes1-0/+1
Change-Id: I10fd5c28c57c467c854ce3658887b2d0ce6f51b8 Signed-off-by: Tom Haynes <loghyr@primarydata.com> Reviewed-on: https://code.wireshark.org/review/10435 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-09-09nfs: Add NFSv4.2 cb op CB_OFFLOADTom Haynes1-0/+1
Change-Id: Idfd27f382e78813b067b99fbe2e7934ddb72b6da Signed-off-by: Tom Haynes <loghyr@primarydata.com> Reviewed-on: https://code.wireshark.org/review/10433 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-09-09nfs: Add NFSv4.2 op IO_ADVISETom Haynes1-0/+1
Change-Id: Ie2cc621fa928a541810e67a2444408572e0d8d4d Signed-off-by: Tom Haynes <loghyr@primarydata.com> Reviewed-on: https://code.wireshark.org/review/10432 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-09-09nfs: Add NFSv4.2 ops OFFLOAD_CANCEL and OFFLOAD_STATUSTom Haynes1-0/+2
Change-Id: Ic5ff60f559e1651b206cac4612b3cbc64ca67306 Signed-off-by: Tom Haynes <loghyr@primarydata.com> Reviewed-on: https://code.wireshark.org/review/10431 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-09-09nfs: Add NFSv4.2 op CLONETom Haynes1-1/+2
Change-Id: I38eab48dcc27c813fc134881b359d8033bc00771 Signed-off-by: Tom Haynes <loghyr@primarydata.com> Reviewed-on: https://code.wireshark.org/review/10430 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-09-09nfs: Add NFSv4.2 ops COPY and COPY_NOTIFYTom Haynes1-0/+9
Change-Id: I780b7519be5b8a8aadac7141363ff138cae4e583 Signed-off-by: Tom Haynes <loghyr@primarydata.com> Reviewed-on: https://code.wireshark.org/review/10428 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-09-09nfs: Add new error codes for NFSv4.2Tom Haynes1-3/+4
Change-Id: I9a4cbb3b43c2695ca576eea7263c561a9d0f3783 Signed-off-by: Tom Haynes <loghyr@primarydata.com> Reviewed-on: https://code.wireshark.org/review/10424 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-06-16packet-nfs: flexfile getdeviceinfo needs to decode rsize/wsizePeng Tao1-4/+4
Change-Id: I67239a7cd1ea63499e5ee1956a2a5ac7b8191f9e Reviewed-on: https://code.wireshark.org/review/8936 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-06-16packet-nfs: flexfile layoutget supportWeston Andros Adamson1-0/+1
Change-Id: Idd162119b1fdc6747452b9a13ef580705567983e Signed-off-by: Tom Haynes <loghyr@primarydata.com> Reviewed-on: https://code.wireshark.org/review/8934 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-11-06nfs: NFSv4.2 SEEK, ALLOCATE, DEALLOCATE supportJ. Bruce Fields1-1/+5
NFSv4.2 is still a draft, but these three ops are implemented at least for Linux now and are very unlikely to change any further. Ping-Bug: 10649 Change-Id: Ia2917de59fb2b0ed7191c9f362b7eb60756d7634 Reviewed-on: https://code.wireshark.org/review/5143 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-07-04wmemify some nfs functions, fixing much leaked memoryEvan Huus1-2/+2
Bug: 10257 Change-Id: Ia36c03b2be727a37f91eca38af4faf48d1d65436 Reviewed-on: https://code.wireshark.org/review/2840 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-31Continue to remove $Id$ from top of fileAlexis La Goutte1-2/+1
Last one $Id$ (remove by hand) to make checkAPI haapy ! Change-Id: I5adfdcac0629a36e08c5fe3ea7960bdbc251364f Reviewed-on: https://code.wireshark.org/review/887 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-11-10Have rpc_call_info_value be passed through to (sub)dissectors instead of ↵Michael Mann1-3/+3
using pinfo->private_data. This was acheived by adding a void* data parameter to the dissect_function_t typedef in packet-rpc.h (r53213). After converting the pinfo->private_data, I'm not sure if it would be better to change the void* data pointer to be a rpc_call_info_value* explicitly. Not all "dissector functions" use it, but it would certainly save a lot of casting... svn path=/trunk/; revision=53232
2013-04-19From Cal Turney via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8581Evan Huus1-27/+15
Major NFS dissector cleanup. Consistent naming, spacing, line wrapping, variable initialization, ... For full details see comment #18 of the bug. svn path=/trunk/; revision=48934
2012-12-26Fix a bunch of warnings.Guy Harris1-1/+1
Cast away some implicit 64-bit-to-32-bit conversion errors due to use of sizeof. Cast away some implicit 64-bit-to-32-bit conversion errors due to use of strtol() and strtoul(). Change some data types to avoid those implicit conversion warnings. When assigning a constant to a float, make sure the constant isn't a double, by appending "f" to the constant. Constify a bunch of variables, parameters, and return values to eliminate warnings due to strings being given const qualifiers. Cast away those warnings in some cases where an API we don't control forces us to do so. Enable a bunch of additional warnings by default. Note why at least some of the other warnings aren't enabled. randpkt.c and text2pcap.c are used to build programs, so they don't need to be in EXTRA_DIST. If the user specifies --enable-warnings-as-errors, add -Werror *even if the user specified --enable-extra-gcc-flags; assume they know what they're doing and are willing to have the compile fail due to the extra GCC warnings being treated as errors. svn path=/trunk/; revision=46748
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-04-09Add missing const attribute to some char *Jakub Zawadzki1-1/+1
Fix some "assignment discards qualifiers from pointer target type", etc svn path=/trunk/; revision=41996
2011-12-14Fix moving nfs_fhandle_data from packet-nfs.h to packet-nfs.c as begunStephen Fisher1-5/+1
in r40205. svn path=/trunk/; revision=40206
2010-11-05(Trivial) Whitespace cleanup.Bill Meier1-101/+101
svn path=/trunk/; revision=34790
2010-10-10Define some fcns & vars as static ...Bill Meier1-1/+0
svn path=/trunk/; revision=34458
2010-09-17Remove check_col(). Clean up some spacing/indentation too.Jeff Morriss1-32/+32
svn path=/trunk/; revision=34142
2010-09-17From Cal Turney via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5197 :Jeff Morriss1-2/+13
The NFS dissector (all versions) show access types that have not been requested to be checked as "not allowed" in the call and reply. This is incorrect and misleading. At present one must manually compare what was requested in order to assess if access was actually denied for that type. When there are hundreds or thousands of these ACCESS requests in a capture, it is not possible or practical to manually check each one. The submitted patch does the following: * Passes the access mask in the call to the reply for comparison * Adds filterable fields for each supported (v4) and access type * Adds a pseudo field, nfs.access_denied * Lists the access types to be checked in the summary and tree * Separately lists the supported, denied, and allowed access types in the summary and tree The changes are applied to all NFS versions. From me: a couple of small changes to make it compile without warnings. svn path=/trunk/; revision=34141
2009-07-02From Radek Vokál:Anders Broman1-0/+17
Support for new NFSv4 features. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3258 svn path=/trunk/; revision=28919
2008-11-26Remove all the NFS "fhandle to name" related warnings.Uwe Girlich1-1/+1
svn path=/trunk/; revision=26852
2008-07-12From J. Bruce Fields (bug 2634):Stig Bjørlykke1-4/+21
The attached patches bring the wireshark code up to date with the latest NFSv4.1 protocol drafts (in ietf last call now, so hopefully not too much more of this will be required). They also cover more of the protocol, and do some minor cleanup (e.g. remove some operations which were really only used by one prototype implementation, and never part of the protocol.) A few ops and attributes are still missing. svn path=/trunk/; revision=25727
2007-11-24From J. Bruce Fields:Stig Bjørlykke1-1/+16
Add basic support for NFSv4.1, as of about draft 13 of the current spec. The protocol is not completely finished yet, and future patches will be needed to bring it up to date. From me: - Add a check for valid pointers in nfsv4_operation_ett - Always increase offset when calling dissect_nfs_devices4 - Added a default case in dissect_rpc_secparms4 svn path=/trunk/; revision=23570
2007-06-18make hf_nfs_nfsstat externaly visible so other dissectors can use nfs Ronnie Sahlberg1-0/+1
status codes svn path=/trunk/; revision=22123
2006-07-22licence infoRonnie Sahlberg1-2/+0
svn path=/trunk/; revision=18787
2006-07-22add gpl licenceRonnie Sahlberg1-1/+22
svn path=/trunk/; revision=18786
2006-06-21two things have irritated me immensly with nfs filehandlesRonnie Sahlberg1-0/+2
1, (minor) the heuristics are too weak and everyting is always decoded either as netapp filehandles or one of the others even when just capturing ibetween say two classic unix boxens 2, (major) you can not filter on specific subfields of the filehandle observation: 5 people or less in the world care about implementation specific storage of data inside an opaque blob. remove the too weak heuristics for nfs filehandles. make decoding of filehandles accorrding to specific implementations controlled by a preference setting. default this setting to "unknown" display unknown filehandles using proto_tree_add_item() FT_BYTES/BASE_HEX to make it fitlerable instead of a useless proto_tree_add_text() wiki needs to be updated tomorrow svn path=/trunk/; revision=18530
2006-04-02prettify dissection of nfsv3 fattr3 structureRonnie Sahlberg1-1/+1
put useful info like type,mode,uid,gid on the expansion lines so we dont have to open the expansion to see these values. allow it to push this info multiple expansion lines upward and optionally (such as for GETATTR replies) put this info in the info column as well svn path=/trunk/; revision=17783
2006-03-06 get rid of another slow hashtable and one global variable andRonnie Sahlberg1-2/+1
replace it with a better and memleak free se_tree svn path=/trunk/; revision=17480
2005-07-30More char -> const char warning fixesJörg Mayer1-5/+5
svn path=/trunk/; revision=15155
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-0/+132
Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. svn path=/trunk/; revision=11410