61 "<sending interface> <receiving interface>" );
94 opts.broadcast ) ) != 0 ) {
int parse_integer(char *text, unsigned int *value)
Parse integer value.
struct arbelprm_rc_send_wqe rc
int printf(const char *fmt,...)
Write a formatted string to the console.
static int lotest_exec(int argc, char **argv)
"lotest" command
int optind
Current option index.
int parse_options(int argc, char **argv, struct command_descriptor *cmd, void *opts)
Parse command-line options.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
int loopback_test(struct net_device *sender, struct net_device *receiver, size_t mtu, int broadcast)
Perform loopback test between two network devices.
struct command lotest_command __command
Loopback testing commands.
Parse command-line options.
int parse_flag(char *text __unused, int *flag)
Parse flag.
char * strerror(int errno)
Retrieve string representation of error number.
static struct option_descriptor lotest_opts[]
"lotest" option list
Command line option parsing.
Option does not take an argument.
struct stp_switch sender
Sender switch.
const char * name
Name of the command.
Network device management.
#define OPTION_DESC(_longopt, _shortopt, _has_arg, _struct, _field, _parse)
Construct option descriptor.
Option requires an argument.
A command-line option descriptor.
#define COMMAND_DESC(_struct, _options, _min_args, _max_args, _usage)
Construct command descriptor.
static struct command_descriptor lotest_cmd
"lotest" command descriptor
static union @438 opts
"cert<xxx>" option list
int parse_netdev(char *text, struct net_device **netdev)
Parse network device name.