| /xnu-11417.121.6/bsd/net/ |
| H A D | pf_ruleset.c | 261 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 D | net_str_id.c | 93 if (strlcmp(entry->nsi_string, string, entry->nsi_length) == 0) { in net_str_id_find_internal()
|
| H A D | pf_if.c | 328 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 D | dlil_ctl.c | 82 strlcmp(ifxname, ifp1->if_xname, ifxname_len) == 0 && in dlil_if_acquire()
|
| H A D | pktap.c | 563 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 D | ndrv.c | 402 if (strlcmp(dname, ifp->if_xname, IFNAMSIZ) == 0) { in ndrv_bind()
|
| H A D | pf_ioctl.c | 823 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 D | pf_table.c | 1278 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 D | network_agent.c | 1365 if (strlcmp(registration->netagent->netagent_domain, "Cellular", NETAGENT_DOMAINSIZE) != 0) { in netagent_send_cellular_failed_event()
|
| H A D | kpi_interface.c | 2600 strlcmp(ll_addr->sdl_data, ifname, namelen) == 0) { in ifnet_find_by_name()
|
| H A D | necp_client.c | 3722 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 D | string-handling.md | 28 | __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 D | subr_eventhandler.c | 264 if (!strlcmp(list->el_name, name, EVENTHANDLER_MAX_NAME)) { in _eventhandler_find_list()
|
| H A D | kern_control.c | 1858 if (strlcmp(kctl->name, name, sizeof(kctl->name)) == 0) { in ctl_find_by_name()
|
| /xnu-11417.121.6/osfmk/libsa/ |
| H A D | string.h | 574 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 D | nx_flowswitch.c | 893 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 D | nexus_traffic_rule.c | 295 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 D | nexus_kern.c | 503 if (strlcmp(nxdom_prov->nxdom_prov_name, name, in nxdom_prov_find()
|
| /xnu-11417.121.6/tests/ |
| H A D | test_strings.c | 79 T_DECL(strlcmp, "strlcmp") {
|
| /xnu-11417.121.6/iokit/bsddev/ |
| H A D | IOKitBSDInit.cpp | 1217 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 D | in_tclass.c | 332 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 D | flow_divert.c | 937 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 D | in_pcb.c | 1478 strlcmp("com.apple.", bundle_id, sizeof("com.apple.") - 1) == 0) { in apn_fallback_required()
|
| /xnu-11417.121.6/bsd/skywalk/core/ |
| H A D | skywalk.c | 274 if (strlcmp(sk_netif_direct[i], ifname, IFXNAMSIZ) == 0) { in skywalk_netif_direct_allowed()
|
| /xnu-11417.121.6/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif.c | 2563 if (strlcmp(sk_ll_prefix, ifp->if_name, sizeof(sk_ll_prefix)) == 0) { in nx_netif_flags_init()
|