Lines Matching refs:nd

97 nfs_parse_options(const char *envopts, struct nfs_args *nd)  in nfs_parse_options()  argument
108 nd->flags |= NFSMNT_SOFT; in nfs_parse_options()
110 nd->flags |= NFSMNT_INT; in nfs_parse_options()
112 nd->flags |= NFSMNT_NOCONN; in nfs_parse_options()
114 nd->flags |= NFSMNT_NOLOCKD; in nfs_parse_options()
116 nd->flags |= NFSMNT_NOCTO; in nfs_parse_options()
118 nd->flags &= ~(NFSMNT_NFSV3 | NFSMNT_NFSV4); in nfs_parse_options()
120 nd->flags &= ~NFSMNT_NFSV4; in nfs_parse_options()
121 nd->flags |= NFSMNT_NFSV3; in nfs_parse_options()
123 nd->sotype = SOCK_STREAM; in nfs_parse_options()
125 nd->sotype = SOCK_DGRAM; in nfs_parse_options()
129 nd->rsize = (int) v; in nfs_parse_options()
130 nd->flags |= NFSMNT_RSIZE; in nfs_parse_options()
135 nd->wsize = (int) v; in nfs_parse_options()
136 nd->flags |= NFSMNT_WSIZE; in nfs_parse_options()
180 struct nfs_diskless *nd = &nfs_diskless; in nfs_setup_diskless() local
220 bcopy(&myaddr, &nd->myif.ifra_addr, sizeof(myaddr)); in nfs_setup_diskless()
221 bcopy(&myaddr, &nd->myif.ifra_broadaddr, sizeof(myaddr)); in nfs_setup_diskless()
223 &nd->myif.ifra_broadaddr)->sin_addr.s_addr = in nfs_setup_diskless()
225 bcopy(&netmask, &nd->myif.ifra_mask, sizeof(netmask)); in nfs_setup_diskless()
295 strlcpy(nd->myif.ifra_name, if_name(ifp), in nfs_setup_diskless()
296 sizeof(nd->myif.ifra_name)); in nfs_setup_diskless()
299 inaddr_to_sockaddr("boot.netif.gateway", &nd->mygateway); in nfs_setup_diskless()
302 nd->root_args.rsize = 8192; /* XXX tunable? */ in nfs_setup_diskless()
303 nd->root_args.wsize = 8192; in nfs_setup_diskless()
304 nd->root_args.sotype = SOCK_STREAM; in nfs_setup_diskless()
305 nd->root_args.flags = (NFSMNT_WSIZE | in nfs_setup_diskless()
308 &nd->root_saddr)) { in nfs_setup_diskless()
312 nd->root_saddr.sin_port = htons(NFS_PORT); in nfs_setup_diskless()
314 &nd->root_fh[0], NFSX_V2FH) == 0) { in nfs_setup_diskless()
319 strncpy(nd->root_hostnam, cp, MNAMELEN - 1); in nfs_setup_diskless()
329 args.flags = nd->root_args.flags; in nfs_setup_diskless()
330 args.sotype = nd->root_args.sotype; in nfs_setup_diskless()
331 args.rsize = nd->root_args.rsize; in nfs_setup_diskless()
332 args.wsize = nd->root_args.wsize; in nfs_setup_diskless()
334 nd->root_args.flags = args.flags; in nfs_setup_diskless()
335 nd->root_args.sotype = args.sotype; in nfs_setup_diskless()
336 nd->root_args.rsize = args.rsize; in nfs_setup_diskless()
337 nd->root_args.wsize = args.wsize; in nfs_setup_diskless()