Lines Matching +full:2 +full:nd

15  * 2. Redistributions in binary form must reproduce the above copyright
67 struct nfsrv_descript nd; in nfscb_program() local
73 memset(&nd, 0, sizeof(nd)); in nfscb_program()
80 nd.nd_procnum = rqst->rq_proc; in nfscb_program()
81 nd.nd_flag = (ND_NFSCB | ND_NFSV4); in nfscb_program()
88 nd.nd_mrep = rqst->rq_args; in nfscb_program()
90 newnfs_realign(&nd.nd_mrep, M_WAITOK); in nfscb_program()
91 nd.nd_md = nd.nd_mrep; in nfscb_program()
92 nd.nd_dpos = mtod(nd.nd_md, caddr_t); in nfscb_program()
93 nd.nd_nam = svc_getrpccaller(rqst); in nfscb_program()
94 nd.nd_nam2 = rqst->rq_addr; in nfscb_program()
95 nd.nd_mreq = NULL; in nfscb_program()
96 nd.nd_cred = NULL; in nfscb_program()
98 NFSCL_DEBUG(1, "cbproc=%d\n",nd.nd_procnum); in nfscb_program()
99 if (nd.nd_procnum != NFSPROC_NULL) { in nfscb_program()
100 if (!svc_getcred(rqst, &nd.nd_cred, &credflavor)) { in nfscb_program()
103 m_freem(nd.nd_mrep); in nfscb_program()
110 mac_cred_associate_nfsd(nd.nd_cred); in nfscb_program()
116 nd.nd_flag |= ND_EXTPG; in nfscb_program()
117 nd.nd_maxextsiz = maxlen; in nfscb_program()
120 cacherep = nfs_cbproc(&nd, rqst->rq_xid); in nfscb_program()
122 NFSMGET(nd.nd_mreq); in nfscb_program()
123 nd.nd_mreq->m_len = 0; in nfscb_program()
126 if (nd.nd_mrep != NULL) in nfscb_program()
127 m_freem(nd.nd_mrep); in nfscb_program()
129 if (nd.nd_cred != NULL) in nfscb_program()
130 crfree(nd.nd_cred); in nfscb_program()
133 if (nd.nd_mreq != NULL) in nfscb_program()
134 m_freem(nd.nd_mreq); in nfscb_program()
139 if (nd.nd_mreq == NULL) { in nfscb_program()
145 if (nd.nd_repstat & NFSERR_AUTHERR) { in nfscb_program()
146 svcerr_auth(rqst, nd.nd_repstat & ~NFSERR_AUTHERR); in nfscb_program()
147 if (nd.nd_mreq != NULL) in nfscb_program()
148 m_freem(nd.nd_mreq); in nfscb_program()
149 } else if (!svc_sendreply_mbuf(rqst, nd.nd_mreq)) in nfscb_program()
161 nfs_cbproc(struct nfsrv_descript *nd, u_int32_t xid) in nfs_cbproc() argument
166 if (nd->nd_nam2 == NULL) in nfs_cbproc()
167 nd->nd_flag |= ND_STREAMSOCK; in nfs_cbproc()
169 nfscl_docb(nd, td); in nfs_cbproc()
170 if (nd->nd_repstat == NFSERR_DONTREPLY) in nfs_cbproc()