60 "<trunk interface>" );
84 printf (
"Could not create VLAN device: %s\n",
101 "<VLAN interface>" );
125 printf (
"Could not destroy VLAN device: %s\n",
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.
int optind
Current option index.
static struct command_descriptor vcreate_cmd
"vcreate" command descriptor
unsigned int tag
VLAN tag.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
int parse_options(int argc, char **argv, struct command_descriptor *cmd, void *opts)
Parse command-line options.
static int vdestroy_exec(int argc, char **argv)
"vdestroy" command
int vlan_create(struct net_device *trunk, unsigned int tag, unsigned int priority)
Create VLAN device.
static int vcreate_exec(int argc, char **argv)
"vcreate" command
unsigned int priority
VLAN default priority.
Parse command-line options.
static struct net_device * netdev
char * strerror(int errno)
Retrieve string representation of error number.
Command line option parsing.
struct command vlan_commands [] __command
VLAN commands.
int vlan_destroy(struct net_device *netdev)
Destroy VLAN device.
const char * name
Name of the command.
Network device management.
static struct option_descriptor vdestroy_opts[]
"vdestroy" option list
uint16_t priority
Priotity.
#define OPTION_DESC(_longopt, _shortopt, _has_arg, _struct, _field, _parse)
Construct option descriptor.
Option requires an argument.
A command-line option descriptor.
static struct command_descriptor vdestroy_cmd
"vdestroy" command descriptor
#define COMMAND_DESC(_struct, _options, _min_args, _max_args, _usage)
Construct command descriptor.
static union @438 opts
"cert<xxx>" option list
uint64_t tag
Identity tag.
static struct option_descriptor vcreate_opts[]
"vcreate" option list
int parse_netdev(char *text, struct net_device **netdev)
Parse network device name.