• Home
  • Raw
  • Download

Lines Matching refs:kad

110 	plen = sizeof(*token) + sizeof(*token->kad) + tktlen;  in rxrpc_preparse_xdr_rxkad()
118 token->kad = kzalloc(plen, GFP_KERNEL); in rxrpc_preparse_xdr_rxkad()
119 if (!token->kad) { in rxrpc_preparse_xdr_rxkad()
125 token->kad->ticket_len = tktlen; in rxrpc_preparse_xdr_rxkad()
126 token->kad->vice_id = ntohl(xdr[0]); in rxrpc_preparse_xdr_rxkad()
127 token->kad->kvno = ntohl(xdr[1]); in rxrpc_preparse_xdr_rxkad()
128 token->kad->start = ntohl(xdr[4]); in rxrpc_preparse_xdr_rxkad()
129 token->kad->expiry = ntohl(xdr[5]); in rxrpc_preparse_xdr_rxkad()
130 token->kad->primary_flag = ntohl(xdr[6]); in rxrpc_preparse_xdr_rxkad()
131 memcpy(&token->kad->session_key, &xdr[2], 8); in rxrpc_preparse_xdr_rxkad()
132 memcpy(&token->kad->ticket, &xdr[8], tktlen); in rxrpc_preparse_xdr_rxkad()
135 _debug("TLEN: %u", token->kad->ticket_len); in rxrpc_preparse_xdr_rxkad()
136 _debug("EXPY: %x", token->kad->expiry); in rxrpc_preparse_xdr_rxkad()
137 _debug("KVNO: %u", token->kad->kvno); in rxrpc_preparse_xdr_rxkad()
138 _debug("PRIM: %u", token->kad->primary_flag); in rxrpc_preparse_xdr_rxkad()
140 token->kad->session_key[0], token->kad->session_key[1], in rxrpc_preparse_xdr_rxkad()
141 token->kad->session_key[2], token->kad->session_key[3], in rxrpc_preparse_xdr_rxkad()
142 token->kad->session_key[4], token->kad->session_key[5], in rxrpc_preparse_xdr_rxkad()
143 token->kad->session_key[6], token->kad->session_key[7]); in rxrpc_preparse_xdr_rxkad()
144 if (token->kad->ticket_len >= 8) in rxrpc_preparse_xdr_rxkad()
146 token->kad->ticket[0], token->kad->ticket[1], in rxrpc_preparse_xdr_rxkad()
147 token->kad->ticket[2], token->kad->ticket[3], in rxrpc_preparse_xdr_rxkad()
148 token->kad->ticket[4], token->kad->ticket[5], in rxrpc_preparse_xdr_rxkad()
149 token->kad->ticket[6], token->kad->ticket[7]); in rxrpc_preparse_xdr_rxkad()
160 expiry = rxrpc_u32_to_time64(token->kad->expiry); in rxrpc_preparse_xdr_rxkad()
757 plen = sizeof(*token->kad) + v1->ticket_length; in rxrpc_preparse()
764 token->kad = kzalloc(plen, GFP_KERNEL); in rxrpc_preparse()
765 if (!token->kad) in rxrpc_preparse()
769 token->kad->ticket_len = v1->ticket_length; in rxrpc_preparse()
770 token->kad->expiry = v1->expiry; in rxrpc_preparse()
771 token->kad->kvno = v1->kvno; in rxrpc_preparse()
772 memcpy(&token->kad->session_key, &v1->session_key, 8); in rxrpc_preparse()
773 memcpy(&token->kad->ticket, v1->ticket, v1->ticket_length); in rxrpc_preparse()
783 expiry = rxrpc_u32_to_time64(token->kad->expiry); in rxrpc_preparse()
806 kfree(token->kad); in rxrpc_free_token_list()
1077 toksize += RND(token->kad->ticket_len); in rxrpc_read()
1175 ENCODE(token->kad->vice_id); in rxrpc_read()
1176 ENCODE(token->kad->kvno); in rxrpc_read()
1177 ENCODE_BYTES(8, token->kad->session_key); in rxrpc_read()
1178 ENCODE(token->kad->start); in rxrpc_read()
1179 ENCODE(token->kad->expiry); in rxrpc_read()
1180 ENCODE(token->kad->primary_flag); in rxrpc_read()
1181 ENCODE_DATA(token->kad->ticket_len, token->kad->ticket); in rxrpc_read()