Data Structures | Functions | Variables
neighbour_cmd.c File Reference

Neighbour management commands. More...

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

Go to the source code of this file.

Data Structures

struct  nstat_options
 "nstat" options More...


static int nstat_exec (int argc, char **argv)
 The "nstat" command.


static struct option_descriptor nstat_opts [] = {}
 "nstat" option list
static struct command_descriptor nstat_cmd
 "nstat" command descriptor
struct command neighbour_commands[] __command
 Neighbour management commands.

Detailed Description

Neighbour management commands.

Definition in file neighbour_cmd.c.

Function Documentation

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

The "nstat" command.

argcArgument count
argvArgument list
Return values:
rcReturn status code

Definition at line 54 of file neighbour_cmd.c.

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

        struct nstat_options opts;
        int rc;

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


        return 0;

Variable Documentation

struct option_descriptor nstat_opts[] = {} [static]

"nstat" option list

Definition at line 41 of file neighbour_cmd.c.

struct command_descriptor nstat_cmd [static]
Initial value:

"nstat" command descriptor

Definition at line 44 of file neighbour_cmd.c.

struct command neighbour_commands [] __command
Initial value:
                .name = "nstat",
                .exec = nstat_exec,

Neighbour management commands.

Definition at line 68 of file neighbour_cmd.c.