diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2009-04-16 16:26:35 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2009-04-16 16:26:35 +0000 |
commit | 481d50cc5b8cfc736279359e195eba6d03131f7b (patch) | |
tree | 57e5bf577156c992ec105e758fe0811746fc19cc /sys/rpc | |
parent | aaa8443bf2212448b1174db7c6b8a9f48eb37b30 (diff) | |
download | FreeBSD-src-481d50cc5b8cfc736279359e195eba6d03131f7b.zip FreeBSD-src-481d50cc5b8cfc736279359e195eba6d03131f7b.tar.gz |
Added a field to the SVCXPRT structure that the nfsv4 server can
use to identify if the socket is the same one that a cached request
came in on. It is set by nfsrvd_addsock() to a unique value generated
by incrementing an unsigned 64bit static variable for each assignment
and then the value of xp_sockref is tested to see if it is equal to
the value that was saved with the cached reply.
Submitted by: rmacklem
Reviewed by: dfr
Approved by: kib (mentor)
Diffstat (limited to 'sys/rpc')
-rw-r--r-- | sys/rpc/svc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/rpc/svc.h b/sys/rpc/svc.h index eac9bc0..73c4414 100644 --- a/sys/rpc/svc.h +++ b/sys/rpc/svc.h @@ -165,6 +165,7 @@ typedef struct __rpc_svcxprt { int xp_type; /* transport type */ int xp_idletimeout; /* idle time before closing */ time_t xp_lastactive; /* time of last RPC */ + u_int64_t xp_sockref; /* set by nfsv4 to identify socket */ #else int xp_fd; u_short xp_port; /* associated port number */ |