Lines Matching refs:anchor
233 fprintf(stderr, "[-a anchor] [-D macro=value] [-F modifier]\n");
662 memcpy(pp.anchor, anchorname, sizeof(pp.anchor));
773 memcpy(pr.anchor, path, sizeof(pr.anchor));
922 memcpy(pr.anchor, anchorname, sizeof(pr.anchor));
1142 rs = &pf->anchor->ruleset;
1144 if (anchor_call[0] && r->anchor == NULL) {
1146 * Don't make non-brace anchors part of the main anchor pool.
1148 if ((r->anchor = calloc(1, sizeof(*r->anchor))) == NULL)
1151 pf_init_ruleset(&r->anchor->ruleset);
1152 r->anchor->ruleset.anchor = r->anchor;
1153 if (strlcpy(r->anchor->path, anchor_call,
1154 sizeof(rule->anchor->path)) >= sizeof(rule->anchor->path))
1158 err(1, "pfctl_add_rule: bad anchor name %s",
1162 if (strlcpy(r->anchor->name, p,
1163 sizeof(rule->anchor->name)) >= sizeof(rule->anchor->name))
1215 pf->anchor = rs->anchor;
1218 snprintf(&path[len], MAXPATHLEN - len, "/%s", pf->anchor->name);
1220 snprintf(&path[len], MAXPATHLEN - len, "%s", pf->anchor->name);
1229 path, rs->anchor))) {
1246 if (r->anchor) {
1248 &r->anchor->ruleset, rs_num, depth + 1)))
1276 /* set up anchor before adding to path for anchor_call */
1279 if (strlcpy(pr.anchor, path, sizeof(pr.anchor)) >= sizeof(pr.anchor))
1282 if (r->anchor) {
1283 if (r->anchor->match) {
1286 "/%s", r->anchor->name);
1289 "%s", r->anchor->name);
1292 name = r->anchor->path;
1301 if (r->anchor && strlcpy(pr.anchor_call, name,
1310 print_rule(r, r->anchor ? r->anchor->name : "",
1358 pf_main_anchor.ruleset.anchor = &pf_main_anchor;
1383 /* non-brace anchor, create without resolving the path */
1384 if ((pf.anchor = calloc(1, sizeof(*pf.anchor))) == NULL)
1386 rs = &pf.anchor->ruleset;
1388 rs->anchor = pf.anchor;
1389 if (strlcpy(pf.anchor->path, anchorname,
1390 sizeof(pf.anchor->path)) >= sizeof(pf.anchor->path))
1392 if (strlcpy(pf.anchor->name, anchorname,
1393 sizeof(pf.anchor->name)) >= sizeof(pf.anchor->name))
1397 pf.astack[0] = pf.anchor;
1411 if (pfctl_ruleset_trans(&pf, anchorname, pf.anchor))
1452 /* process "load anchor" directives */
1912 fprintf(stderr, "Anchor '%s' not found.\n",
2130 errx(1, "anchor name '%s' too long",
2227 errx(1, "anchor names beginning with '_' cannot "
2317 errx(1, "anchor names beginning with '_' cannot "