Lines Matching refs:htonl

211 	tmpbuf[0] = htonl(conn->proto.epoch);  in rxkad_prime_packet_security()
212 tmpbuf[1] = htonl(conn->proto.cid); in rxkad_prime_packet_security()
214 tmpbuf[3] = htonl(conn->security_ix); in rxkad_prime_packet_security()
277 hdr.data_size = htonl(data_size); in rxkad_secure_packet_auth()
324 rxkhdr.data_size = htonl(data_size | (u32)check << 16); in rxkad_secure_packet_encrypt()
403 call->crypto_buf[0] = htonl(call->call_id); in rxkad_secure_packet()
404 call->crypto_buf[1] = htonl(x); in rxkad_secure_packet()
642 call->crypto_buf[0] = htonl(call->call_id); in rxkad_verify_packet()
643 call->crypto_buf[1] = htonl(x); in rxkad_verify_packet()
743 challenge.version = htonl(2); in rxkad_issue_challenge()
744 challenge.nonce = htonl(conn->rxkad.nonce); in rxkad_issue_challenge()
745 challenge.min_level = htonl(0); in rxkad_issue_challenge()
754 whdr.epoch = htonl(conn->proto.epoch); in rxkad_issue_challenge()
755 whdr.cid = htonl(conn->proto.cid); in rxkad_issue_challenge()
773 whdr.serial = htonl(serial); in rxkad_issue_challenge()
814 whdr.epoch = htonl(hdr->epoch); in rxkad_send_response()
815 whdr.cid = htonl(hdr->cid); in rxkad_send_response()
831 whdr.serial = htonl(serial); in rxkad_send_response()
858 response->encrypted.checksum = htonl(csum); in rxkad_calc_response_checksum()
946 resp->version = htonl(RXKAD_VERSION); in rxkad_respond_to_challenge()
947 resp->encrypted.epoch = htonl(conn->proto.epoch); in rxkad_respond_to_challenge()
948 resp->encrypted.cid = htonl(conn->proto.cid); in rxkad_respond_to_challenge()
949 resp->encrypted.securityIndex = htonl(conn->security_ix); in rxkad_respond_to_challenge()
950 resp->encrypted.inc_nonce = htonl(nonce + 1); in rxkad_respond_to_challenge()
951 resp->encrypted.level = htonl(conn->params.security_level); in rxkad_respond_to_challenge()
952 resp->kvno = htonl(token->kad->kvno); in rxkad_respond_to_challenge()
953 resp->ticket_len = htonl(token->kad->ticket_len); in rxkad_respond_to_challenge()
954 resp->encrypted.call_id[0] = htonl(conn->channels[0].call_counter); in rxkad_respond_to_challenge()
955 resp->encrypted.call_id[1] = htonl(conn->channels[1].call_counter); in rxkad_respond_to_challenge()
956 resp->encrypted.call_id[2] = htonl(conn->channels[2].call_counter); in rxkad_respond_to_challenge()
957 resp->encrypted.call_id[3] = htonl(conn->channels[3].call_counter); in rxkad_respond_to_challenge()