struct tapi_ping_opt

Overview

ping tool specific command line options More…

#include <tapi_ping.h>

struct tapi_ping_opt {
    // fields

    unsigned int packet_count;
    unsigned int packet_size;
    tapi_job_opt_double_t interval;
    const char* interface;
    const char* destination;
};

Detailed Documentation

ping tool specific command line options

Fields

unsigned int packet_count

Number of packets to send. If it is TAPI_JOB_OPT_OMIT_UINT, the option is omitted and ping sends packets until explicitly stopped

unsigned int packet_size

Number of data bytes to send (default is 56). Note that the real size of the packet will be 8 bytes more because of an ICMP header.

tapi_job_opt_double_t interval

Number of seconds to wait between sending packets. By default ping waits for one second.

const char* interface

Address or interface name to send packets from

const char* destination

Ping destination address