aboutsummaryrefslogtreecommitdiff
path: root/sys/netncp/ncp_ncp.h
diff options
context:
space:
mode:
authorBoris Popov <bp@FreeBSD.org>2001-03-10 05:24:45 +0000
committerBoris Popov <bp@FreeBSD.org>2001-03-10 05:24:45 +0000
commit29ad26f932b432ca14c4ae27243aced04861d089 (patch)
treec6d3d45be821a1f3706fc1c7e88cdf7b2deaee0b /sys/netncp/ncp_ncp.h
parentdf54111fe4f2e0755b863d11a4da201e9f1ff506 (diff)
downloadsrc-29ad26f932b432ca14c4ae27243aced04861d089.tar.gz
src-29ad26f932b432ca14c4ae27243aced04861d089.zip
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.
Notes
Notes: svn path=/head/; revision=74060
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 b43370d90ebd..779350b73418 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_ */