iPXE
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...

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 FILE_SECBOOT (PERMITTED)
static int nstat_exec (int argc, char **argv)
 The "nstat" command.
 COMMAND (nstat, nstat_exec)
 Neighbour management commands.

Variables

static struct option_descriptor nstat_opts [] = {}
 "nstat" option list
static struct command_descriptor nstat_cmd
 "nstat" command descriptor

Detailed Description

Neighbour management commands.

Definition in file neighbour_cmd.c.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ FILE_SECBOOT()

FILE_SECBOOT ( PERMITTED )

◆ nstat_exec()

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

The "nstat" command.

Parameters
argcArgument count
argvArgument list
Return values
rcReturn status code

Definition at line 55 of file neighbour_cmd.c.

55 {
56 struct nstat_options opts;
57 int rc;
58
59 /* Parse options */
60 if ( ( rc = parse_options ( argc, argv, &nstat_cmd, &opts ) ) != 0)
61 return rc;
62
63 nstat();
64
65 return 0;
66}
struct arbelprm_rc_send_wqe rc
Definition arbel.h:3
static union @024010030001061367220137227263210031030210157031 opts
"cert<xxx>" option list
static struct command_descriptor nstat_cmd
"nstat" command descriptor
void nstat(void)
Print neighbour table.
Definition neighmgmt.c:41
int parse_options(int argc, char **argv, struct command_descriptor *cmd, void *opts)
Parse command-line options.
Definition parseopt.c:485
"nstat" options

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

Referenced by COMMAND().

◆ COMMAND()

COMMAND ( nstat ,
nstat_exec  )

Neighbour management commands.

References nstat(), and nstat_exec().

Variable Documentation

◆ nstat_opts

struct option_descriptor nstat_opts[] = {}
static

"nstat" option list

Definition at line 42 of file neighbour_cmd.c.

42{};

◆ nstat_cmd

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

"nstat" command descriptor

Definition at line 45 of file neighbour_cmd.c.

Referenced by nstat_exec().