Home
last modified time | relevance | path

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

/xnu-8020.101.4/bsd/net/
H A Dpf_ruleset.c204 struct pf_anchor *anchor; in pf_find_ruleset() local
212 anchor = pf_find_anchor(path); in pf_find_ruleset()
213 if (anchor == NULL) { in pf_find_ruleset()
216 return &anchor->ruleset; in pf_find_ruleset()
224 struct pf_anchor *anchor; in pf_find_ruleset_with_owner() local
232 anchor = pf_find_anchor(path); in pf_find_ruleset_with_owner()
233 if (anchor == NULL) { in pf_find_ruleset_with_owner()
237 if ((owner && (!strcmp(owner, anchor->owner))) in pf_find_ruleset_with_owner()
238 || (is_anchor && !strcmp(anchor->owner, ""))) { in pf_find_ruleset_with_owner()
239 return &anchor->ruleset; in pf_find_ruleset_with_owner()
[all …]
H A Dpf_ioctl.c519 struct pf_anchor *anchor;
568 while ((anchor = RB_MIN(pf_anchor_global, &pf_anchors)) != NULL) {
570 if (pf_begin_rules(&ticket, i, anchor->name) == 0) {
571 pf_commit_rules(ticket, i, anchor->name);
631 pf_get_pool(char *anchor, u_int32_t ticket, u_int8_t rule_action, in pf_get_pool() argument
639 ruleset = pf_find_ruleset(anchor); in pf_get_pool()
900 pf_begin_rules(u_int32_t *ticket, int rs_num, const char *anchor) in pf_begin_rules() argument
908 rs = pf_find_or_create_ruleset(anchor); in pf_begin_rules()
922 pf_rollback_rules(u_int32_t ticket, int rs_num, char *anchor) in pf_rollback_rules() argument
930 rs = pf_find_ruleset(anchor); in pf_rollback_rules()
[all …]
H A Dif_pflog.c348 if (ruleset != NULL && ruleset->anchor != NULL) { in pflog_packet()
349 strlcpy(hdr.ruleset, ruleset->anchor->name, in pflog_packet()
H A Dpf_table.c1956 pfr_fix_anchor(char *anchor) in pfr_fix_anchor() argument
1961 if (anchor[0] == '/') { in pfr_fix_anchor()
1965 path = anchor; in pfr_fix_anchor()
1970 bcopy(path, anchor, siz - off); in pfr_fix_anchor()
1971 memset(anchor + siz - off, 0, off); in pfr_fix_anchor()
1973 if (anchor[siz - 1]) { in pfr_fix_anchor()
1976 for (i = strlen(anchor); i < siz; i++) { in pfr_fix_anchor()
1977 if (anchor[i]) { in pfr_fix_anchor()
2312 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.c457 if (s->anchor.ptr != NULL) { \
458 s->anchor.ptr->states++; \
459 VERIFY(s->anchor.ptr->states != 0); \
473 if (s->anchor.ptr != NULL) { \
474 VERIFY(s->anchor.ptr->states > 0); \
475 s->anchor.ptr->states--; \
1720 if (cur->anchor.ptr != NULL) { in pf_free_state()
1721 VERIFY(cur->anchor.ptr->states > 0); in pf_free_state()
1722 if (--cur->anchor.ptr->states <= 0) { in pf_free_state()
1723 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-8020.101.4/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], 'struct ucred_rw *', "crw_link"):