Home
last modified time | relevance | path

Searched refs:strlcmp (Results 1 – 25 of 27) sorted by relevance

12

/xnu-11417.121.6/bsd/net/
H A Dpf_ruleset.c261 if ((owner && (!strlcmp(anchor->owner, owner, sizeof(anchor->owner)))) in pf_find_ruleset_with_owner()
262 || (is_anchor && !strlcmp(anchor->owner, "", sizeof(anchor->owner)))) { in pf_find_ruleset_with_owner()
406 if (strlcmp(anchor->name, "com.apple.nlc", in pf_find_or_create_ruleset()
456 if (strlcmp(ruleset->anchor->name, "com.apple.nlc", in pf_remove_if_empty_ruleset()
H A Dnet_str_id.c93 if (strlcmp(entry->nsi_string, string, entry->nsi_length) == 0) { in net_str_id_find_internal()
H A Dpf_if.c328 if (strlcmp(aw->v.ifname, "self", sizeof(aw->v.ifname)) == 0) { in pfi_dynaddr_setup()
722 if (strlcmp(p->pfik_name, filter, sizeof(p->pfik_name)) == 0) { in pfi_skip_if()
733 if (strlcmp(p->pfik_name, filter, sizeof(p->pfik_name))) { in pfi_skip_if()
H A Ddlil_ctl.c82 strlcmp(ifxname, ifp1->if_xname, ifxname_len) == 0 && in dlil_if_acquire()
H A Dpktap.c563 if (strlcmp(x_filter->filter_param_if_name, PKTAP_IFNAME, in pktap_setdrvspec()
736 match = !strlcmp(pktap_filter->filter_param_if_name, in pktap_filter_evaluate()
766 match = !strlcmp(pktap_filter->filter_param_if_name, in pktap_filter_evaluate()
H A Dndrv.c402 if (strlcmp(dname, ifp->if_xname, IFNAMSIZ) == 0) { in ndrv_bind()
H A Dpf_ioctl.c823 if (strlcmp(tag->name, tagname, sizeof(tag->name)) == 0) { in tagname2tag()
833 if (strlcmp(pf_reserved_tag_table[i].tag_name, tagname, PF_TAG_NAME_SIZE) == 0) { in tagname2tag()
2669 if (((strlcmp(rule->owner, owner, sizeof(rule->owner))) == 0) || in pf_delete_rule_by_owner()
2694 if (((strlcmp(rule->owner, owner, sizeof(rule->owner))) == 0)) { in pf_delete_rule_by_owner()
H A Dpf_table.c1278 if (strlcmp(p->pfrkt_anchor, PF_RESERVED_ANCHOR, sizeof(p->pfrkt_anchor)) == 0) { in pfr_clr_tables()
1946 if (no_reserved && strlcmp(tbl->pfrt_anchor, PF_RESERVED_ANCHOR, sizeof(tbl->pfrt_anchor)) == 0) { in pfr_validate_table()
H A Dnetwork_agent.c1365 if (strlcmp(registration->netagent->netagent_domain, "Cellular", NETAGENT_DOMAINSIZE) != 0) { in netagent_send_cellular_failed_event()
H A Dkpi_interface.c2600 strlcmp(ll_addr->sdl_data, ifname, namelen) == 0) { in ifnet_find_by_name()
H A Dnecp_client.c3722 if (strlcmp(netagent_domain, NETAGENT_DOMAIN_RADIO_MANAGER, NETAGENT_DOMAINSIZE) != 0) { in necp_client_lookup_bb_radio_manager()
3726 if (strlcmp(netagent_type, NETAGENT_TYPE_RADIO_MANAGER, NETAGENT_TYPESIZE) != 0) { in necp_client_lookup_bb_radio_manager()
5570 if (strlcmp(interface_name, check_ifp->if_xname, IFXNAMSIZ) == 0) { in necp_ifnet_matches_name()
/xnu-11417.121.6/doc/primitives/
H A Dstring-handling.md28 | __null_terminated secnd | n/a | strlcmp(first, secnd, n1) |
29 | __indexable secnd | strlcmp(secnd, first, n2) | strbufcmp(first, n1, secnd, n2) |
35 If you try to use `strlcmp` and you get a diagnostic like this:
40 then you might need to swap the two string arguments. `strlcmp` is sensitive to
122 * `strlcmp(a, b, alen)`: like `strcmp`;
233 if (strlcmp(f->buf1, f->buf2, sizeof(f->buf1)) == 0) { /* ... */ }
253 `strbufcmp`, `strlcmp` or even `strcmp` over `strncmp` (depending on whether
/xnu-11417.121.6/bsd/kern/
H A Dsubr_eventhandler.c264 if (!strlcmp(list->el_name, name, EVENTHANDLER_MAX_NAME)) { in _eventhandler_find_list()
H A Dkern_control.c1858 if (strlcmp(kctl->name, name, sizeof(kctl->name)) == 0) { in ctl_find_by_name()
/xnu-11417.121.6/osfmk/libsa/
H A Dstring.h574 extern int strlcmp(const char *__counted_by(n)s1, const char *s2, size_t n) __stateful_pure;
579 strlcmp( in strlcmp() function
/xnu-11417.121.6/bsd/skywalk/nexus/flowswitch/
H A Dnx_flowswitch.c893 chr->cr_endpoint, create, (strlcmp(chr->cr_name, in nx_fsw_na_find_log()
928 if (strlcmp(cr_name, NX_FSW_NAME, sizeof(NX_FSW_NAME) - 1) != 0) { in nx_fsw_na_find()
/xnu-11417.121.6/bsd/skywalk/nexus/
H A Dnexus_traffic_rule.c295 if (strlcmp(rif->rii_ifname, ifname, sizeof(rif->rii_ifname)) == 0) { in nxctl_inet_traffic_rule_get_count()
826 VERIFY(strlcmp(ntr->ntr_ifname, ifname, sizeof(ntr->ntr_ifname)) == 0); in inet_traffic_rule_match()
909 if (strlcmp(rif->rii_ifname, ifname, sizeof(rif->rii_ifname)) != 0) { in inet_traffic_rule_find()
H A Dnexus_kern.c503 if (strlcmp(nxdom_prov->nxdom_prov_name, name, in nxdom_prov_find()
/xnu-11417.121.6/tests/
H A Dtest_strings.c79 T_DECL(strlcmp, "strlcmp") {
/xnu-11417.121.6/iokit/bsddev/
H A DIOKitBSDInit.cpp1217 if (strlcmp(value, "preboot", size) == 0) { in IOResolveCoreFilePath()
1219 } else if (strlcmp(value, "default", size) != 0) { in IOResolveCoreFilePath()
/xnu-11417.121.6/bsd/netinet/
H A Din_tclass.c332 if (strlcmp(tfp->tfp_pname, pname, in find_tfp_by_pname()
352 strlcmp(tfp->tfp_pname, pname, in set_tclass_for_curr_proc()
H A Dflow_divert.c937 0 == strlcmp((const char *)string_bytes, APPLE_WEBCLIP_ID_PREFIX, string_idx)) { in flow_divert_trie_search()
1006 } else if (strlcmp(info->found_signing_id, signing_id, info->found_signing_id_size)) { in flow_divert_find_proc_by_uuid_filter()
H A Din_pcb.c1478 strlcmp("com.apple.", bundle_id, sizeof("com.apple.") - 1) == 0) { in apn_fallback_required()
/xnu-11417.121.6/bsd/skywalk/core/
H A Dskywalk.c274 if (strlcmp(sk_netif_direct[i], ifname, IFXNAMSIZ) == 0) { in skywalk_netif_direct_allowed()
/xnu-11417.121.6/bsd/skywalk/nexus/netif/
H A Dnx_netif.c2563 if (strlcmp(sk_ll_prefix, ifp->if_name, sizeof(sk_ll_prefix)) == 0) { in nx_netif_flags_init()

12