summaryrefslogtreecommitdiffstats
path: root/sys/netncp/ncp_ncp.h
diff options
context:
space:
mode:
authorbp <bp@FreeBSD.org>2001-03-10 05:24:45 +0000
committerbp <bp@FreeBSD.org>2001-03-10 05:24:45 +0000
commitdde32853641c8191e1074cc8a3d9b3ae9facfa27 (patch)
tree3496a4f9320d911a7b3ce90b4c45fe032119f1d2 /sys/netncp/ncp_ncp.h
parent04dc7092d8850e0118c795388fd40cbe91ee027e (diff)
downloadFreeBSD-src-dde32853641c8191e1074cc8a3d9b3ae9facfa27.zip
FreeBSD-src-dde32853641c8191e1074cc8a3d9b3ae9facfa27.tar.gz
Major update of NCP requester:
Use mchain API to work with mbuf chains. Do not depend on INET and IPX options. Allocate ncp_rq structure dynamically to prevent possible stack overflows. Let ncp_request() dispose control structure if request failed. Move all NCP wrappers to ncp_ncp.c file and all NCP request processing functions to ncp_rq.c file. Improve reconnection logic. Misc style fixes.
Diffstat (limited to 'sys/netncp/ncp_ncp.h')
-rw-r--r--sys/netncp/ncp_ncp.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/sys/netncp/ncp_ncp.h b/sys/netncp/ncp_ncp.h
index b43370d..779350b 100644
--- a/sys/netncp/ncp_ncp.h
+++ b/sys/netncp/ncp_ncp.h
@@ -111,13 +111,21 @@ struct ncp_rq;
struct proc;
struct ucred;
-int ncp_request(struct ncp_conn *conn,struct ncp_rq *rqp);
int ncp_ncp_connect(struct ncp_conn *conn);
int ncp_ncp_disconnect(struct ncp_conn *conn);
-int ncp_reconnect(struct ncp_conn *conn);
-int ncp_connect(struct ncp_conn_args *li,struct proc *p, struct ucred *cred,struct ncp_conn **aconn);
-int ncp_disconnect(struct ncp_conn *conn);
int ncp_login(struct ncp_conn *conn, char *user, int objtype, char *password,
- struct proc *p, struct ucred *cred);
+ struct proc *p, struct ucred *cred);
+int ncp_negotiate_buffersize(struct ncp_conn *conn, int size, int *target);
+int ncp_renegotiate_connparam(struct ncp_conn *conn, int buffsize,
+ u_int8_t in_options);
+int ncp_get_bindery_object_id(struct ncp_conn *conn,
+ u_int16_t object_type, char *object_name,
+ struct ncp_bindery_object *target,
+ struct proc *p,struct ucred *cred);
+int ncp_login_object(struct ncp_conn *conn, unsigned char *username,
+ int login_type, unsigned char *password,
+ struct proc *p,struct ucred *cred);
+int ncp_read(struct ncp_conn *conn, ncp_fh *file, struct uio *uiop, struct ucred *cred);
+int ncp_write(struct ncp_conn *conn, ncp_fh *file, struct uio *uiop, struct ucred *cred);
#endif /* _NCP_NCP_H_ */
OpenPOWER on IntegriCloud