Lines Matching defs:ncp_server
40 struct ncp_server { struct
42 struct ncp_mount_data_kernel m; /* Nearly all of the mount data is of
46 __u8 name_space[NCP_NUMBER_OF_VOLUMES + 2];
48 struct file *ncp_filp; /* File pointer to ncp socket */
49 struct socket *ncp_sock;/* ncp socket */
50 struct file *info_filp;
51 struct socket *info_sock;
53 u8 sequence;
54 u8 task;
55 u16 connection; /* Remote connection number */
57 u8 completion; /* Status message from server */
58 u8 conn_status; /* Bit 4 = 1 ==> Server going down, no
62 int buffer_size; /* Negotiated bufsize */
64 int reply_size; /* Size of last reply */
66 int packet_size;
67 unsigned char *packet; /* Here we prepare requests and
69 unsigned char *txbuf; /* Storage for current request */
70 unsigned char *rxbuf; /* Storage for reply to current request */
72 int lock; /* To prevent mismatch in protocols. */
73 struct mutex mutex;
75 int current_size; /* for packet preparation */
76 int has_subfunction;
77 int ncp_reply_size;
79 int root_setuped;
80 struct mutex root_setup_lock;
83 int sign_wanted; /* 1=Server needs signed packets */
84 int sign_active; /* 0=don't do signing, 1=do */
85 char sign_root[8]; /* generated from password and encr. key */
86 char sign_last[16];
89 struct {
94 } auth;
96 struct {
99 } priv;
100 struct rw_semaphore auth_rwsem;
103 struct nls_table *nls_vol;
104 struct nls_table *nls_io;
107 atomic_t dentry_ttl;
110 unsigned int flags;
112 spinlock_t requests_lock; /* Lock accesses to tx.requests, tx.creq and rcv.creq when STREAM mode */
114 void (*data_ready)(struct sock* sk, int len);
115 void (*error_report)(struct sock* sk);
116 void (*write_space)(struct sock* sk); /* STREAM mode only */
117 struct {
134 } rcv;
135 struct {
139 } tx;
140 struct timer_list timeout_tm; /* DGRAM only: timeout timer */
141 …uct work_struct timeout_tq; /* DGRAM only: associated queue, we run timers from process context */
142 int timeout_last; /* DGRAM only: current timeout length */
166 static inline int ncp_conn_valid(struct ncp_server *server) in ncp_conn_valid() argument