Lines Matching refs:command
67 struct command {
71 void (*cmd_func)(const struct command *, int, const char *,
75 #define CMD_INVERT 0x01 /* "invert" the sense of the command */
77 static void cmd_add(const struct command *, int, const char *, char **);
78 static void cmd_delete(const struct command *, int, const char *, char **);
79 static void cmd_up(const struct command *, int, const char *, char **);
80 static void cmd_down(const struct command *, int, const char *, char **);
81 static void cmd_discover(const struct command *, int, const char *, char **);
82 static void cmd_learn(const struct command *, int, const char *, char **);
83 static void cmd_flush(const struct command *, int, const char *, char **);
84 static void cmd_flushall(const struct command *, int, const char *, char **);
85 static void cmd_static(const struct command *, int, const char *, char **);
86 static void cmd_deladdr(const struct command *, int, const char *, char **);
87 static void cmd_addr(const struct command *, int, const char *, char **);
88 static void cmd_maxaddr(const struct command *, int, const char *, char **);
89 static void cmd_hellotime(const struct command *, int, const char *, char **);
90 static void cmd_fwddelay(const struct command *, int, const char *, char **);
91 static void cmd_maxage(const struct command *, int, const char *, char **);
92 static void cmd_priority(const struct command *, int, const char *, char **);
93 static void cmd_ifpriority(const struct command *, int, const char *, char **);
94 static void cmd_ifpathcost(const struct command *, int, const char *, char **);
95 static void cmd_timeout(const struct command *, int, const char *, char **);
96 static void cmd_stp(const struct command *, int, const char *, char **);
97 static void cmd_ipf(const struct command *, int, const char *, char **);
98 static void cmd_protect(const struct command *, int, const char *, char **);
100 static const struct command command_table[] = {
165 const struct command *cmd;
224 errx(1, "unknown command: %s", argv[0]);
230 errx(1, "command %s requires %d argument%s",
564 cmd_add(const struct command *cmd, int sock, const char *bridge,
577 cmd_delete(const struct command *cmd, int sock, const char *bridge,
589 cmd_up(const struct command *cmd, int sock, const char *bridge,
597 cmd_down(const struct command *cmd, int sock, const char *bridge,
605 cmd_discover(const struct command *cmd, int sock, const char *bridge,
614 cmd_learn(const struct command *cmd, int sock, const char *bridge,
623 cmd_stp(const struct command *cmd, int sock, const char *bridge,
632 cmd_protect(const struct command *cmd, int sock, const char *bridge,
641 cmd_flush(const struct command *cmd, int sock, const char *bridge,
653 cmd_flushall(const struct command *cmd, int sock, const char *bridge,
665 cmd_static(const struct command *cmd, int sock, const char *bridge,
686 cmd_deladdr(const struct command *cmd, int sock, const char *bridge,
705 cmd_addr(const struct command *cmd, int sock, const char *bridge,
713 cmd_maxaddr(const struct command *cmd, int sock, const char *bridge,
729 cmd_hellotime(const struct command *cmd, int sock, const char *bridge,
745 cmd_fwddelay(const struct command *cmd, int sock, const char *bridge,
761 cmd_maxage(const struct command *cmd, int sock, const char *bridge,
777 cmd_priority(const struct command *cmd, int sock, const char *bridge,
793 cmd_ifpriority(const struct command *cmd, int sock, const char *bridge,
812 cmd_ifpathcost(const struct command *cmd, int sock, const char *bridge,
831 cmd_timeout(const struct command *cmd, int sock, const char *bridge,
847 cmd_ipf(const struct command *cmd, int sock, const char *bridge,