iPXE
ipstat_cmd.c File Reference

IP statistics commands. More...

#include <stdio.h>
#include <getopt.h>
#include <ipxe/command.h>
#include <ipxe/parseopt.h>
#include <usr/ipstat.h>

Go to the source code of this file.

Data Structures

struct  ipstat_options
 "ipstat" options More...

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 FILE_SECBOOT (PERMITTED)
static int ipstat_exec (int argc, char **argv)
 The "ipstat" command.
 COMMAND (ipstat, ipstat_exec)
 Routing table management commands.

Variables

static struct option_descriptor ipstat_opts [] = {}
 "ipstat" option list
static struct command_descriptor ipstat_cmd
 "ipstat" command descriptor

Detailed Description

IP statistics commands.

Definition in file ipstat_cmd.c.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ FILE_SECBOOT()

FILE_SECBOOT ( PERMITTED )

◆ ipstat_exec()

int ipstat_exec ( int argc,
char ** argv )
static

The "ipstat" command.

Parameters
argcArgument count
argvArgument list
Return values
rcReturn status code

Definition at line 56 of file ipstat_cmd.c.

56 {
57 struct ipstat_options opts;
58 int rc;
59
60 /* Parse options */
61 if ( ( rc = parse_options ( argc, argv, &ipstat_cmd, &opts ) ) != 0 )
62 return rc;
63
64 ipstat();
65
66 return 0;
67}
struct arbelprm_rc_send_wqe rc
Definition arbel.h:3
static union @024010030001061367220137227263210031030210157031 opts
"cert<xxx>" option list
void ipstat(void)
Print TCP/IP statistics.
Definition ipstat.c:42
static struct command_descriptor ipstat_cmd
"ipstat" command descriptor
Definition ipstat_cmd.c:46
int parse_options(int argc, char **argv, struct command_descriptor *cmd, void *opts)
Parse command-line options.
Definition parseopt.c:485
"ipstat" options
Definition ipstat_cmd.c:40

References ipstat(), ipstat_cmd, opts, parse_options(), and rc.

Referenced by COMMAND().

◆ COMMAND()

COMMAND ( ipstat ,
ipstat_exec  )

Routing table management commands.

References ipstat(), and ipstat_exec().

Variable Documentation

◆ ipstat_opts

struct option_descriptor ipstat_opts[] = {}
static

"ipstat" option list

Definition at line 43 of file ipstat_cmd.c.

43{};

◆ ipstat_cmd

struct command_descriptor ipstat_cmd
static
Initial value:
=
#define NULL
NULL pointer (VOID *)
Definition Base.h:322
static struct option_descriptor ipstat_opts[]
"ipstat" option list
Definition ipstat_cmd.c:43
#define COMMAND_DESC(_struct, _options, _min_args, _max_args, _usage)
Construct command descriptor.
Definition parseopt.h:109

"ipstat" command descriptor

Definition at line 46 of file ipstat_cmd.c.

Referenced by ipstat_exec(), and PROVIDE_REQUIRING_SYMBOL().