Deleted Added
sdiff udiff text old ( 24495 ) new ( 24546 )
full compact
1/*
2 * Copyright (c) 1992, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Rick Macklem at The University of Guelph.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

40 The Regents of the University of California. All rights reserved.\n";
41#endif /* not lint */
42
43#ifndef lint
44/*
45static char sccsid[] = "@(#)mount_nfs.c 8.11 (Berkeley) 5/4/95";
46*/
47static const char rcsid[] =
48 "$Id: mount_nfs.c,v 1.18 1997/03/29 03:32:39 imp Exp $";
49#endif /* not lint */
50
51#include <sys/param.h>
52#include <sys/mount.h>
53#include <sys/socket.h>
54#include <sys/socketvar.h>
55#include <sys/stat.h>
56#include <sys/syslog.h>

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

187#ifdef ISO
188struct iso_addr *iso_addr __P((const char *));
189#endif
190void set_rpc_maxgrouplist __P((int));
191void usage __P((void)) __dead2;
192int xdr_dir __P((XDR *, char *));
193int xdr_fh __P((XDR *, struct nfhret *));
194
195int
196main(argc, argv)
197 int argc;
198 char *argv[];
199{
200 register int c;
201 register struct nfs_args *nfsargsp;
202 struct nfs_args nfsargs;

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

288 break;
289#ifdef NFSKERB
290 case 'm':
291 (void)strncpy(realm, optarg, REALM_SZ - 1);
292 realm[REALM_SZ - 1] = '\0';
293 break;
294#endif
295 case 'o':
296 getmntopts(optarg, mopts, &mntflags, &altflags);
297 if(altflags & ALTF_BG)
298 opflags |= BGRND;
299 if(altflags & ALTF_NOCONN)
300 nfsargsp->flags |= NFSMNT_NOCONN;
301 if(altflags & ALTF_DUMBTIMR)
302 nfsargsp->flags |= NFSMNT_DUMBTIMR;
303 if(altflags & ALTF_INTR)
304 nfsargsp->flags |= NFSMNT_INT;
305#ifdef NFSKERB
306 if(altflags & ALTF_KERB)
307 nfsargsp->flags |= NFSMNT_KERB;
308#endif
309 if(altflags & ALTF_NFSV3)
310 nfsargsp->flags |= NFSMNT_NFSV3;
311 if(altflags & ALTF_RDIRPLUS)
312 nfsargsp->flags |= NFSMNT_RDIRPLUS;
313 if(altflags & ALTF_MNTUDP)
314 mnttcp_ok = 0;
315 if(altflags & ALTF_RESVPORT)
316 nfsargsp->flags |= NFSMNT_RESVPORT;
317#ifdef ISO
318 if(altflags & ALTF_SEQPACKET)
319 nfsargsp->sotype = SOCK_SEQPACKET;
320#endif
321 if(altflags & ALTF_NQNFS)
322 nfsargsp->flags |= (NFSMNT_NQNFS|NFSMNT_NFSV3);
323 if(altflags & ALTF_SOFT)
324 nfsargsp->flags |= NFSMNT_SOFT;
325 if(altflags & ALTF_TCP) {
326 nfsargsp->sotype = SOCK_STREAM;
327 nfsproto = IPPROTO_TCP;
328 }
329 if(altflags & ALTF_PORT)
330 port_no = atoi(strstr(optarg, "port=") + 5);
331 altflags = 0;
332 break;
333 case 'P':
334 nfsargsp->flags |= NFSMNT_RESVPORT;
335 break;
336#ifdef ISO
337 case 'p':
338 nfsargsp->sotype = SOCK_SEQPACKET;
339 break;

--- 438 unchanged lines hidden ---