Lines Matching refs:id

321  * \param id  This instance's ID number.
324 dns64_init(struct module_env* env, int id)
332 env->modinfo[id] = (void*)dns64_env;
344 * \param id This instance's ID number.
347 dns64_deinit(struct module_env* env, int id)
351 free(env->modinfo[id]);
352 env->modinfo[id] = NULL;
360 * \param id This module instance's ID number.
365 handle_ipv6_ptr(struct module_qstate* qstate, int id)
367 struct dns64_env* dns64_env = (struct dns64_env*)qstate->env->modinfo[id];
406 subq->curmod = id;
407 subq->ext_state[id] = module_state_initial;
408 subq->minfo[id] = NULL;
440 generate_type_A_query(struct module_qstate* qstate, int id)
460 subq->curmod = id;
461 subq->ext_state[id] = module_state_initial;
462 subq->minfo[id] = NULL;
477 * \param id This module's instance ID.
482 handle_event_pass(struct module_qstate* qstate, int id)
484 if ((uintptr_t)qstate->minfo[id] == DNS64_NEW_QUERY
489 return handle_ipv6_ptr(qstate, id);
492 (uintptr_t)qstate->minfo[id] == DNS64_NEW_QUERY
494 return generate_type_A_query(qstate, id);
497 if ((uintptr_t)qstate->minfo[id] == DNS64_SUBQUERY_FINISHED)
511 * \param id This module's instance ID.
516 handle_event_moddone(struct module_qstate* qstate, int id)
527 if ( (enum dns64_qstate)qstate->minfo[id] == DNS64_INTERNAL_QUERY
538 return generate_type_A_query(qstate, id);
548 * \param id This module's instance ID.
554 dns64_operate(struct module_qstate* qstate, enum module_ev event, int id,
559 id, strextstate(qstate->ext_state[id]),
566 qstate->minfo[id] = (void*)DNS64_NEW_QUERY;
568 qstate->ext_state[id] = handle_event_pass(qstate, id);
571 qstate->ext_state[id] = handle_event_moddone(qstate, id);
574 qstate->ext_state[id] = module_finished;
660 * \param id This module's instance ID.
665 dns64_adjust_a(int id, struct module_qstate* super, struct module_qstate* qstate)
667 struct dns64_env* dns64_env = (struct dns64_env*)super->env->modinfo[id];
711 dk->id = fk->id;
783 * \param id This module's instance ID.
787 dns64_inform_super(struct module_qstate* qstate, int id,
798 super->minfo[id] = (void*)DNS64_SUBQUERY_FINISHED;
810 dns64_adjust_a(id, super, qstate);
827 * \param id This module's instance ID.
830 dns64_clear(struct module_qstate* qstate, int id)
832 qstate->minfo[id] = NULL;
840 * \param id This module's instance ID.
843 dns64_get_mem(struct module_env* env, int id)
845 struct dns64_env* dns64_env = (struct dns64_env*)env->modinfo[id];