xorp

mld6igmp_node_cli.hh

00001 // -*- c-basic-offset: 4; tab-width: 8; indent-tabs-mode: t -*-
00002 
00003 // Copyright (c) 2001-2011 XORP, Inc and Others
00004 //
00005 // This program is free software; you can redistribute it and/or modify
00006 // it under the terms of the GNU General Public License, Version 2, June
00007 // 1991 as published by the Free Software Foundation. Redistribution
00008 // and/or modification of this program under the terms of any other
00009 // version of the GNU General Public License is not permitted.
00010 // 
00011 // This program is distributed in the hope that it will be useful, but
00012 // WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For more details,
00014 // see the GNU General Public License, Version 2, a copy of which can be
00015 // found in the XORP LICENSE.gpl file.
00016 // 
00017 // XORP Inc, 2953 Bunker Hill Lane, Suite 204, Santa Clara, CA 95054, USA;
00018 // http://xorp.net
00019 
00020 // $XORP: xorp/contrib/mld6igmp_lite/mld6igmp_node_cli.hh,v 1.3 2008/10/02 21:56:32 bms Exp $
00021 
00022 
00023 #ifndef __MLD6IGMP_MLD6IGMP_NODE_CLI_HH__
00024 #define __MLD6IGMP_MLD6IGMP_NODE_CLI_HH__
00025 
00026 
00027 //
00028 // MLD6IGMP protocol CLI
00029 //
00030 
00031 
00032 
00033 
00034 
00035 #include "libproto/proto_node_cli.hh"
00036 
00037 
00038 //
00039 // Constants definitions
00040 //
00041 
00042 //
00043 // Structures/classes, typedefs and macros
00044 //
00045 
00046 // MLD6IGMP protocol CLI class
00047 
00048 class Mld6igmpNode;
00049 
00053 class Mld6igmpNodeCli : public ProtoNodeCli {
00054 public:
00055 
00061     Mld6igmpNodeCli(Mld6igmpNode& mld6igmp_node);
00062     
00066     virtual ~Mld6igmpNodeCli();
00067     
00073     int     start();
00074     
00080     int     stop();
00081     
00087     void    enable();
00088     
00095     void    disable();
00096     
00102     int     add_all_cli_commands();
00103     
00104 private:
00105     
00106     Mld6igmpNode& mld6igmp_node() const { return (_mld6igmp_node); }
00107     Mld6igmpNode& _mld6igmp_node;
00108     
00109     //
00110     // MLD6IGMP CLI commands
00111     //
00112     int     cli_show_mld6igmp_interface(const vector<string>& argv);
00113     int     cli_show_mld6igmp_interface_address(const vector<string>& argv);
00114     int     cli_show_mld6igmp_group(const vector<string>& argv);
00115 };
00116 
00117 //
00118 // Global variables
00119 //
00120 
00121 //
00122 // Global functions prototypes
00123 //
00124 
00125 #endif // __MLD6IGMP_MLD6IGMP_NODE_CLI_HH__
 All Classes Namespaces Functions Variables Typedefs Enumerations