1999-10-29 01:11:23 +00:00
|
|
|
/* packet-nfs.h (c) 1999 Uwe Girlich */
|
2000-01-18 11:54:07 +00:00
|
|
|
/* $Id: packet-nfs.h,v 1.6 2000/01/18 11:54:07 girlich Exp $ */
|
1999-10-29 01:11:23 +00:00
|
|
|
|
|
|
|
#ifndef __PACKET_NFS_H__
|
|
|
|
#define __PACKET_NFS_H__
|
|
|
|
|
|
|
|
#include "packet-rpc.h"
|
|
|
|
|
|
|
|
#define NFS_PROGRAM 100003
|
|
|
|
|
|
|
|
#define FHSIZE 32
|
|
|
|
|
1999-12-14 11:48:03 +00:00
|
|
|
/* verifier */
|
1999-12-16 08:34:10 +00:00
|
|
|
#define NFS3_COOKIEVERFSIZE 8
|
1999-12-14 11:48:03 +00:00
|
|
|
#define NFS3_CREATEVERFSIZE 8
|
|
|
|
#define NFS3_WRITEVERFSIZE 8
|
|
|
|
|
2000-01-18 11:54:07 +00:00
|
|
|
/* for ftype3 */
|
|
|
|
#define NF3REG 1
|
|
|
|
#define NF3DIR 2
|
|
|
|
#define NF3BLK 3
|
|
|
|
#define NF3CHR 4
|
|
|
|
#define NF3LNK 5
|
|
|
|
#define NF3SOCK 6
|
|
|
|
#define NF3FIFO 7
|
|
|
|
|
1999-12-14 11:48:03 +00:00
|
|
|
/* for write */
|
|
|
|
#define UNSTABLE 0
|
|
|
|
#define DATA_SYNC 1
|
|
|
|
#define FILE_SYNC 2
|
|
|
|
|
|
|
|
/* for create */
|
1999-12-09 10:08:05 +00:00
|
|
|
#define UNCHECKED 0
|
|
|
|
#define GUARDED 1
|
|
|
|
#define EXCLUSIVE 2
|
|
|
|
|
1999-10-29 01:11:23 +00:00
|
|
|
/* the RPC mount protocol needs both function to decode a MNT reply */
|
1999-11-15 14:17:20 +00:00
|
|
|
int dissect_fhandle(const u_char *pd, int offset, frame_data *fd, proto_tree *tree, char* name);
|
|
|
|
int dissect_nfs_fh3(const u_char *pd, int offset, frame_data *fd, proto_tree *tree, char* name);
|
1999-10-29 01:11:23 +00:00
|
|
|
|
|
|
|
#endif /* packet-nfs.h */
|
|
|
|
|