pfctl_get_ruleset
int pfctl_get_ruleset(struct pfctl_handle *h, const char *path, uint32_t nr, struct pfioc_ruleset *rs);
if ((ret = pfctl_get_ruleset(pfh, npath, nr, &prs)) != 0)
if ((ret = pfctl_get_ruleset(pfh, npath, nr, &prs)) != 0)
if ((ret = pfctl_get_ruleset(pfh, anchor, nr, &pr)) != 0)