aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Lemon <jlemon@FreeBSD.org>2001-05-19 05:48:07 +0000
committerJonathan Lemon <jlemon@FreeBSD.org>2001-05-19 05:48:07 +0000
commit93e08c69312884357c85edfd62bbe9916e7e9c26 (patch)
tree555cc3f33845aac0b967205d4383e05ada90e275 /sys
parent1890520a771cd2a02d14d84e05301feafb6928ad (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/netncp/ncp_ncp.c4
-rw-r--r--sys/netncp/ncp_subr.c18
-rw-r--r--sys/netncp/ncp_subr.h2
3 files changed, 2 insertions, 22 deletions
diff --git a/sys/netncp/ncp_ncp.c b/sys/netncp/ncp_ncp.c
index 172248c1d2a6..7905ed0bbecc 100644
--- a/sys/netncp/ncp_ncp.c
+++ b/sys/netncp/ncp_ncp.c
@@ -200,8 +200,8 @@ ncp_renegotiate_connparam(struct ncp_conn *conn, int buffsize, u_int8_t in_optio
in_options |= NCP_SECURITY_LEVEL_SIGN_HEADERS;
if (conn->li.saddr.sa_family == AF_IPX) {
ilen = sizeof(ckslevel);
- error = ncp_sysctlbyname("net.ipx.ipx.checksum", &ckslevel, &ilen,
- NULL, 0, NULL);
+ error = kernel_sysctlbyname(curproc, "net.ipx.ipx.checksum",
+ &ckslevel, &ilen, NULL, 0, NULL);
if (error)
return error;
if (ckslevel == 2)
diff --git a/sys/netncp/ncp_subr.c b/sys/netncp/ncp_subr.c
index 7c2f0ead3030..a55e53501e13 100644
--- a/sys/netncp/ncp_subr.c
+++ b/sys/netncp/ncp_subr.c
@@ -95,24 +95,6 @@ ncp_at_exit(struct proc *p)
}
int
-ncp_sysctlbyname(char *name, void *old, size_t *oldlenp,
- void *new, size_t newlen, size_t *retval)
-{
- int oid[CTL_MAXNAME];
- int nmlen, plen, error;
-
- oid[0] = 0; /* sysctl internal magic */
- oid[1] = 3; /* name2oid */
- nmlen = sizeof(oid);
- error = kernel_sysctl(curproc, oid, 2, oid, &nmlen, name, strlen(name), &plen);
- if (error)
- return error;
- error = kernel_sysctl(curproc, oid, plen / sizeof(int), old, oldlenp,
- new, newlen, retval);
- return error;
-}
-
-int
ncp_init(void)
{
ncp_conn_init();
diff --git a/sys/netncp/ncp_subr.h b/sys/netncp/ncp_subr.h
index 4eb634232127..b1db7afd8ae9 100644
--- a/sys/netncp/ncp_subr.h
+++ b/sys/netncp/ncp_subr.h
@@ -113,8 +113,6 @@ int ncp_init(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);