summaryrefslogtreecommitdiffstats
path: root/sys/netncp/ncp_subr.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_subr.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_subr.h')
-rw-r--r--sys/netncp/ncp_subr.h17
1 files changed, 4 insertions, 13 deletions
diff --git a/sys/netncp/ncp_subr.h b/sys/netncp/ncp_subr.h
index 7f493af..4eb6342 100644
--- a/sys/netncp/ncp_subr.h
+++ b/sys/netncp/ncp_subr.h
@@ -45,6 +45,7 @@
#define nwfs_printf NCP_PRINT
/* Maybe this should panic, but I dont like that */
#define NCPFATAL NCP_PRINT
+#define NCPERROR NCP_PRINT
/* socket debugging */
#ifdef NCP_SOCKET_DEBUG
@@ -109,25 +110,15 @@ struct proc;
struct ucred;
int ncp_init(void);
-void ncp_done(void);
+int ncp_done(void);
int ncp_chkintr(struct ncp_conn *conn, struct proc *p);
char*ncp_str_dup(char *s);
+int ncp_sysctlbyname(char *name, void *old, size_t *oldlenp,
+ void *new, size_t newlen, size_t *retval);
/* ncp_crypt.c */
void nw_keyhash(const u_char *key, const u_char *buf, int buflen, u_char *target);
void nw_encrypt(const u_char *fra, const u_char *buf, u_char *target);
void ncp_sign(const u_int32_t *state, const char *x, u_int32_t *ostate);
-/* ncp calls */
-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_SUBR_H_ */
OpenPOWER on IntegriCloud