Lines Matching refs:hdr

163 		struct rxkad_level1_hdr hdr;  in rxkad_secure_packet_auth()  member
172 check = ntohl(sp->hdr.seq ^ sp->hdr.callNumber); in rxkad_secure_packet_auth()
175 tmpbuf.hdr.data_size = htonl(data_size); in rxkad_secure_packet_auth()
218 check = ntohl(sp->hdr.seq ^ sp->hdr.callNumber); in rxkad_secure_packet_encrypt()
272 call->debug_id, key_serial(call->conn->key), ntohl(sp->hdr.seq), in rxkad_secure_packet()
290 x |= sp->hdr.seq & cpu_to_be32(0x3fffffff); in rxkad_secure_packet()
291 tmpbuf.x[0] = sp->hdr.callNumber; in rxkad_secure_packet()
302 sp->hdr.cksum = htons(y); in rxkad_secure_packet()
371 check ^= ntohl(sp->hdr.seq ^ sp->hdr.callNumber); in rxkad_verify_packet_auth()
456 check ^= ntohl(sp->hdr.seq ^ sp->hdr.callNumber); in rxkad_verify_packet_encrypt()
506 ntohl(sp->hdr.seq)); in rxkad_verify_packet()
511 if (sp->hdr.securityIndex != RXRPC_SECURITY_RXKAD) { in rxkad_verify_packet()
525 x |= sp->hdr.seq & cpu_to_be32(0x3fffffff); in rxkad_verify_packet()
539 if (sp->hdr.cksum != cksum) { in rxkad_verify_packet()
570 struct rxrpc_header hdr; in rxkad_issue_challenge() local
595 hdr.epoch = conn->epoch; in rxkad_issue_challenge()
596 hdr.cid = conn->cid; in rxkad_issue_challenge()
597 hdr.callNumber = 0; in rxkad_issue_challenge()
598 hdr.seq = 0; in rxkad_issue_challenge()
599 hdr.type = RXRPC_PACKET_TYPE_CHALLENGE; in rxkad_issue_challenge()
600 hdr.flags = conn->out_clientflag; in rxkad_issue_challenge()
601 hdr.userStatus = 0; in rxkad_issue_challenge()
602 hdr.securityIndex = conn->security_ix; in rxkad_issue_challenge()
603 hdr._rsvd = 0; in rxkad_issue_challenge()
604 hdr.serviceId = conn->service_id; in rxkad_issue_challenge()
606 iov[0].iov_base = &hdr; in rxkad_issue_challenge()
607 iov[0].iov_len = sizeof(hdr); in rxkad_issue_challenge()
613 hdr.serial = htonl(atomic_inc_return(&conn->serial)); in rxkad_issue_challenge()
614 _proto("Tx CHALLENGE %%%u", ntohl(hdr.serial)); in rxkad_issue_challenge()
630 struct rxrpc_header *hdr, in rxkad_send_response() argument
647 hdr->epoch = conn->epoch; in rxkad_send_response()
648 hdr->seq = 0; in rxkad_send_response()
649 hdr->type = RXRPC_PACKET_TYPE_RESPONSE; in rxkad_send_response()
650 hdr->flags = conn->out_clientflag; in rxkad_send_response()
651 hdr->userStatus = 0; in rxkad_send_response()
652 hdr->_rsvd = 0; in rxkad_send_response()
654 iov[0].iov_base = hdr; in rxkad_send_response()
655 iov[0].iov_len = sizeof(*hdr); in rxkad_send_response()
663 hdr->serial = htonl(atomic_inc_return(&conn->serial)); in rxkad_send_response()
664 _proto("Tx RESPONSE %%%u", ntohl(hdr->serial)); in rxkad_send_response()
773 ntohl(sp->hdr.serial), version, nonce, min_level); in rxkad_respond_to_challenge()
808 return rxkad_send_response(conn, &sp->hdr, &resp, token->kad); in rxkad_respond_to_challenge()
1025 ntohl(sp->hdr.serial), version, kvno, ticket_len); in rxkad_verify_response()