summaryrefslogtreecommitdiff
path: root/sys/nfs
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-07-16 15:01:52 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-07-16 15:01:52 +0000
commit409820beb8c529b2d4250186df30b67c28d5bbd7 (patch)
treec65e2b64ca1405b35939763029b725659493a010 /sys/nfs
parent7cffd1370ee5a668e1f416017a806f6298dfbdf8 (diff)
kill netiso stuff here as well, millert ok
Diffstat (limited to 'sys/nfs')
-rw-r--r--sys/nfs/nfs_srvcache.c8
-rw-r--r--sys/nfs/nfs_subs.c20
-rw-r--r--sys/nfs/nfs_syscalls.c14
3 files changed, 4 insertions, 38 deletions
diff --git a/sys/nfs/nfs_srvcache.c b/sys/nfs/nfs_srvcache.c
index ab6a69b4b84..7ee149aa29b 100644
--- a/sys/nfs/nfs_srvcache.c
+++ b/sys/nfs/nfs_srvcache.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_srvcache.c,v 1.10 2003/06/02 23:28:19 millert Exp $ */
+/* $OpenBSD: nfs_srvcache.c,v 1.11 2004/07/16 15:01:51 henning Exp $ */
/* $NetBSD: nfs_srvcache.c,v 1.12 1996/02/18 11:53:49 fvdl Exp $ */
/*
@@ -52,9 +52,6 @@
#include <sys/socketvar.h>
#include <netinet/in.h>
-#ifdef ISO
-#include <netiso/iso.h>
-#endif
#include <nfs/nfsm_subs.h>
#include <nfs/rpcv2.h>
#include <nfs/nfsproto.h>
@@ -76,7 +73,7 @@ u_long nfsrvhash;
#define FALSE 0
#define NETFAMILY(rp) \
- (((rp)->rc_flag & RC_INETADDR) ? AF_INET : AF_ISO)
+ (((rp)->rc_flag & RC_INETADDR) ? AF_INET : AF_UNSPEC)
/*
* Static array that defines which nfs rpc's are nonidempotent
@@ -251,7 +248,6 @@ loop:
rp->rc_flag |= RC_INETADDR;
rp->rc_inetaddr = saddr->sin_addr.s_addr;
break;
- case AF_ISO:
default:
rp->rc_flag |= RC_NAM;
rp->rc_nam = m_copym(nd->nd_nam, 0, M_COPYALL, M_WAIT);
diff --git a/sys/nfs/nfs_subs.c b/sys/nfs/nfs_subs.c
index a6b97bfc216..04f487a2a62 100644
--- a/sys/nfs/nfs_subs.c
+++ b/sys/nfs/nfs_subs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_subs.c,v 1.46 2004/07/13 21:04:29 millert Exp $ */
+/* $OpenBSD: nfs_subs.c,v 1.47 2004/07/16 15:01:51 henning Exp $ */
/* $NetBSD: nfs_subs.c,v 1.27.4.3 1996/07/08 20:34:24 jtc Exp $ */
/*
@@ -71,9 +71,6 @@
#include <miscfs/specfs/specdev.h>
#include <netinet/in.h>
-#ifdef ISO
-#include <netiso/iso.h>
-#endif
#include <dev/rndvar.h>
@@ -1707,21 +1704,6 @@ netaddr_match(family, haddr, nam)
inetaddr->sin_addr.s_addr == haddr->had_inetaddr)
return (1);
break;
-#ifdef ISO
- case AF_ISO:
- {
- struct sockaddr_iso *isoaddr1, *isoaddr2;
-
- isoaddr1 = mtod(nam, struct sockaddr_iso *);
- isoaddr2 = mtod(haddr->had_nam, struct sockaddr_iso *);
- if (isoaddr1->siso_family == AF_ISO &&
- isoaddr1->siso_nlen > 0 &&
- isoaddr1->siso_nlen == isoaddr2->siso_nlen &&
- SAME_ISOADDR(isoaddr1, isoaddr2))
- return (1);
- break;
- }
-#endif /* ISO */
default:
break;
};
diff --git a/sys/nfs/nfs_syscalls.c b/sys/nfs/nfs_syscalls.c
index 80157ad779f..a103a3d3528 100644
--- a/sys/nfs/nfs_syscalls.c
+++ b/sys/nfs/nfs_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_syscalls.c,v 1.41 2004/06/25 00:54:28 tholo Exp $ */
+/* $OpenBSD: nfs_syscalls.c,v 1.42 2004/07/16 15:01:51 henning Exp $ */
/* $NetBSD: nfs_syscalls.c,v 1.19 1996/02/18 11:53:52 fvdl Exp $ */
/*
@@ -61,9 +61,6 @@
#include <netinet/in.h>
#include <netinet/tcp.h>
-#ifdef ISO
-#include <netiso/iso.h>
-#endif
#include <nfs/xdr_subs.h>
#include <nfs/rpcv2.h>
#include <nfs/nfsproto.h>
@@ -377,7 +374,6 @@ sys_nfssvc(p, v, retval)
nuidp->nu_inetaddr =
saddr->sin_addr.s_addr;
break;
- case AF_ISO:
default:
nuidp->nu_flag |= NU_NAM;
nuidp->nu_nam = m_copym(
@@ -434,14 +430,6 @@ nfssvc_addsock(fp, mynam)
m_freem(mynam);
return (EPERM);
}
-#ifdef ISO
- } else if (so->so_proto->pr_protocol == ISOPROTO_CLTP) {
- tslp = nfs_cltpsock;
- if (tslp->ns_flag & SLP_VALID) {
- m_freem(mynam);
- return (EPERM);
- }
-#endif /* ISO */
}
if (so->so_type == SOCK_STREAM)
siz = NFS_MAXPACKET + sizeof (u_long);