57 #define IFCOMMON_COMMAND_DESC( _struct, _options, _min_args, \ 58 _max_args, _usage, _payload, \ 59 _stop_on_first_success ) \ 61 .cmd = COMMAND_DESC ( _struct, _options, _min_args, \ 62 _max_args, _usage ), \ 63 .payload = ( ( int ( * ) ( struct net_device *netdev, \ 65 ( ( ( ( int ( * ) ( struct net_device *, \ 66 _struct * ) ) NULL ) \ 67 == ( typeof ( _payload ) * ) NULL ) \ 68 ? _payload : _payload ) ), \ 69 .stop_on_first_success = _stop_on_first_success, \ FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
int(* payload)(struct net_device *netdev, void *opts)
Payload.
An "if<xxx>" command descriptor.
static struct net_device * netdev
Command line option parsing.
static union @437 opts
"cert<xxx>" option list
int ifcommon_exec(int argc, char **argv, struct ifcommon_command_descriptor *cmd)
Execute if<xxx> command.
int stop_on_first_success
Stop on first success.
int ifconf_exec(int argc, char **argv)
The "ifconf" command.
struct command_descriptor cmd
Command descriptor.