pfr_setflags_ktable(struct pfr_ktable *kt, int setflag, int clrflag)
pfr_setflags_ktable(struct pfr_ktable *kt, int newf)
pfr_setflags_ktable(struct pfr_ktable *kt, int setflag, int clrflag){	struct pfr_kentryworkq	addrq;	int			oldf = kt->pfrkt_flags;	int			newf = (oldf | setflag) & ~clrflag;	if (!(newf & PFR_TFLAG_REFERENCED) &&	    !(newf & PFR_TFLAG_PERSIST))		newf &= ~PFR_TFLAG_ACTIVE;	if (!(newf & PFR_TFLAG_ACTIVE))		newf &= ~PFR_TFLAG_USRMASK;	if (!(newf & PFR_TFLAG_SETMASK)) {		RB_REMOVE(pfr_ktablehead, &pfr_ktables, kt);		pfr_destroy_ktable(kt, 1);		pfr_ktable_cnt--;		return;	}	if (!(newf & PFR_TFLAG_ACTIVE) && kt->pfrkt_cnt) {		pfr_enqueue_addrs(kt, &addrq, NULL, 0);		pfr_remove_kentries(kt, &addrq);	}	if (!(newf & PFR_TFLAG_INACTIVE) && kt->pfrkt_shadow != NULL) {		pfr_destroy_ktable(kt->pfrkt_shadow, 1);		kt->pfrkt_shadow = NULL;	}	kt->pfrkt_flags = newf;}