2 * Copyright (C) 2014 Michael Brown <mbrown@fensystems.co.uk>.
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of the
7 * License, or any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20 FILE_LICENCE ( GPL2_OR_LATER );
24 #include <ipxe/command.h>
25 #include <ipxe/parseopt.h>
26 #include <usr/ipstat.h>
30 * IP statistics commands
34 /** "ipstat" options */
35 struct ipstat_options {};
37 /** "ipstat" option list */
38 static struct option_descriptor ipstat_opts[] = {};
40 /** "ipstat" command descriptor */
41 static struct command_descriptor ipstat_cmd =
42 COMMAND_DESC ( struct ipstat_options, ipstat_opts, 0, 0, NULL );
45 * The "ipstat" command
47 * @v argc Argument count
48 * @v argv Argument list
49 * @ret rc Return status code
51 static int ipstat_exec ( int argc, char **argv ) {
52 struct ipstat_options opts;
56 if ( ( rc = parse_options ( argc, argv, &ipstat_cmd, &opts ) ) != 0 )
64 /** Routing table management commands */
65 struct command ipstat_commands[] __command = {