Lines Matching refs:ping_ctx

42 } ping_ctx;  variable
87 PR_SHELL(ping_ctx.sh, "%d bytes from %s to %s: icmp_seq=%d ttl=%d " in handle_ipv6_echo_reply()
103 if (ntohs(icmp_echo->sequence) == ping_ctx.count) { in handle_ipv6_echo_reply()
104 ping_done(&ping_ctx); in handle_ipv6_echo_reply()
167 PR_SHELL(ping_ctx.sh, "%d bytes from %s to %s: icmp_seq=%d ttl=%d " in handle_ipv4_echo_reply()
177 if (ntohs(icmp_echo->sequence) == ping_ctx.count) { in handle_ipv4_echo_reply()
178 ping_done(&ping_ctx); in handle_ipv4_echo_reply()
295 k_work_cancel_delayable(&ping_ctx.work); in ping_bypass()
296 ping_cleanup(&ping_ctx); in ping_bypass()
444 memset(&ping_ctx, 0, sizeof(ping_ctx)); in cmd_net_ping()
446 k_work_init_delayable(&ping_ctx.work, ping_work); in cmd_net_ping()
448 ping_ctx.sh = sh; in cmd_net_ping()
449 ping_ctx.count = count; in cmd_net_ping()
450 ping_ctx.interval = interval; in cmd_net_ping()
451 ping_ctx.priority = priority; in cmd_net_ping()
452 ping_ctx.tos = tos; in cmd_net_ping()
453 ping_ctx.payload_size = payload_size; in cmd_net_ping()
456 net_addr_pton(AF_INET6, host, &ping_ctx.addr6.sin6_addr) == 0) { in cmd_net_ping()
457 ping_ctx.addr6.sin6_family = AF_INET6; in cmd_net_ping()
459 ret = net_icmp_init_ctx(&ping_ctx.icmp, NET_ICMPV6_ECHO_REPLY, 0, in cmd_net_ping()
466 net_addr_pton(AF_INET, host, &ping_ctx.addr4.sin_addr) == 0) { in cmd_net_ping()
467 ping_ctx.addr4.sin_family = AF_INET; in cmd_net_ping()
469 ret = net_icmp_init_ctx(&ping_ctx.icmp, NET_ICMPV4_ECHO_REPLY, 0, in cmd_net_ping()
480 ping_ctx.iface = ping_select_iface(iface_idx, &ping_ctx.addr); in cmd_net_ping()
485 k_work_reschedule(&ping_ctx.work, K_NO_WAIT); in cmd_net_ping()