Lines Matching refs:ntp
820 struct tim_tim *ntp;
826 ntp = tim_findlink(resp->ACCEPTOR_id);
827 if (ntp == NULL)
830 mutex_enter(&ntp->tim_mutex);
831 if (ntp->tim_peercred != NULL)
832 crfree(ntp->tim_peercred);
833 ntp->tim_peercred =
835 &ntp->tim_cpid);
836 if (ntp->tim_peercred != NULL)
837 crhold(ntp->tim_peercred);
839 if (!(ntp->tim_flags & DO_PEERNAME)) {
840 mutex_exit(&ntp->tim_mutex);
849 if (indp->SRC_length > ntp->tim_peermaxlen) {
853 mutex_exit(&ntp->tim_mutex);
862 if (ntp->tim_peermaxlen > 0)
863 kmem_free(ntp->tim_peername,
864 ntp->tim_peermaxlen);
865 ntp->tim_peername = ptr;
866 ntp->tim_peermaxlen = indp->SRC_length;
868 ntp->tim_peerlen = indp->SRC_length;
870 bcopy(ptr, ntp->tim_peername, ntp->tim_peerlen);
872 mutex_exit(&ntp->tim_mutex);