pfrke_counters
if (ke->pfrke_counters)
pool_put(&pfr_kcounters_pl, ke->pfrke_counters);
if (p->pfrke_counters) {
pool_put(&pfr_kcounters_pl, p->pfrke_counters);
p->pfrke_counters = NULL;
if (ke->pfrke_counters != NULL)
ad->pfra_states = ke->pfrke_counters->states;
if (ke->pfrke_counters) {
bcopy(ke->pfrke_counters->pfrkc_packets,
bcopy(ke->pfrke_counters->pfrkc_bytes,
if (ke->pfrke_counters == NULL)
ke->pfrke_counters = pool_get(&pfr_kcounters_pl,
if (ke->pfrke_counters != NULL) {
ke->pfrke_counters->pfrkc_packets[dir_idx][op_idx]++;
ke->pfrke_counters->pfrkc_bytes[dir_idx][op_idx] += len;
if (ke->pfrke_counters != NULL)
rpool->states = ke->pfrke_counters->states;
if (ke->pfrke_counters != NULL)
rpool->states = ke->pfrke_counters->states;
if (ke->pfrke_counters == NULL)
ke->pfrke_counters = pool_get(&pfr_kcounters_pl,
if (ke->pfrke_counters == NULL)
ke->pfrke_counters->states++;
return ke->pfrke_counters->states;
if (ke->pfrke_counters == NULL)
ke->pfrke_counters = pool_get(&pfr_kcounters_pl,
if (ke->pfrke_counters == NULL)
if (ke->pfrke_counters->states > 0)
ke->pfrke_counters->states--;
return ke->pfrke_counters->states;