/netbsd-src/sys/nfs/ |
H A D | krpc_subr.c | 163 sdata->prog = txdr_unsigned(prog); in krpc_portmap() 164 sdata->vers = txdr_unsigned(vers); in krpc_portmap() 165 sdata->proto = txdr_unsigned(proto); in krpc_portmap() 202 if (reply->rp_direction != txdr_unsigned(RPC_REPLY)) in krpccheck() 205 if (reply->rp_xid != txdr_unsigned(*(u_int32_t*)context)) in krpccheck() 290 call->rp_xid = txdr_unsigned(xid); in krpc_call() 292 call->rp_rpcvers = txdr_unsigned(2); in krpc_call() 293 call->rp_prog = txdr_unsigned(prog); in krpc_call() 294 call->rp_vers = txdr_unsigned(vers); in krpc_call() 295 call->rp_proc = txdr_unsigned(fun in krpc_call() [all...] |
H A D | nfs_subs.c | 638 *tl++ = txdr_unsigned(NFS_PROG); in nfsm_rpchead() 640 *tl++ = txdr_unsigned(NFS_VER3); in nfsm_rpchead() 642 *tl++ = txdr_unsigned(NFS_VER2); in nfsm_rpchead() 644 *tl++ = txdr_unsigned(procid); in nfsm_rpchead() 646 *tl++ = txdr_unsigned(nfsv2_procid[procid]); in nfsm_rpchead() 651 *tl++ = txdr_unsigned(auth_type); in nfsm_rpchead() 652 *tl = txdr_unsigned(authsiz); in nfsm_rpchead() 658 *tl++ = txdr_unsigned(kauth_cred_geteuid(cr)); in nfsm_rpchead() 659 *tl++ = txdr_unsigned(kauth_cred_getegid(cr)); in nfsm_rpchead() 661 *tl++ = txdr_unsigned(grpsiz); in nfsm_rpchead() [all …]
|
H A D | nfsm_subs.h | 113 *tl++ = txdr_unsigned((n)->n_fhsize); \ 131 *tl++ = txdr_unsigned(NFSRVFH_SIZE(f)); \ 143 *tl++ = txdr_unsigned(NFSRVFH_SIZE(f)); \ 308 *tl = txdr_unsigned((a)->va_mode); \ 316 *tl = txdr_unsigned((a)->va_uid); \ 324 *tl = txdr_unsigned((a)->va_gid); \ 340 *tl++ = txdr_unsigned(NFSV3SATTRTIME_TOCLIENT); \ 344 *tl = txdr_unsigned(NFSV3SATTRTIME_TOSERVER); \ 348 *tl = txdr_unsigned(NFSV3SATTRTIME_DONTCHANGE); \ 353 *tl++ = txdr_unsigned(NFSV3SATTRTIME_TOCLIEN [all...] |
H A D | nfs_socket.c | 577 *tl++ = txdr_unsigned(nd->nd_retxid); in nfs_rephead() 583 *tl = txdr_unsigned(err & ~NFSERR_AUTHERR); in nfs_rephead() 588 *tl++ = txdr_unsigned(RPC_VER2); in nfs_rephead() 589 *tl = txdr_unsigned(RPC_VER2); in nfs_rephead() 616 txdr_unsigned(nuidp->nu_timestamp.tv_sec in nfs_rephead() 619 txdr_unsigned(nuidp->nu_timestamp.tv_usec); in nfs_rephead() 632 *tl++ = txdr_unsigned(3 * NFSX_UNSIGNED); in nfs_rephead() 636 *tl++ = txdr_unsigned( in nfs_rephead() 648 *tl = txdr_unsigned(RPC_PROGUNAVAIL); in nfs_rephead() 651 *tl = txdr_unsigned(RPC_PROGMISMATCH); in nfs_rephead() [all …]
|
H A D | nfs_iod.c | 365 *nickp++ = txdr_unsigned(RPCAKN_NICKNAME); in nfs_getnickauth() 366 *nickp = txdr_unsigned(nuidp->nu_nickname); in nfs_getnickauth() 374 *verfp++ = txdr_unsigned(RPCAKN_NICKNAME); in nfs_getnickauth() 383 ktvin.tv_sec = txdr_unsigned(nuidp->nu_timestamp.tv_sec); in nfs_getnickauth() 384 ktvin.tv_usec = txdr_unsigned(nuidp->nu_timestamp.tv_usec); in nfs_getnickauth()
|
H A D | nfs_serv.c | 218 *tl = txdr_unsigned(outmode); in nfsrv3_access() 613 *tl = txdr_unsigned(len); in nfsrv_readlink() 831 *tl++ = txdr_unsigned(len); in nfsrv_read() 838 *tl = txdr_unsigned(len); in nfsrv_read() 999 *tl++ = txdr_unsigned(retlen); in nfsrv_write() 1001 *tl++ = txdr_unsigned(stable); in nfsrv_write() 1003 *tl++ = txdr_unsigned(NFSV3WRITE_FILESYNC); in nfsrv_write() 1011 *tl++ = txdr_unsigned(btv.tv_sec); in nfsrv_write() 1012 *tl = txdr_unsigned(btv.tv_usec); in nfsrv_write() 1305 *tl++ = txdr_unsigned(nfsd->nd_len); in nfsrv_writegather() [all …]
|
H A D | nfs_bootparam.c | 323 call->call_prog = txdr_unsigned(BOOTPARAM_PROG); in bp_whoami() 324 call->call_vers = txdr_unsigned(BOOTPARAM_VERS); in bp_whoami() 325 call->call_proc = txdr_unsigned(BOOTPARAM_WHOAMI); in bp_whoami() 331 call->call_arglen = txdr_unsigned(m->m_next->m_len); in bp_whoami()
|
H A D | nfsproto.h | 228 txdr_unsigned(((t) == VFIFO) ? MAKEIMODE(VCHR, (m)) : \ 230 #define vtonfsv3_mode(m) txdr_unsigned((m) & ALLPERMS) 232 #define vtonfsv2_type(a) txdr_unsigned(nfsv2_type[((int32_t)(a))]) 233 #define vtonfsv3_type(a) txdr_unsigned(nfsv3_type[((int32_t)(a))])
|
H A D | nfs_vnops.c | 340 *tl = txdr_unsigned(mode); in nfs_access() 696 sp->sa_uid = txdr_unsigned(vap->va_uid); in nfs_setattrrpc() 700 sp->sa_gid = txdr_unsigned(vap->va_gid); in nfs_setattrrpc() 701 sp->sa_size = txdr_unsigned(vap->va_size); in nfs_setattrrpc() 1151 *(tl + 2) = txdr_unsigned(len); in nfs_readrpc() 1155 *tl++ = txdr_unsigned(uiop->uio_offset); in nfs_readrpc() 1156 *tl++ = txdr_unsigned(len); in nfs_readrpc() 1277 *tl++ = txdr_unsigned(len); in nfs_writerpc() 1278 *tl++ = txdr_unsigned(*iomode); in nfs_writerpc() 1279 *tl = txdr_unsigned(len); in nfs_writerpc() [all …]
|
H A D | xdr_subs.h | 52 #define txdr_unsigned(v) (htonl((int32_t)(v))) 53 #define txdr_unsigned( global() macro
|
/netbsd-src/sys/fs/nfs/common/ |
H A D | krpc_subr.c | 158 sdata->prog = txdr_unsigned(prog); in krpc_portmap() 159 sdata->vers = txdr_unsigned(vers); in krpc_portmap() 160 sdata->proto = txdr_unsigned(IPPROTO_UDP); in krpc_portmap() 283 call->rp_xid = txdr_unsigned(xid); in krpc_call() 285 call->rp_rpcvers = txdr_unsigned(2); in krpc_call() 286 call->rp_prog = txdr_unsigned(prog); in krpc_call() 287 call->rp_vers = txdr_unsigned(vers); in krpc_call() 288 call->rp_proc = txdr_unsigned(func); in krpc_call() 290 call->rpc_auth.authtype = txdr_unsigned(AUTH_UNIX); in krpc_call() 291 call->rpc_auth.authlen = txdr_unsigned(sizeof(struct auth_unix)); in krpc_call() [all …]
|
H A D | nfs_commonsubs.c | 407 *tl = txdr_unsigned(siz); in nfsm_strtom() 462 newnfs_true = txdr_unsigned(TRUE); in newnfs_init() 463 newnfs_false = txdr_unsigned(FALSE); in newnfs_init() 464 newnfs_xdrneg1 = txdr_unsigned(-1); in newnfs_init() 2160 *tl = txdr_unsigned(NFSV4FHTYPE_PERSISTENT); in nfsv4_fillattr() 2197 *tl++ = txdr_unsigned(mp->mnt_stat.f_fsid.val[0]); in nfsv4_fillattr() 2199 *tl = txdr_unsigned(mp->mnt_stat.f_fsid.val[1]); in nfsv4_fillattr() 2209 *tl = txdr_unsigned(nfsrv_lease); in nfsv4_fillattr() 2214 *tl = txdr_unsigned(rderror); in nfsv4_fillattr() 2225 *tl = txdr_unsigned(NFSV4ACE_SUPTYPES); in nfsv4_fillattr() [all …]
|
H A D | nfs_commonacl.c | 305 *tl++ = txdr_unsigned(acetype); in nfsrv_buildace() 324 *tl++ = txdr_unsigned(aceflag); in nfsrv_buildace() 382 *tl++ = txdr_unsigned(acemask); in nfsrv_buildace() 383 *tl++ = txdr_unsigned(namelen); in nfsrv_buildace() 448 *entrycntp = txdr_unsigned(entrycnt); in nfsrv_buildacl()
|
H A D | nfs_common.h | 45 txdr_unsigned(((t) == VFIFO) ? MAKEIMODE(VCHR, (m)) : MAKEIMODE((t), (m))) 48 #define vtonfsv3_type(a) txdr_unsigned(nfsv3_type[((int32_t)(a))])
|
H A D | nfsproto.h | 641 txdr_unsigned(((t) == VFIFO) ? MAKEIMODE(VCHR, (m)) : \ 643 #define vtonfsv34_mode(m) txdr_unsigned((m) & 07777) 645 #define vtonfsv2_type(a) (((u_int32_t)(a)) >= 9 ? txdr_unsigned(NFNON) : \ 646 txdr_unsigned(newnfsv2_type[((u_int32_t)(a))])) 647 #define vtonfsv34_type(a) (((u_int32_t)(a)) >= 9 ? txdr_unsigned(NFNON) : \ 648 txdr_unsigned(nfsv34_type[((u_int32_t)(a))]))
|
H A D | old_xdr_subs.h | 54 #define txdr_unsigned(v) (htonl((int32_t)(v))) macro
|
H A D | xdr_subs.h | 52 #define txdr_unsigned(v) (htonl((int32_t)(v))) macro
|
/netbsd-src/sys/fs/nfs/client/ |
H A D | nfs_clrpcops.c | 215 *tl = txdr_unsigned(mode); in nfsrpc_accessrpc() 221 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_accessrpc() 396 *tl++ = txdr_unsigned(op->nfso_own->nfsow_seqid); in nfsrpc_openrpc() 397 *tl++ = txdr_unsigned(mode & NFSV4OPEN_ACCESSBOTH); in nfsrpc_openrpc() 398 *tl++ = txdr_unsigned((mode >> NFSLCK_SHIFT) & NFSV4OPEN_DENYBOTH); in nfsrpc_openrpc() 403 *tl++ = txdr_unsigned(NFSV4OPEN_NOCREATE); in nfsrpc_openrpc() 405 *tl = txdr_unsigned(NFSV4OPEN_CLAIMPREVIOUS); in nfsrpc_openrpc() 407 *tl = txdr_unsigned(delegtype); in nfsrpc_openrpc() 410 *tl = txdr_unsigned(NFSV4OPEN_CLAIMDELEGATECUR); in nfsrpc_openrpc() 420 *tl = txdr_unsigned(NFSV4OPEN_CLAIMNULL); in nfsrpc_openrpc() [all …]
|
H A D | nfs_clcomsubs.c | 197 *tl++ = txdr_unsigned(NFSV41_MINORVERSION); in nfscl_reqstart() 199 *tl++ = txdr_unsigned(NFSV4_MINORVERSION); in nfscl_reqstart() 202 *tl = txdr_unsigned(opcnt); in nfscl_reqstart() 206 *tl = txdr_unsigned(NFSV4OP_SEQUENCE); in nfscl_reqstart() 217 *tl = txdr_unsigned(NFSV4OP_PUTFH); in nfscl_reqstart() 223 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfscl_reqstart() 241 *tl = txdr_unsigned(nfsv4_opmap[procnum].op); in nfscl_reqstart()
|
H A D | nfs_clport.c | 844 sp->sa_uid = txdr_unsigned(vap->va_uid); in nfscl_fillsattr() 848 sp->sa_gid = txdr_unsigned(vap->va_gid); in nfscl_fillsattr() 854 sp->sa_size = txdr_unsigned(rdev); in nfscl_fillsattr() 856 sp->sa_size = txdr_unsigned(vap->va_size); in nfscl_fillsattr() 864 *tl = txdr_unsigned(vap->va_mode); in nfscl_fillsattr() 872 *tl = txdr_unsigned(vap->va_uid); in nfscl_fillsattr() 880 *tl = txdr_unsigned(vap->va_gid); in nfscl_fillsattr() 896 *tl++ = txdr_unsigned(NFSV3SATTRTIME_TOCLIENT); in nfscl_fillsattr() 900 *tl = txdr_unsigned(NFSV3SATTRTIME_TOSERVER); in nfscl_fillsattr() 904 *tl = txdr_unsigned(NFSV3SATTRTIME_DONTCHANGE); in nfscl_fillsattr() [all …]
|
H A D | nfs_clstate.c | 3498 *tl++ = txdr_unsigned(seqid); in nfscl_docb() 3499 *tl++ = txdr_unsigned(slotid); in nfscl_docb() 3500 *tl++ = txdr_unsigned(NFSV4_CBSLOTS - 1); in nfscl_docb() 3501 *tl = txdr_unsigned(NFSV4_CBSLOTS - 1); in nfscl_docb() 3542 *retopsp = txdr_unsigned(retops); in nfscl_docb() 4657 return (txdr_unsigned(nd->nd_repstat & 0xffff)); in nfscl_errmap() 4659 return (txdr_unsigned(NFSERR_BADXDR)); in nfscl_errmap() 4662 return (txdr_unsigned(nd->nd_repstat)); in nfscl_errmap() 4666 return (txdr_unsigned(nd->nd_repstat)); in nfscl_errmap() 4671 return (txdr_unsigned(nd->nd_repstat)); in nfscl_errmap() [all …]
|
/netbsd-src/sys/fs/nfs/server/ |
H A D | nfs_nfsdsubs.c | 1396 fp->fa_nlink = txdr_unsigned(nvap->na_nlink); in nfsrv_fillattr() 1397 fp->fa_uid = txdr_unsigned(nvap->na_uid); in nfsrv_fillattr() 1398 fp->fa_gid = txdr_unsigned(nvap->na_gid); in nfsrv_fillattr() 1404 fp->fa3_rdev.specdata1 = txdr_unsigned(NFSMAJOR(nvap->na_rdev)); in nfsrv_fillattr() 1405 fp->fa3_rdev.specdata2 = txdr_unsigned(NFSMINOR(nvap->na_rdev)); in nfsrv_fillattr() 1407 fp->fa3_fsid.nfsuquad[1] = txdr_unsigned(nvap->na_fsid); in nfsrv_fillattr() 1409 fp->fa3_fileid.nfsuquad[1] = txdr_unsigned(nvap->na_fileid); in nfsrv_fillattr() 1416 fp->fa2_size = txdr_unsigned(nvap->na_size); in nfsrv_fillattr() 1417 fp->fa2_blocksize = txdr_unsigned(nvap->na_blocksize); in nfsrv_fillattr() 1421 fp->fa2_rdev = txdr_unsigned(nvap->na_rdev); in nfsrv_fillattr() [all …]
|
H A D | nfs_nfsdserv.c | 162 *tl++ = txdr_unsigned(supported); in nfsrvd_access() 165 *tl = txdr_unsigned(nfsmode); in nfsrvd_access() 624 *tl = txdr_unsigned(len); in nfsrvd_readlink() 770 *tl++ = txdr_unsigned(cnt); in nfsrvd_read() 778 *tl = txdr_unsigned(cnt); in nfsrvd_read() 940 *tl++ = txdr_unsigned(retlen); in nfsrvd_write() 948 *tl++ = txdr_unsigned(stable); in nfsrvd_write() 950 *tl++ = txdr_unsigned(NFSWRITE_FILESYNC); in nfsrvd_write() 956 *tl++ = txdr_unsigned(nfsboottime.tv_sec); in nfsrvd_write() 957 *tl = txdr_unsigned(nfsboottime.tv_usec); in nfsrvd_write() [all …]
|
H A D | nfs_nfsdstate.c | 4158 *tl++ = txdr_unsigned(stateidp->seqid); in nfsrv_docallback() 4285 *tl++ = txdr_unsigned(NFSV41_MINORVERSION); in nfsrv_cbcallargs() 4286 *tl++ = txdr_unsigned(callback); in nfsrv_cbcallargs() 4287 *tl++ = txdr_unsigned(2); in nfsrv_cbcallargs() 4288 *tl = txdr_unsigned(NFSV4OP_CBSEQUENCE); in nfsrv_cbcallargs() 4293 *tl = txdr_unsigned(op); in nfsrv_cbcallargs() 4295 *tl++ = txdr_unsigned(NFSV4_MINORVERSION); in nfsrv_cbcallargs() 4296 *tl++ = txdr_unsigned(callback); in nfsrv_cbcallargs() 4297 *tl++ = txdr_unsigned(1); in nfsrv_cbcallargs() 4298 *tl = txdr_unsigned(op); in nfsrv_cbcallargs() [all …]
|
/netbsd-src/external/bsd/tcpdump/dist/ |
H A D | nfs.h | 232 txdr_unsigned(((t) == VFIFO) ? MAKEIMODE(VCHR, (m)) : \ 234 #define vtonfsv3_mode(m) txdr_unsigned((m) & 07777) 236 #define vtonfsv2_type(a) txdr_unsigned(nfsv2_type[((int32_t)(a))]) 237 #define vtonfsv3_type(a) txdr_unsigned(nfsv3_type[((int32_t)(a))])
|