patch-2.1.89 linux/include/linux/ncp_fs_sb.h

Next file: linux/include/linux/ncp_mount.h
Previous file: linux/include/linux/ncp_fs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.88/linux/include/linux/ncp_fs_sb.h linux/include/linux/ncp_fs_sb.h
@@ -14,6 +14,7 @@
 #ifdef __KERNEL__
 
 #define NCP_DEFAULT_BUFSIZE 1024
+#define NCP_DEFAULT_OPTIONS 0		/* 2 for packet signatures */
 
 struct ncp_server {
 
@@ -21,7 +22,7 @@
 					   interest for us later, so we store
 					   it completely. */
 
-	__u8 name_space[NCP_NUMBER_OF_VOLUMES];
+	__u8 name_space[NCP_NUMBER_OF_VOLUMES + 2];
 
 	struct file *ncp_filp;	/* File pointer to ncp socket */
 
@@ -50,7 +51,30 @@
 	int ncp_reply_size;
 
 	struct ncp_inode_info root;
+#if 0
 	char root_path;		/* '\0' */
+#else
+	struct dentry* root_dentry;
+#endif
+
+/* info for packet signing */
+	int sign_wanted;        /* 1=Server needs signed packets */
+	int sign_active;        /* 0=don't do signing, 1=do */
+	char sign_root[8];	/* generated from password and encr. key */
+	char sign_last[16];	
+
+	/* Authentication info: NDS or BINDERY, username */
+	struct {
+		int    auth_type;
+		size_t object_name_len;
+		void*  object_name;
+		int    object_type;
+	} auth;
+	/* Password info */
+	struct {
+		size_t len;
+		void*  data;
+	} priv;
 };
 
 static inline int ncp_conn_valid(struct ncp_server *server)
@@ -66,3 +90,4 @@
 #endif				/* __KERNEL__ */
 
 #endif
+ 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov