Date: Thu, 11 Mar 2010 11:33:04 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/fs/nfsserver nfs_nfsdport.c Message-ID: <201003111133.o2BBXQ8G042172@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2010-03-11 11:33:04 UTC
FreeBSD src repository
Modified files:
sys/fs/nfsserver nfs_nfsdport.c
Log:
SVN rev 205010 on 2010-03-11 11:33:04Z by rwatson
Update nfsrv_getsocksndseq() for changes in TCP internals since FreeBSD 6.x:
- so_pcb is now guaranteed to be non-NULL and valid if a valid socket
reference is held.
- Need to check INP_TIMEWAIT and INP_DROPPED before assuming inp_ppcb is a
tcpcb, as it might be a tcptw or NULL otherwise.
- tp can never be NULL by the end of the function, so only check
TCPS_ESTABLISHED before extracting tcpcb fields.
The NFS server arguably incorporates too many assumptions about TCP
internals, but fixing that is left for nother day.
MFC after: 1 week
Reviewed by: bz
Reviewed and tested by: rmacklem
Sponsored by: Juniper Networks
Revision Changes Path
1.19 +11 -12 src/sys/fs/nfsserver/nfs_nfsdport.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003111133.o2BBXQ8G042172>
