void cl_icmp_connectivity_check()

in client.c [233:250]


void cl_icmp_connectivity_check(HANDLE pipe, const char* target, uint32_t pid)
{
    assert(INVALID_HANDLE_VALUE != pipe);

    char ip[IP_SIZE] = { 0 };
    packet_t* packet = NULL;

    h_get_user_string("Enter IP address for ICMP request connectivity check: ", ip, IP_SIZE);

    comm_send_command(pipe, ICMP_CONNECTIVITY_CHECK, ip,
        (uint32_t)(strlen(ip) + 1), RC4_KEY, RC4_KEY_LENGTH);

    packet = comm_receive_packet(pipe);
    cl_print_connectivity(packet);

    if (packet)
        free(packet);
}