Deleted Added
full compact
vfs_export.c (27892) vfs_export.c (28270)
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 22 unchanged lines hidden (view full) ---

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 22 unchanged lines hidden (view full) ---

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
39 * $Id: vfs_subr.c,v 1.89 1997/07/17 07:17:31 dfr Exp $
39 * $Id: vfs_subr.c,v 1.90 1997/08/04 07:43:28 dyson Exp $
40 */
41
42/*
43 * External virtual filesystem routines
44 */
45#include "opt_ddb.h"
46#include "opt_devfs.h"
47

--- 2092 unchanged lines hidden (view full) ---

2140 nfs_pub.np_valid = 1;
2141 return (0);
2142}
2143
2144struct netcred *
2145vfs_export_lookup(mp, nep, nam)
2146 register struct mount *mp;
2147 struct netexport *nep;
40 */
41
42/*
43 * External virtual filesystem routines
44 */
45#include "opt_ddb.h"
46#include "opt_devfs.h"
47

--- 2092 unchanged lines hidden (view full) ---

2140 nfs_pub.np_valid = 1;
2141 return (0);
2142}
2143
2144struct netcred *
2145vfs_export_lookup(mp, nep, nam)
2146 register struct mount *mp;
2147 struct netexport *nep;
2148 struct mbuf *nam;
2148 struct sockaddr *nam;
2149{
2150 register struct netcred *np;
2151 register struct radix_node_head *rnh;
2152 struct sockaddr *saddr;
2153
2154 np = NULL;
2155 if (mp->mnt_flag & MNT_EXPORTED) {
2156 /*
2157 * Lookup in the export list first.
2158 */
2159 if (nam != NULL) {
2149{
2150 register struct netcred *np;
2151 register struct radix_node_head *rnh;
2152 struct sockaddr *saddr;
2153
2154 np = NULL;
2155 if (mp->mnt_flag & MNT_EXPORTED) {
2156 /*
2157 * Lookup in the export list first.
2158 */
2159 if (nam != NULL) {
2160 saddr = mtod(nam, struct sockaddr *);
2160 saddr = nam;
2161 rnh = nep->ne_rtable[saddr->sa_family];
2162 if (rnh != NULL) {
2163 np = (struct netcred *)
2164 (*rnh->rnh_matchaddr)((caddr_t)saddr,
2165 rnh);
2166 if (np && np->netc_rnodes->rn_flags & RNF_ROOT)
2167 np = NULL;
2168 }

--- 104 unchanged lines hidden ---
2161 rnh = nep->ne_rtable[saddr->sa_family];
2162 if (rnh != NULL) {
2163 np = (struct netcred *)
2164 (*rnh->rnh_matchaddr)((caddr_t)saddr,
2165 rnh);
2166 if (np && np->netc_rnodes->rn_flags & RNF_ROOT)
2167 np = NULL;
2168 }

--- 104 unchanged lines hidden ---