Data Structures | Functions | Variables
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...


static int ipstat_exec (int argc, char **argv)
 The "ipstat" command.


static struct option_descriptor ipstat_opts [] = {}
 "ipstat" option list
static struct command_descriptor ipstat_cmd
 "ipstat" command descriptor
struct command ipstat_commands[] __command
 Routing table management commands.

Detailed Description

IP statistics commands.

Definition in file ipstat_cmd.c.

Function Documentation

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

The "ipstat" command.

argcArgument count
argvArgument list
Return values:
rcReturn status code

Definition at line 55 of file ipstat_cmd.c.

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

        struct ipstat_options opts;
        int rc;

        /* Parse options */
        if ( ( rc = parse_options ( argc, argv, &ipstat_cmd, &opts ) ) != 0 )
                return rc;


        return 0;

Variable Documentation

struct option_descriptor ipstat_opts[] = {} [static]

"ipstat" option list

Definition at line 42 of file ipstat_cmd.c.

struct command_descriptor ipstat_cmd [static]
Initial value:

"ipstat" command descriptor

Definition at line 45 of file ipstat_cmd.c.

struct command ipstat_commands [] __command
Initial value:
                .name = "ipstat",
                .exec = ipstat_exec,

Routing table management commands.

Definition at line 69 of file ipstat_cmd.c.