npf_rule_alloc
if ((rl = npf_rule_alloc(npf, req)) == NULL) {
npf_rule_t * npf_rule_alloc(npf_t *, const nvlist_t *);
rl = npf_rule_alloc(npf, rule);