X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/ed90ea49e025e0c8083f9d98768d870e6a880f13..97b796f5a5ec6a4d14757c87885cd0f6bfdf6d5c:/bgp.c diff --git a/bgp.c b/bgp.c index ec084d1..8e5e377 100644 --- a/bgp.c +++ b/bgp.c @@ -10,7 +10,7 @@ * nor RFC2385 (which requires a kernel patch on 2.4 kernels). */ -/* $Id: bgp.c,v 1.1 2004/06/23 03:52:24 fred_nerk Exp $ */ +char const *cvs_id_bgp = "$Id: bgp.c,v 1.4 2004/09/02 04:18:07 fred_nerk Exp $"; #include #include @@ -1188,6 +1188,12 @@ int cmd_show_bgp(struct cli_def *cli, char *command, char **argv, int argc) if (!bgp_configured) return CLI_OK; + if (CLI_HELP_REQUESTED) + return cli_arg_help(cli, 1, + "A.B.C.D", "BGP peer address", + "NAME", "BGP peer name", + NULL); + cli_print(cli, "BGPv%d router identifier %s, local AS number %d, " "hold time %ds", BGP_VERSION, inet_toa(my_address), (int) our_as, BGP_HOLD_TIME); @@ -1235,6 +1241,12 @@ int cmd_suspend_bgp(struct cli_def *cli, char *command, char **argv, int argc) if (!bgp_configured) return CLI_OK; + if (CLI_HELP_REQUESTED) + return cli_arg_help(cli, 1, + "A.B.C.D", "BGP peer address", + "NAME", "BGP peer name", + NULL); + for (i = 0; i < BGP_NUM_PEERS; i++) { if (bgp_peers[i].state != Established) @@ -1262,6 +1274,12 @@ int cmd_no_suspend_bgp(struct cli_def *cli, char *command, char **argv, int argc if (!bgp_configured) return CLI_OK; + if (CLI_HELP_REQUESTED) + return cli_arg_help(cli, 1, + "A.B.C.D", "BGP peer address", + "NAME", "BGP peer name", + NULL); + for (i = 0; i < BGP_NUM_PEERS; i++) { if (bgp_peers[i].state != Established) @@ -1290,6 +1308,12 @@ int cmd_restart_bgp(struct cli_def *cli, char *command, char **argv, int argc) if (!bgp_configured) return CLI_OK; + if (CLI_HELP_REQUESTED) + return cli_arg_help(cli, 1, + "A.B.C.D", "BGP peer address", + "NAME", "BGP peer name", + NULL); + for (i = 0; i < BGP_NUM_PEERS; i++) { if (!*bgp_peers[i].name)