1/* 2 * Copyright (C) 2000 Lennert Buytenhek 3 * 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 (at your option) any later version. 8 * 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. 13 * 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., 675 Mass Ave, Cambridge, MA 02139, USA. 17 */ 18 19#ifndef _BRCTL_H 20#define _BRCTL_H 21 22struct command 23{ 24 int nargs; 25 const char *name; 26 int (*func)(int argc, char *const* argv); 27 const char *help; 28}; 29 30const struct command *command_lookup(const char *cmd); 31void command_help(const struct command *); 32void command_helpall(void); 33 34void br_dump_bridge_id(const unsigned char *x); 35void br_show_timer(const struct timeval *tv); 36void br_dump_interface_list(const char *br); 37void br_dump_info(const char *br, const struct bridge_info *bri); 38 39#endif 40