patch-2.4.26 linux-2.4.26/include/linux/lockd/xdr.h

Next file: linux-2.4.26/include/linux/module.h
Previous file: linux-2.4.26/include/linux/lockd/lockd.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.25/include/linux/lockd/xdr.h linux-2.4.26/include/linux/lockd/xdr.h
@@ -33,14 +33,15 @@
 };
 
 /*
- *	NLM cookies. Technically they can be 1K, Nobody uses over 8 bytes
- *	however.
+ *	NLM cookies. Technically they can be 1K, Few people use over 8 bytes,
+ *	FreeBSD uses 16, Apple Mac OS-X 10.3 uses 20.
  */
  
 struct nlm_cookie
 {
-	unsigned char data[8];
 	unsigned int len;
+#define NLM_MAXCOOKIELEN    	32
+	unsigned char data[NLM_MAXCOOKIELEN];
 };
 
 /*

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)