* 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>
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);
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)
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)
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)