Home
last modified time | relevance | path

Searched refs:anchor (Results 1 – 8 of 8) sorted by relevance

/xnu-8796.121.2/bsd/net/
H A Dpf_ruleset.c228 struct pf_anchor *anchor; in pf_find_ruleset() local
236 anchor = pf_find_anchor(path); in pf_find_ruleset()
237 if (anchor == NULL) { in pf_find_ruleset()
240 return &anchor->ruleset; in pf_find_ruleset()
248 struct pf_anchor *anchor; in pf_find_ruleset_with_owner() local
256 anchor = pf_find_anchor(path); in pf_find_ruleset_with_owner()
257 if (anchor == NULL) { in pf_find_ruleset_with_owner()
261 if ((owner && (!strcmp(owner, anchor->owner))) in pf_find_ruleset_with_owner()
262 || (is_anchor && !strcmp(anchor->owner, ""))) { in pf_find_ruleset_with_owner()
263 return &anchor->ruleset; in pf_find_ruleset_with_owner()
[all …]
H A Dpf_ioctl.c522 struct pf_anchor *anchor;
571 while ((anchor = RB_MIN(pf_anchor_global, &pf_anchors)) != NULL) {
573 if (pf_begin_rules(&ticket, i, anchor->name) == 0) {
574 pf_commit_rules(ticket, i, anchor->name);
634 pf_get_pool(char *anchor, u_int32_t ticket, u_int8_t rule_action, in pf_get_pool() argument
643 ruleset = pf_find_ruleset(anchor); in pf_get_pool()
912 pf_begin_rules(u_int32_t *ticket, int rs_num, const char *anchor) in pf_begin_rules() argument
920 rs = pf_find_or_create_ruleset(anchor); in pf_begin_rules()
936 pf_rollback_rules(u_int32_t ticket, int rs_num, char *anchor) in pf_rollback_rules() argument
946 rs = pf_find_ruleset(anchor); in pf_rollback_rules()
[all …]
H A Dif_pflog.c406 if (ruleset != NULL && ruleset->anchor != NULL) { in pflog_packet()
407 strlcpy(hdr.ruleset, ruleset->anchor->name, in pflog_packet()
H A Dpf_table.c1968 pfr_fix_anchor(char *anchor) in pfr_fix_anchor() argument
1973 if (anchor[0] == '/') { in pfr_fix_anchor()
1977 path = anchor; in pfr_fix_anchor()
1982 bcopy(path, anchor, siz - off); in pfr_fix_anchor()
1983 memset(anchor + siz - off, 0, off); in pfr_fix_anchor()
1985 if (anchor[siz - 1]) { in pfr_fix_anchor()
1988 for (i = strlen(anchor); i < siz; i++) { in pfr_fix_anchor()
1989 if (anchor[i]) { in pfr_fix_anchor()
2330 struct pf_anchor *ac = rs->anchor; in pfr_attach_table()
H A Dpfvar.h707 struct pf_anchor *anchor __attribute__((aligned(8))); member
1047 union pf_rule_ptr anchor; member
1123 u_int32_t anchor; member
1213 struct pf_anchor *anchor; member
1752 char anchor[MAXPATHLEN]; member
1761 char anchor[MAXPATHLEN]; member
1958 char anchor[MAXPATHLEN]; member
H A Dpf.c477 if (s->anchor.ptr != NULL) { \
478 s->anchor.ptr->states++; \
479 VERIFY(s->anchor.ptr->states != 0); \
493 if (s->anchor.ptr != NULL) { \
494 VERIFY(s->anchor.ptr->states > 0); \
495 s->anchor.ptr->states--; \
1741 if (cur->anchor.ptr != NULL) { in pf_free_state()
1742 VERIFY(cur->anchor.ptr->states > 0); in pf_free_state()
1743 if (--cur->anchor.ptr->states <= 0) { in pf_free_state()
1744 pf_rm_rule(NULL, cur->anchor.ptr); in pf_free_state()
[all …]
H A Dpf_norm.c1945 if (r->anchor == NULL) { in pf_normalize_ip()
2287 if (r->anchor == NULL) { in pf_normalize_ip6()
2643 if (r->anchor == NULL) { in pf_normalize_tcp()
/xnu-8796.121.2/tools/lldbmacros/
H A Dkauth.py24 anchor = unsigned(kern.globals.kauth_cred_table_anchor)
26 anchor = kern.globals.kauth_cred_table_anchor
31 for kauth_cred in IterateListEntry(anchor[i], "crw_link"):