1
2
3
4
5
6
7
8 #ifndef _LINUX_NCP_MOUNT_H
9 #define _LINUX_NCP_MOUNT_H
10
11 #include <linux/types.h>
12 #include <linux/ipx.h>
13 #include <linux/ncp.h>
14 #include <linux/ncp_fs_i.h>
15
16 #define NCP_MOUNT_VERSION 2
17
18 #define NCP_USERNAME_LEN (NCP_BINDERY_NAME_LEN)
19 #define NCP_PASSWORD_LEN 20
20
21
22 #define NCP_MOUNT_SOFT 0x0001
23 #define NCP_MOUNT_INTR 0x0002
24
25 struct ncp_mount_data {
26 int version;
27 unsigned int ncp_fd;
28 unsigned int wdog_fd;
29 unsigned int message_fd;
30 uid_t mounted_uid;
31
32 struct sockaddr_ipx serv_addr;
33 unsigned char server_name[NCP_BINDERY_NAME_LEN];
34
35 unsigned char mount_point[PATH_MAX+1];
36 unsigned char mounted_vol[NCP_VOLNAME_LEN+1];
37
38 unsigned int time_out;
39
40 unsigned int retry_count;
41 unsigned int flags;
42
43 uid_t uid;
44 gid_t gid;
45 mode_t file_mode;
46 mode_t dir_mode;
47 };
48
49 #endif