Searched refs:state_mctx (Results 1 – 2 of 2) sorted by relevance
/dports/dns/bind911/bind-9.11.37/lib/dns/ |
H A D | geoip2.c | 107 static isc_mem_t *state_mctx = NULL; variable 139 if (state_mctx == NULL) { in state_key_init() 140 result = isc_mem_create(0, 0, &state_mctx); in state_key_init() 146 isc_mem_setdestroycheck(state_mctx, false); in state_key_init() 166 if (state_mctx == NULL) { in state_key_init() 167 result = isc_mem_create(0, 0, &state_mctx); in state_key_init() 170 isc_mem_setdestroycheck(state_mctx, false); in state_key_init() 200 state = (geoip_state_t *) isc_mem_get(state_mctx, in set_state() 225 isc_mem_attach(state_mctx, &state->mctx); in set_state() 658 if (state_mctx != NULL) { in dns_geoip_shutdown() [all …]
|
H A D | geoip.c | 86 static isc_mem_t *state_mctx = NULL; variable 117 if (state_mctx == NULL) in state_key_init() 118 result = isc_mem_create2(0, 0, &state_mctx, 0); in state_key_init() 121 isc_mem_setname(state_mctx, "geoip_state", NULL); in state_key_init() 122 isc_mem_setdestroycheck(state_mctx, false); in state_key_init() 177 state = (geoip_state_t *) isc_mem_get(state_mctx, in set_state() 185 isc_mem_put(state_mctx, state, sizeof(geoip_state_t)); in set_state() 189 isc_mem_attach(state_mctx, &state->mctx); in set_state() 879 if (state_mctx != NULL) in dns_geoip_shutdown() 880 isc_mem_detach(&state_mctx); in dns_geoip_shutdown()
|