45#define PING_DEFAULT_SIZE 64
48#define PING_DEFAULT_TIMEOUT TICKS_PER_SEC
struct arbelprm_rc_send_wqe rc
static union @024010030001061367220137227263210031030210157031 opts
"cert<xxx>" option list
#define COMMAND(name, exec)
int optind
Current option index.
Parse command-line options.
@ required_argument
Option requires an argument.
@ no_argument
Option does not take an argument.
uint16_t size
Buffer size.
static unsigned int count
Number of entries.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
void * memset(void *dest, int character, size_t len) __nonnull
int parse_flag(char *text __unused, int *flag)
Parse flag.
int reparse_options(int argc, char **argv, struct command_descriptor *cmd, void *opts)
Reparse command-line options.
int parse_integer(char *text, unsigned int *value)
Parse integer value.
int parse_timeout(char *text, unsigned long *value)
Parse timeout value (in ms)
Command line option parsing.
#define COMMAND_DESC(_struct, _options, _min_args, _max_args, _usage)
Construct command descriptor.
#define OPTION_DESC(_longopt, _shortopt, _has_arg, _struct, _field, _parse)
Construct option descriptor.
#define PING_DEFAULT_SIZE
Default payload length.
static struct command_descriptor ping_cmd
"ping" command descriptor
static int ping_exec(int argc, char **argv)
The "ping" command.
#define PING_DEFAULT_TIMEOUT
Default timeout.
static struct option_descriptor ping_opts[]
"ping" option list
int ping(const char *hostname, unsigned long timeout, size_t len, unsigned int count, int quiet)
Ping a host.
A command-line option descriptor.
unsigned int count
Number of packets to send (or zero for no limit)
unsigned int size
Payload length.
unsigned long timeout
Timeout (in ms)