Home
last modified time | relevance | path

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

/xnu-8019.80.24/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.c530 struct pf_anchor *anchor;
579 while ((anchor = RB_MIN(pf_anchor_global, &pf_anchors)) != NULL) {
581 if (pf_begin_rules(&ticket, i, anchor->name) == 0) {
582 pf_commit_rules(ticket, i, anchor->name);
642 pf_get_pool(char *anchor, u_int32_t ticket, u_int8_t rule_action, in pf_get_pool() argument
650 ruleset = pf_find_ruleset(anchor); in pf_get_pool()
916 pf_begin_rules(u_int32_t *ticket, int rs_num, const char *anchor) in pf_begin_rules() argument
924 rs = pf_find_or_create_ruleset(anchor); in pf_begin_rules()
938 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.c348 if (ruleset != NULL && ruleset->anchor != NULL) { in pflog_packet()
349 strlcpy(hdr.ruleset, ruleset->anchor->name, in pflog_packet()
H A Dpf_table.c1955 pfr_fix_anchor(char *anchor) in pfr_fix_anchor() argument
1960 if (anchor[0] == '/') { in pfr_fix_anchor()
1964 path = anchor; in pfr_fix_anchor()
1969 bcopy(path, anchor, siz - off); in pfr_fix_anchor()
1970 memset(anchor + siz - off, 0, off); in pfr_fix_anchor()
1972 if (anchor[siz - 1]) { in pfr_fix_anchor()
1975 for (i = strlen(anchor); i < siz; i++) { in pfr_fix_anchor()
1976 if (anchor[i]) { in pfr_fix_anchor()
2311 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
1212 struct pf_anchor *anchor; member
1751 char anchor[MAXPATHLEN]; member
1760 char anchor[MAXPATHLEN]; member
1957 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-8019.80.24/tools/lldbmacros/
H A Dkauth.py21 anchor = unsigned(kern.globals.kauth_cred_table_anchor)
23 anchor = kern.globals.kauth_cred_table_anchor
28 for kauth_cred in IterateListEntry(anchor[i], 'struct ucred_rw *', "crw_link"):
/xnu-8019.80.24/doc/
H A Dallocators.md169 anchor this type to the `KHEAP_DEFAULT` heap when the class is defined in