summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPetr Vandrovec <vandrove@vc.cvut.cz>2002-09-21 02:24:32 +0200
committerPetr Vandrovec <vandrove@vc.cvut.cz>2002-09-21 02:24:32 +0200
commitd29d5c4add2166c6acdf4bb3688695b46ce77a31 (patch)
tree6de1523624424cfe2c22fd5938b3d0aaa6426ef0 /include/linux
parent9f29a6d268b266b85b2ca7de8c458ba6d588093e (diff)
ncpfs: Pass unknown packets from server to userspace daemon. Now we can
deliver server messages to logged-in users even with UDP or TCP transport.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ncp_fs_sb.h6
-rw-r--r--include/linux/ncp_mount.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/ncp_fs_sb.h b/include/linux/ncp_fs_sb.h
index 375c8511ca25..02ef9bb50b51 100644
--- a/include/linux/ncp_fs_sb.h
+++ b/include/linux/ncp_fs_sb.h
@@ -27,6 +27,8 @@ struct ncp_server {
struct file *ncp_filp; /* File pointer to ncp socket */
struct socket *ncp_sock;/* ncp socket */
+ struct file *info_filp;
+ struct socket *info_sock;
u8 sequence;
u8 task;
@@ -115,6 +117,10 @@ struct ncp_server {
struct tq_struct timeout_tq; /* DGRAM only: associated queue, we run timers from process context */
int timeout_last; /* DGRAM only: current timeout length */
int timeout_retries; /* DGRAM only: retries left */
+ struct {
+ size_t len;
+ __u8 data[128];
+ } unexpected_packet;
};
extern void ncp_tcp_rcv_proc(void *server);
diff --git a/include/linux/ncp_mount.h b/include/linux/ncp_mount.h
index 38880685f6f6..f46bddcdbd3b 100644
--- a/include/linux/ncp_mount.h
+++ b/include/linux/ncp_mount.h
@@ -66,6 +66,8 @@ struct ncp_mount_data_v4 {
unsigned long dir_mode;
};
+#define NCP_MOUNT_VERSION_V5 (5) /* Text only */
+
#ifdef __KERNEL__
struct ncp_mount_data_kernel {
@@ -83,6 +85,7 @@ struct ncp_mount_data_kernel {
__kernel_gid32_t gid;
__kernel_mode_t file_mode;
__kernel_mode_t dir_mode;
+ int info_fd;
};
#endif /* __KERNEL__ */