| /xnu-11215/tests/ |
| H A D | inet6_addr_mode.c | 89 size_t buf_len = 0; in copy_if_info() local 100 if (sysctl(mib, 6, NULL, &buf_len, NULL, 0) < 0) { in copy_if_info() 104 buf_len *= 2; /* just in case something changes */ in copy_if_info() 105 buf = malloc(buf_len); in copy_if_info() 106 if (sysctl(mib, 6, buf, &buf_len, NULL, 0) < 0) { in copy_if_info() 112 *ret_len_p = (int)buf_len; in copy_if_info() 123 int buf_len; in inet6_get_linklocal_address() local 129 buf = copy_if_info(if_index, AF_INET6, &buf_len); in inet6_get_linklocal_address() 133 buf_end = buf + buf_len; in inet6_get_linklocal_address()
|
| H A D | net_bridge.c | 407 T_ASSERT_GE(buf_len, ip_len, NULL); in ip_frame_validate() 486 icmp6_len = buf_len - sizeof(*ip6); in ip6_frame_validate() 488 T_ASSERT_GE(buf_len, icmp6_len, NULL); in ip6_frame_validate() 546 (u_int)(buf_len - sizeof(*eh_p)), in ethernet_frame_validate() 616 T_ASSERT_GE(buf_len, frame_length, in ethernet_arp_frame_populate() 618 __func__, buf_len, frame_length); in ethernet_arp_frame_populate() 674 left = buf_len; in ethernet_frame_get_udp4_payload() 722 left = buf_len; in ethernet_frame_get_udp6_payload() 816 T_ASSERT_GE(buf_len, MIN_ICMP6_LEN, NULL); in ethernet_nd6_frame_populate() 834 T_ASSERT_GE(buf_len, frame_length, NULL); in ethernet_nd6_frame_populate() [all …]
|
| H A D | kevent_pty.c | 86 size_t buf_len = 0; variable 108 bytes_rd = read(child_ready[0], end, sizeof(buf) - buf_len); 110 buf_len += (size_t)bytes_rd;
|
| H A D | net_test_lib.h | 216 extern u_int ethernet_udp4_frame_populate(void * buf, size_t buf_len, 226 ethernet_udp6_frame_populate(void * buf, size_t buf_len,
|
| H A D | net_test_lib.c | 207 ethernet_udp4_frame_populate(void * buf, size_t buf_len, in ethernet_udp4_frame_populate() argument 224 if (buf_len < frame_length) { in ethernet_udp4_frame_populate() 277 ethernet_udp6_frame_populate(void * buf, size_t buf_len, in ethernet_udp6_frame_populate() argument 293 if (buf_len < frame_length) { in ethernet_udp6_frame_populate()
|
| /xnu-11215/tests/skywalk/ |
| H A D | skt_xfer.c | 837 buf_len = MIN(ip_len, buf_len); in tcp_frame_process() 846 ip_len -= buf_len; in tcp_frame_process() 858 data += buf_len; in tcp_frame_process() 860 ip_len -= buf_len; in tcp_frame_process() 912 buf_len = MIN(ip_len, buf_len); in udp_frame_process() 922 ip_len -= buf_len; in udp_frame_process() 930 buf_len = MIN(buf_len, ip_len); in udp_frame_process() 937 data += buf_len; in udp_frame_process() 939 ip_len -= buf_len; in udp_frame_process() 998 pkt_len -= buf_len; in ip_frame_process() [all …]
|
| H A D | skt_netifdirect.c | 258 size_t pkt_len, buf_len, ip_plen, udp_data_len; in skt_netif_ipv6_udp_frame_process() local 268 buf_len = os_buflet_get_data_length(buflet); in skt_netif_ipv6_udp_frame_process() 313 size_t buf_len; variable 346 buf_len = os_buflet_get_data_limit(buflet); 347 assert(buf_len != 0); 350 assert(buf_len == prop.sp_len);
|
| H A D | skywalk_test_utils.c | 2059 size_t buf_len; in sktu_channel_port_rx() local 2089 buf_len = os_buflet_get_data_length(buflet); in sktu_channel_port_rx() 2090 assert(buf_len < SKTU_FRAME_BUF_SIZE); in sktu_channel_port_rx() 2095 memcpy(addr, buf, buf_len); in sktu_channel_port_rx() 2096 frame_length -= buf_len; in sktu_channel_port_rx() 2104 buf_len = os_buflet_get_data_length(buflet); in sktu_channel_port_rx() 2105 assert(buf_len != 0); in sktu_channel_port_rx() 2106 memcpy(addr, buf, buf_len); in sktu_channel_port_rx() 2107 addr += buf_len; in sktu_channel_port_rx() 2108 frame_length -= buf_len; in sktu_channel_port_rx()
|
| /xnu-11215/osfmk/i386/ |
| H A D | cpuid.c | 1193 cpuid_get_names(struct table *map, uint64_t bits, char *buf, unsigned buf_len) in cpuid_get_names() argument 1203 if (len && ((size_t) (p - buf) < (buf_len - 1))) { in cpuid_get_names() 1206 len = min(strlen(map[i].name), (size_t)((buf_len - 1) - (p - buf))); in cpuid_get_names() 1230 cpuid_get_feature_names(uint64_t features, char *buf, unsigned buf_len) in cpuid_get_feature_names() argument 1232 return cpuid_get_names(feature_map, features, buf, buf_len); in cpuid_get_feature_names() 1236 cpuid_get_extfeature_names(uint64_t extfeatures, char *buf, unsigned buf_len) in cpuid_get_extfeature_names() argument 1238 return cpuid_get_names(extfeature_map, extfeatures, buf, buf_len); in cpuid_get_extfeature_names() 1242 cpuid_get_leaf7_feature_names(uint64_t features, char *buf, unsigned buf_len) in cpuid_get_leaf7_feature_names() argument 1244 return cpuid_get_names(leaf7_feature_map, features, buf, buf_len); in cpuid_get_leaf7_feature_names() 1248 cpuid_get_leaf7_extfeature_names(uint64_t features, char *buf, unsigned buf_len) in cpuid_get_leaf7_extfeature_names() argument [all …]
|
| H A D | misc_protos.h | 74 vm_size_t buf_len);
|
| /xnu-11215/bsd/sys/ |
| H A D | unicode.h | 76 void (*hash_func)(void *buf, size_t buf_len, void *ctx),
|
| /xnu-11215/osfmk/kern/ |
| H A D | machine.h | 117 vm_size_t buf_len);
|
| /xnu-11215/bsd/vfs/ |
| H A D | vfs_exclave_fs.c | 1580 size_t buf_len = strlen(enospc_exclaves) + 1; in vfs_exclave_is_enospc_exclave() local 1584 scratch_base = kalloc_data(buf_len, Z_WAITOK); in vfs_exclave_is_enospc_exclave() 1590 strlcpy(scratch_base, enospc_exclaves, buf_len); in vfs_exclave_is_enospc_exclave() 1609 kfree_data(scratch_base, buf_len); in vfs_exclave_is_enospc_exclave()
|
| H A D | vfs_unicode.c | 84 void (*hash_func)(void *buf, size_t buf_len, void *ctx), in utf8_normalizeOptCaseFoldAndHash() argument
|
| /xnu-11215/security/ |
| H A D | mac_base.c | 1017 size_t buf_len = strlen(elementlist) + 1; in mac_externalize() local 1020 scratch_base = kalloc_data(buf_len, Z_WAITOK); in mac_externalize() 1027 strlcpy(scratch_base, elementlist, buf_len); in mac_externalize() 1062 kfree_data(scratch_base, buf_len); in mac_externalize()
|
| /xnu-11215/iokit/Kernel/ |
| H A D | IONVRAMV3Handler.cpp | 103 valid_variable_header(const struct v3_var_header *header, size_t buf_len) in valid_variable_header() argument 105 return (buf_len > sizeof(struct v3_var_header)) && in valid_variable_header() 107 (variable_length(header) <= buf_len); in valid_variable_header()
|
| H A D | IOPMrootDomain.cpp | 3968 IOPMCopySleepWakeUUIDKey(char *buffer, size_t buf_len) in IOPMCopySleepWakeUUIDKey() argument 3981 strlcpy(buffer, string->getCStringNoCopy(), buf_len); in IOPMCopySleepWakeUUIDKey()
|
| /xnu-11215/bsd/net/ |
| H A D | if_ports_used.c | 76 extern bool IOPMCopySleepWakeUUIDKey(char *buffer, size_t buf_len);
|