Lines Matching refs:data_size
142 + params->data_size, in send_icmpv4_echo_request()
180 if (params->data != NULL && params->data_size > 0) { in send_icmpv4_echo_request()
181 net_pkt_write(pkt, params->data, params->data_size); in send_icmpv4_echo_request()
182 } else if (params->data == NULL && params->data_size > 0) { in send_icmpv4_echo_request()
184 if (params->data_size >= sizeof(uint32_t)) { in send_icmpv4_echo_request()
188 params->data_size -= sizeof(time_stamp); in send_icmpv4_echo_request()
191 for (size_t i = 0; i < params->data_size; i++) { in send_icmpv4_echo_request()
266 + params->data_size, in send_icmpv6_echo_request()
304 if (params->data != NULL && params->data_size > 0) { in send_icmpv6_echo_request()
305 net_pkt_write(pkt, params->data, params->data_size); in send_icmpv6_echo_request()
306 } else if (params->data == NULL && params->data_size > 0) { in send_icmpv6_echo_request()
308 if (params->data_size >= sizeof(uint32_t)) { in send_icmpv6_echo_request()
312 params->data_size -= sizeof(time_stamp); in send_icmpv6_echo_request()
315 for (size_t i = 0; i < params->data_size; i++) { in send_icmpv6_echo_request()