patch-1.3.85 linux/fs/nfs/rpcsock.c

Next file: linux/fs/open.c
Previous file: linux/fs/nfs/nfsroot.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.84/linux/fs/nfs/rpcsock.c linux/fs/nfs/rpcsock.c
@@ -285,7 +285,7 @@
 static inline void
 rpc_send_check(char *where, u32 *ptr)
 {
-	if (ptr[1] != 0 || ptr[2] != htonl(2) || ptr[3] != htonl(100003)) {
+	if (ptr[1] != htonl(RPC_CALL) || ptr[2] != htonl(RPC_VERSION)) {
 		printk("RPC: %s sending evil packet:\n"
 		       "     %08x %08x %08x %08x %08x %08x %08x %08x\n",
 		       where,

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this