Lines Matching refs:reply

444 	if (ntohl(rpc_pkt.u.reply.id) > rpc_id)  in rpc_lookup_reply()
446 else if (ntohl(rpc_pkt.u.reply.id) < rpc_id) in rpc_lookup_reply()
449 if (rpc_pkt.u.reply.rstatus || in rpc_lookup_reply()
450 rpc_pkt.u.reply.verifier || in rpc_lookup_reply()
451 rpc_pkt.u.reply.astatus) in rpc_lookup_reply()
456 nfs_server_mount_port = ntohl(rpc_pkt.u.reply.data[0]); in rpc_lookup_reply()
459 nfs_server_port = ntohl(rpc_pkt.u.reply.data[0]); in rpc_lookup_reply()
474 if (ntohl(rpc_pkt.u.reply.id) > rpc_id) in nfs_mount_reply()
476 else if (ntohl(rpc_pkt.u.reply.id) < rpc_id) in nfs_mount_reply()
479 if (rpc_pkt.u.reply.rstatus || in nfs_mount_reply()
480 rpc_pkt.u.reply.verifier || in nfs_mount_reply()
481 rpc_pkt.u.reply.astatus || in nfs_mount_reply()
482 rpc_pkt.u.reply.data[0]) in nfs_mount_reply()
487 memcpy(dirfh, rpc_pkt.u.reply.data + 1, NFS_FHSIZE); in nfs_mount_reply()
500 if (ntohl(rpc_pkt.u.reply.id) > rpc_id) in nfs_umountall_reply()
502 else if (ntohl(rpc_pkt.u.reply.id) < rpc_id) in nfs_umountall_reply()
505 if (rpc_pkt.u.reply.rstatus || in nfs_umountall_reply()
506 rpc_pkt.u.reply.verifier || in nfs_umountall_reply()
507 rpc_pkt.u.reply.astatus) in nfs_umountall_reply()
524 if (ntohl(rpc_pkt.u.reply.id) > rpc_id) in nfs_lookup_reply()
526 else if (ntohl(rpc_pkt.u.reply.id) < rpc_id) in nfs_lookup_reply()
529 if (rpc_pkt.u.reply.rstatus || in nfs_lookup_reply()
530 rpc_pkt.u.reply.verifier || in nfs_lookup_reply()
531 rpc_pkt.u.reply.astatus || in nfs_lookup_reply()
532 rpc_pkt.u.reply.data[0]) { in nfs_lookup_reply()
533 switch (ntohl(rpc_pkt.u.reply.astatus)) { in nfs_lookup_reply()
538 switch (ntohl(rpc_pkt.u.reply.data[0])) { in nfs_lookup_reply()
544 ntohl(rpc_pkt.u.reply.data[0]), in nfs_lookup_reply()
545 ntohl(rpc_pkt.u.reply.data[1])); in nfs_lookup_reply()
556 ntohl(rpc_pkt.u.reply.data[0]), in nfs_lookup_reply()
557 ntohl(rpc_pkt.u.reply.data[1])); in nfs_lookup_reply()
567 ntohl(rpc_pkt.u.reply.astatus)); in nfs_lookup_reply()
574 if (((uchar *)&(rpc_pkt.u.reply.data[0]) - (uchar *)(&rpc_pkt) + NFS_FHSIZE) > len) in nfs_lookup_reply()
576 memcpy(filefh, rpc_pkt.u.reply.data + 1, NFS_FHSIZE); in nfs_lookup_reply()
578 filefh3_length = ntohl(rpc_pkt.u.reply.data[1]); in nfs_lookup_reply()
581 if (((uchar *)&(rpc_pkt.u.reply.data[0]) - (uchar *)(&rpc_pkt) + filefh3_length) > len) in nfs_lookup_reply()
583 memcpy(filefh, rpc_pkt.u.reply.data + 2, filefh3_length); in nfs_lookup_reply()
627 if (ntohl(rpc_pkt.u.reply.id) > rpc_id) in nfs_readlink_reply()
629 else if (ntohl(rpc_pkt.u.reply.id) < rpc_id) in nfs_readlink_reply()
632 if (rpc_pkt.u.reply.rstatus || in nfs_readlink_reply()
633 rpc_pkt.u.reply.verifier || in nfs_readlink_reply()
634 rpc_pkt.u.reply.astatus || in nfs_readlink_reply()
635 rpc_pkt.u.reply.data[0]) in nfs_readlink_reply()
640 nfs3_get_attributes_offset(rpc_pkt.u.reply.data); in nfs_readlink_reply()
644 rlen = ntohl(rpc_pkt.u.reply.data[1 + nfsv3_data_offset]); in nfs_readlink_reply()
646 if (((uchar *)&(rpc_pkt.u.reply.data[0]) - (uchar *)(&rpc_pkt) + rlen) > len) in nfs_readlink_reply()
649 if (*((char *)&(rpc_pkt.u.reply.data[2 + nfsv3_data_offset])) != '/') { in nfs_readlink_reply()
655 (uchar *)&(rpc_pkt.u.reply.data[2 + nfsv3_data_offset]), in nfs_readlink_reply()
660 (uchar *)&(rpc_pkt.u.reply.data[2 + nfsv3_data_offset]), in nfs_readlink_reply()
675 memcpy(&rpc_pkt.u.data[0], pkt, sizeof(rpc_pkt.u.reply)); in nfs_read_reply()
677 if (ntohl(rpc_pkt.u.reply.id) > rpc_id) in nfs_read_reply()
679 else if (ntohl(rpc_pkt.u.reply.id) < rpc_id) in nfs_read_reply()
682 if (rpc_pkt.u.reply.rstatus || in nfs_read_reply()
683 rpc_pkt.u.reply.verifier || in nfs_read_reply()
684 rpc_pkt.u.reply.astatus || in nfs_read_reply()
685 rpc_pkt.u.reply.data[0]) { in nfs_read_reply()
686 if (rpc_pkt.u.reply.rstatus) in nfs_read_reply()
688 if (rpc_pkt.u.reply.astatus) in nfs_read_reply()
690 return -ntohl(rpc_pkt.u.reply.data[0]); in nfs_read_reply()
700 rlen = ntohl(rpc_pkt.u.reply.data[18]); in nfs_read_reply()
701 data_ptr = (uchar *)&(rpc_pkt.u.reply.data[19]); in nfs_read_reply()
704 nfs3_get_attributes_offset(rpc_pkt.u.reply.data); in nfs_read_reply()
707 rlen = ntohl(rpc_pkt.u.reply.data[1 + nfsv3_data_offset]); in nfs_read_reply()
713 &(rpc_pkt.u.reply.data[4 + nfsv3_data_offset]); in nfs_read_reply()
716 if (((uchar *)&(rpc_pkt.u.reply.data[0]) - (uchar *)(&rpc_pkt) + rlen) > len) in nfs_read_reply()
746 int reply; in nfs_handler() local
772 reply = nfs_mount_reply(pkt, len); in nfs_handler()
773 if (reply == -NFS_RPC_DROP) { in nfs_handler()
775 } else if (reply == -NFS_RPC_ERR) { in nfs_handler()
787 reply = nfs_umountall_reply(pkt, len); in nfs_handler()
788 if (reply == -NFS_RPC_DROP) { in nfs_handler()
790 } else if (reply == -NFS_RPC_ERR) { in nfs_handler()
800 reply = nfs_lookup_reply(pkt, len); in nfs_handler()
801 if (reply == -NFS_RPC_DROP) { in nfs_handler()
803 } else if (reply == -NFS_RPC_ERR) { in nfs_handler()
807 } else if (reply == -NFS_RPC_PROG_MISMATCH && in nfs_handler()
824 reply = nfs_readlink_reply(pkt, len); in nfs_handler()
825 if (reply == -NFS_RPC_DROP) { in nfs_handler()
827 } else if (reply == -NFS_RPC_ERR) { in nfs_handler()