iPXE
|
Ping command. More...
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <getopt.h>
#include <ipxe/command.h>
#include <ipxe/parseopt.h>
#include <ipxe/timer.h>
#include <usr/pingmgmt.h>
Go to the source code of this file.
Data Structures | |
struct | ping_options |
"ping" options More... | |
Macros | |
#define | PING_DEFAULT_SIZE 64 |
Default payload length. More... | |
#define | PING_DEFAULT_TIMEOUT TICKS_PER_SEC |
Default timeout. More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static int | ping_exec (int argc, char **argv) |
The "ping" command. More... | |
Variables | |
static struct option_descriptor | ping_opts [] |
"ping" option list More... | |
static struct command_descriptor | ping_cmd |
"ping" command descriptor More... | |
struct command ping_command | __command |
Ping command. More... | |
Ping command.
Definition in file ping_cmd.c.
#define PING_DEFAULT_SIZE 64 |
Default payload length.
Definition at line 44 of file ping_cmd.c.
#define PING_DEFAULT_TIMEOUT TICKS_PER_SEC |
Default timeout.
Definition at line 47 of file ping_cmd.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
The "ping" command.
argc | Argument count |
argv | Argument list |
rc | Return status code |
Definition at line 84 of file ping_cmd.c.
References memset(), optind, opts, ping(), ping_cmd, PING_DEFAULT_SIZE, PING_DEFAULT_TIMEOUT, rc, and reparse_options().
|
static |
"ping" option list
Definition at line 62 of file ping_cmd.c.
|
static |
"ping" command descriptor
Definition at line 74 of file ping_cmd.c.
Referenced by ping_exec().
struct command ping_command __command |
Ping command.
Definition at line 110 of file ping_cmd.c.