Lines Matching defs:ncp_server
40 struct ncp_server { struct
41 struct rcu_head rcu;
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 socket *ncp_sock;/* ncp socket */
49 struct socket *info_sock;
51 u8 sequence;
52 u8 task;
53 u16 connection; /* Remote connection number */
55 u8 completion; /* Status message from server */
56 u8 conn_status; /* Bit 4 = 1 ==> Server going down, no
60 int buffer_size; /* Negotiated bufsize */
62 int reply_size; /* Size of last reply */
64 int packet_size;
65 unsigned char *packet; /* Here we prepare requests and
67 unsigned char *txbuf; /* Storage for current request */
68 unsigned char *rxbuf; /* Storage for reply to current request */
70 int lock; /* To prevent mismatch in protocols. */
71 struct mutex mutex;
73 int current_size; /* for packet preparation */
74 int has_subfunction;
75 int ncp_reply_size;
77 int root_setuped;
78 struct mutex root_setup_lock;
81 int sign_wanted; /* 1=Server needs signed packets */
82 int sign_active; /* 0=don't do signing, 1=do */
83 char sign_root[8]; /* generated from password and encr. key */
84 char sign_last[16];
87 struct {
92 } auth;
94 struct {
97 } priv;
98 struct rw_semaphore auth_rwsem;
101 struct nls_table *nls_vol;
102 struct nls_table *nls_io;
105 atomic_t dentry_ttl;
108 unsigned int flags;
110 spinlock_t requests_lock; /* Lock accesses to tx.requests, tx.creq and rcv.creq when STREAM mode */
112 void (*data_ready)(struct sock* sk);
113 void (*error_report)(struct sock* sk);
114 void (*write_space)(struct sock* sk); /* STREAM mode only */
115 struct {
132 } rcv;
133 struct {
137 } tx;
138 struct timer_list timeout_tm; /* DGRAM only: timeout timer */
139 …uct work_struct timeout_tq; /* DGRAM only: associated queue, we run timers from process context */
140 int timeout_last; /* DGRAM only: current timeout length */
164 static inline int ncp_conn_valid(struct ncp_server *server) in ncp_conn_valid() argument