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)
This commit is contained in:
Rick Macklem 2009-04-16 16:26:35 +00:00
parent 4081b7da51
commit 201e7488b6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=191145

View file

@ -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 */