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

Functions

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

Variables

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

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()

static 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:14
int parse_options(int argc, char **argv, struct command_descriptor *cmd, void *opts)
Parse command-line options.
Definition: parseopt.c:485
"nstat" options
Definition: neighbour_cmd.c:39
void nstat(void)
Print neighbour table.
Definition: neighmgmt.c:41
static union @447 opts
"cert<xxx>" option list
static struct command_descriptor nstat_cmd
"nstat" command descriptor
Definition: neighbour_cmd.c:45

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

◆ COMMAND()

COMMAND ( nstat  ,
nstat_exec   
)

Neighbour management commands.

Variable Documentation

◆ nstat_opts

struct option_descriptor nstat_opts[] = {}
static

"nstat" option list

Definition at line 42 of file neighbour_cmd.c.

◆ nstat_cmd

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

"nstat" command descriptor

Definition at line 45 of file neighbour_cmd.c.

Referenced by nstat_exec().