projects
/
l2tpns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clean up plugins
[l2tpns.git]
/
bgp.c
diff --git
a/bgp.c
b/bgp.c
index
ec6d9c2
..
696bf0e
100644
(file)
--- a/
bgp.c
+++ b/
bgp.c
@@
-10,7
+10,7
@@
* nor RFC2385 (which requires a kernel patch on 2.4 kernels).
*/
* 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 <stdlib.h>
#include <unistd.h>
#include <stdlib.h>
#include <unistd.h>
@@
-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 (!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);
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 (!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)
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 (!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)
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 (!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)
for (i = 0; i < BGP_NUM_PEERS; i++)
{
if (!*bgp_peers[i].name)