Home
last modified time | relevance | path

Searched refs:bcmp (Results 1 – 25 of 63) sorted by relevance

123

/xnu-10002.41.9/bsd/netinet/
H A Dip_encap.c353 bcmp(&ep->src, sp, sp->sa_len) != 0 || in encap_attach()
354 bcmp(&ep->srcmask, sm, sp->sa_len) != 0) { in encap_attach()
358 bcmp(&ep->dst, dp, dp->sa_len) != 0 || in encap_attach()
359 bcmp(&ep->dstmask, dm, dp->sa_len) != 0) { in encap_attach()
491 if (bcmp(&s, &ep->src, ep->src.ss_len) == 0 && in mask_match()
492 bcmp(&d, &ep->dst, ep->dst.ss_len) == 0) { in mask_match()
H A Dip_compat.h68 # define bcmp memcmp
668 # define bcmp(a, b, c) memcmp(a,b,c)
H A Ddhcp_options.c341 if (bcmp(pkt->dp_options, rfc_magic, RFC_MAGIC_SIZE)) { in dhcpol_parse_packet()
H A Din_arp.c570 if (bcmp(addr, lr->lr_key.addr, alen) != 0) { in arp_llreach_alloc()
1714 bcmp(IF_LLADDR(ia->ia_ifp), IF_LLADDR(ifp), ifp->if_addrlen) == 0 && \ in arp_ip_handle_input()
1773 if (bcmp(CONST_LLADDR(sender_hw), IF_LLADDR(ifp), in arp_ip_handle_input()
1866 bcmp(CONST_LLADDR(gateway), CONST_LLADDR(sender_hw), in arp_ip_handle_input()
2054 if (gateway->sdl_alen != 0 && bcmp(LLADDR(gateway), in arp_ip_handle_input()
H A Din.h394 (bcmp(&(a)->s_addr, &(b)->s_addr, \
/xnu-10002.41.9/bsd/netinet6/
H A Din6_ifattach.c165 if (bcmp(nullbuf, seed0, sizeof(nullbuf)) == 0) { in in6_generate_tmp_iid()
213 if (bcmp(nullbuf, ret, sizeof(nullbuf)) == 0) { in in6_generate_tmp_iid()
309 if (bcmp(addr, allzero, addrlen) == 0) { in in6_iid_from_hw()
312 if (bcmp(addr, allone, addrlen) == 0) { in in6_iid_from_hw()
381 bcmp(&in6->s6_addr[9], allzero, 7) == 0) { in in6_iid_from_hw()
1222 if (bcmp(ndi->randomid, nullbuf, sizeof(nullbuf)) == 0) { in in6_iid_mktmp()
1259 if (bcmp(ndi->randomid, nullbuf, sizeof(nullbuf)) != 0) { in in6_tmpaddrtimer()
H A Din6.h286 (bcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], \
301 (bcmp(&(a)->sin6_addr, &(b)->sin6_addr, sizeof (struct in6_addr)) == 0))
H A Dscope6.c163 if (bcmp(&in6addr_loopback, addr, sizeof(*addr) - 1) == 0) { in in6_addrscope()
/xnu-10002.41.9/bsd/net/
H A Dradix.h199 #define Bcmp(a, b, n) bcmp(((char *)(a)), ((char *)(b)), (n))
203 #define Bcmp(a, b, n) bcmp(((caddr_t)(a)), ((caddr_t)(b)), (unsigned)(n))
H A Dether_inet6_pr_module.c129 if (bcmp(eh->ether_shost, etherbroadcastaddr, in ether_inet6_input()
136 if (!bcmp(eh->ether_dhost, etherip6allnodes, ETHER_ADDR_LEN)) { in ether_inet6_input()
H A Dether_inet_pr_module.c137 if (bcmp(ea->arp_sha, etherbroadcastaddr, ETHER_ADDR_LEN) == 0) { in ether_inet_arp_input()
199 if (bcmp(eh->ether_shost, etherbroadcastaddr, in ether_inet_input()
513 if (bcmp(eh->ether_dhost, etherbroadcastaddr, in ether_inet_arp()
H A Draw_usrreq.c121 (bcmp((caddr_t)(a1), (caddr_t)(a2), a1->sa_len) == 0) in raw_input()
H A Dif_stf.c415 if (bcmp(GET_V4(&ia6->ia_addr.sin6_addr), &ip.ip_dst, in stf_encapcheck()
605 bcmp(&dst4->sin_addr, &ip->ip_dst, sizeof(ip->ip_dst)) != 0) { in stf_pre_output()
H A Dif_gif.c827 if (bcmp(sc2->gif_pdst, dst, dst->sa_len) == 0 && in gif_ioctl()
828 bcmp(sc2->gif_psrc, src, src->sa_len) == 0) { in gif_ioctl()
/xnu-10002.41.9/san/memory/
H A Dmemintrinsics.h54 return bcmp(a, b, sz); in __nosan_bcmp()
140 #define bcmp __asan_bcmp macro
H A Dkasan-test.c356 bcmp(a1, a2, STACK_ARRAY_SZ); in test_bcmp()
357 bcmp(a1, a2 + 1, STACK_ARRAY_SZ); in test_bcmp()
363 bcmp(a1, a2, STACK_ARRAY_SZ + 1); in test_bcmp()
/xnu-10002.41.9/osfmk/libsa/
H A Dstring.h149 extern int bcmp(const void *s1 __sized_by(n), const void *s2 __sized_by(n), size_t n) __stateful_pu…
150 #if XNU_USE_STRING_BUILTIN(bcmp)
151 #define bcmp(s1, s2, n) __builtin_bcmp(s1, s2, n) macro
/xnu-10002.41.9/bsd/kern/
H A Dtty_conf.c135 if (bcmp(linesw + i, &nodisc, sizeof(nodisc)) == 0) { in ldisc_register()
H A Dchunklist.c256 if (bcmp(sha_digest, chk->chunk_sha256, SHA256_DIGEST_LENGTH) != 0) { in validate_root_image()
536 if (bcmp(&kernelcache_uuid, img_uuid, uuidsz) != 0) { in authenticate_bootkc_uuid()
605 if (bcmp(live_uuid, img_uuid, uuidsz) != 0) { in authenticate_libkern_uuid()
/xnu-10002.41.9/osfmk/tests/
H A Dvfp_state_test.c142 retval = bcmp(vfp_regs, vfp_regs_expected, sizeof(vfp_state_test_regs)); in vfp_state_test_thread_routine()
/xnu-10002.41.9/bsd/kern/code_signing/
H A Dxnu.c95 if (bcmp(compilation_service_cdhash, cdhash, CS_CDHASH_LEN) == 0) { in xnu_match_compilation_service_cdhash()
/xnu-10002.41.9/osfmk/i386/
H A Dcpuid.c1403 if (bcmp(reg, maxbasic_regs, sizeof(reg)) == 0) { in cpuid_init_vmm_info()
1418 } else if (0 == bcmp(info_p->cpuid_vmm_vendor, CPUID_VMM_ID_PARALLELS, 12)) { in cpuid_init_vmm_info()
1421 } else if (0 == bcmp(info_p->cpuid_vmm_vendor, CPUID_VMM_ID_HYVE, 12)) { in cpuid_init_vmm_info()
1424 } else if (0 == bcmp(info_p->cpuid_vmm_vendor, CPUID_VMM_ID_HVF, 12)) { in cpuid_init_vmm_info()
1427 } else if (0 == bcmp(info_p->cpuid_vmm_vendor, CPUID_VMM_ID_KVM, 12)) { in cpuid_init_vmm_info()
/xnu-10002.41.9/tests/
H A Dbpf_write.c313 …T_ASSERT_EQ_INT(bcmp(buffer + hp->bh_hdrlen, pkt, (size_t)nwritten), 0, "bpf read same bytes as wr… in do_bpf_write()
/xnu-10002.41.9/bsd/nfs/
H A Dnfs_socket.c123 return bcmp(&((struct sockaddr_in*)sa1)->sin_addr, in nfs_sockaddr_cmp()
127 return bcmp(&((struct sockaddr_in6*)sa1)->sin6_addr, in nfs_sockaddr_cmp()
H A Dnfs_srvcache.c202 !bcmp(&inet6addr->sin6_addr, &haddr->had_inet6addr, sizeof(inet6addr->sin6_addr))) { in netaddr_match()

123