Add nfs_proc_symlink, nfs_proc_link, nfs_proc_sattr.

This commit is contained in:
Devin Trejo 2018-01-10 12:06:10 -05:00
parent 8b28b73124
commit b93691b15c
5 changed files with 311 additions and 5 deletions

View file

@ -18,7 +18,7 @@ module NFS3;
enum proc_t %{ # NFSv3 procedures
PROC_NULL = 0, # done
PROC_GETATTR = 1, # done
PROC_SETATTR = 2, # not implemented
PROC_SETATTR = 2, # done
PROC_LOOKUP = 3, # done
PROC_ACCESS = 4, # not implemented
PROC_READLINK = 5, # done
@ -26,12 +26,12 @@ enum proc_t %{ # NFSv3 procedures
PROC_WRITE = 7, # done
PROC_CREATE = 8, # partial
PROC_MKDIR = 9, # partial
PROC_SYMLINK = 10, # not implemented
PROC_SYMLINK = 10, # done
PROC_MKNOD = 11, # not implemented
PROC_REMOVE = 12, # done
PROC_RMDIR = 13, # done
PROC_RENAME = 14, # done
PROC_LINK = 15, # not implemented
PROC_LINK = 15, # done
PROC_READDIR = 16, # done
PROC_READDIRPLUS = 17, # done
PROC_FSSTAT = 18, # not implemented
@ -74,6 +74,12 @@ enum status_t %{ # NFSv3 return status
NFS3ERR_UNKNOWN = 0xffffffff,
%}
enum time_how_t %{
DONT_CHANGE = 0,
SET_TO_SERVER_TIME = 1,
SET_TO_CLIENT_TIME = 2,
%}
enum file_type_t %{
FTYPE_REG = 1,
FTYPE_DIR = 2,
@ -84,6 +90,7 @@ enum file_type_t %{
FTYPE_FIFO = 7,
%}
enum stable_how_t %{
UNSTABLE = 0,
DATA_SYNC = 1,
@ -100,12 +107,19 @@ enum createmode_t %{
# defined in init-bare.bro.
type info_t: record;
type fattr_t: record;
type sattr_t: record;
type symlinkdata_t: record;
type diropargs_t: record;
type symlinkargs_t: record;
type sattrargs_t: record;
type linkargs_t: record;
type renameopargs_t: record;
type sattr_reply_t: record;
type lookup_reply_t: record;
type readargs_t: record;
type read_reply_t: record;
type readlink_reply_t: record;
type link_reply_t: record;
type writeargs_t: record;
type wcc_attr_t: record;
type write_reply_t: record;