summaryrefslogtreecommitdiff
path: root/polux/application/agent/test/stub/inc/Stub.h
diff options
context:
space:
mode:
Diffstat (limited to 'polux/application/agent/test/stub/inc/Stub.h')
-rw-r--r--polux/application/agent/test/stub/inc/Stub.h134
1 files changed, 134 insertions, 0 deletions
diff --git a/polux/application/agent/test/stub/inc/Stub.h b/polux/application/agent/test/stub/inc/Stub.h
new file mode 100644
index 0000000000..8c35dca348
--- /dev/null
+++ b/polux/application/agent/test/stub/inc/Stub.h
@@ -0,0 +1,134 @@
+/*
+ ****************************************************************************
+ * PROGRAM MODULE
+ *
+ * $Workfile: Stub.h $
+ * $Author: CBu $
+ * $Date: 2008/07/31 $
+ *
+ * Copyright (C) 2008 by SPiDCOM Technologies All rights reserved.
+ *
+ *****************************************************************************
+ */
+#ifndef __STUB_H__
+#define __STUB_H__
+
+#include "underlayer.h"
+
+class Stub : public Underlayer
+{
+ public:
+ Stub();
+ virtual ~Stub();
+
+ /*
+ * GET/SET METHODS
+ */
+
+ /* SARFT MIB */
+
+ // PROPERTY-MIB
+
+ // AnalogPropertyTable
+ // TODO
+
+ // DiscretePropertyTable
+ // TODO
+
+ // CurrentAlarmTable
+ // TODO
+
+ // ALARM-MIB
+
+ int getAlarmLogNumberOfEntries ( int *get_value );
+ int getAlarmLogLastIndex ( int *get_value );
+
+ // AlarmLogTable
+ // TODO
+
+ // GENERAL-MIB
+
+ // MasterAdminGroup
+ int getAdminLogicalId ( char *get_value );
+ int setAdminLogicalId ( const char *set_value );
+ int getAdminManufactoryInfo ( char *get_value );
+ int getAdminModelNumber ( char *get_value );
+ int getAdminSerialNumber ( char *get_value );
+ int getAdminSoftwareVersion ( char *get_value );
+ int getAdminVendorSpecialInfo ( char *get_value );
+ int getAdminEmsIpAddress ( char *get_value );
+ int setAdminEmsIpAddress ( const char *set_value );
+ int getAdminResetCause ( admin_reset_cause_t *get_value );
+ int getAdminStatus ( unsigned char *get_value );
+
+ // RfGroup
+ int getRfMasterOutputLevel ( int *get_value );
+ int setRfMasterOutputLevel ( const int set_value );
+
+ // MacGroup
+ int getMacVlanEnable ( spidlib_boolean_t *get_value );
+ int setMacVlanEnable ( spidlib_boolean_t set_value );
+ int getMacVlanIdLimitation ( int *get_value );
+ int setMacVlanIdLimitation ( int set_value );
+ int getMacVlan ( spidlib_vlan_link_t vlan_direction, spidlib_vlan_rule_t *get_value );
+ int getMacVlanCommon ( spidlib_vlan_common_rule_t *get_value );
+ int getMacVlanAll ( spidlib_vlan_link_t vlan_direction, spidlib_vlan_rule_t *get_value, int *nb_rules );
+ int getMacVlanCommonAll ( spidlib_vlan_common_rule_t *get_value, int *nb_rules );
+ int setMacVlan ( spidlib_vlan_link_t vlan_direction, const spidlib_vlan_rule_t *set_value );
+ int setMacVlanCommon ( const spidlib_vlan_common_rule_t *set_value );
+ int getMacBroadcastRestriction ( spidlib_boolean_t *get_value );
+ int setMacBroadcastRestriction ( spidlib_boolean_t set_value );
+ int getMacUnknownRestriction ( spidlib_boolean_t *get_value );
+ int setMacUnknownRestriction ( spidlib_boolean_t set_value );
+ int getMacPortIsolation ( spidlib_boolean_t *get_value );
+ int setMacPortIsolation ( spidlib_boolean_t set_value );
+
+ // commonSlaveGroup
+ int getWhiteList ( spidlib_white_list_register_t *get_value );
+ int getWhiteListAll ( spidlib_white_list_register_t *get_value, int *nb_registered );
+ int setWhiteList ( const spidlib_white_list_register_t *set_value );
+ int onlineAllReset ( );
+ int getMacLimit ( char *get_value, int buffer_len );
+ int setMacLimit ( const char *set_value, int buffer_len );
+ int getOnlineAllRfOutputLevel ( int *get_value );
+ int setOnlineAllRfOutputLevel ( int set_value );
+ int getOnlineIp ( const unsigned char *mac_address, struct online_ip & ip );
+ int setOnlineIp ( const unsigned char *mac_address, const struct online_ip & ip );
+ int getSerialNumber ( const unsigned char *mac_address, char *serial_number );
+ int getInfo ( const unsigned char *mac_address, smm_online_info_t *info );
+ int onlineReset ( const unsigned char *mac_address );
+
+ private:
+
+ /* SARFT MIB */
+
+ // GENERAL-MIB
+
+ // MasterAdminGroup
+ char mAdminLogicalId[ADMIN_LOGICAL_ID_MAX_LENGTH];
+ char mAdminEmsIpAddress[SNMP_IP_ADDRESS_STRING_MAX_LENGTH];
+ admin_reset_cause_t mAdminResetCause;
+
+ // RfGRoup
+ int mRfMasterOutputLevel;
+
+ // MacGroup
+ spidlib_boolean_t mVlanEnable;
+ spidlib_vlan_common_rule_t mVlanCommon[SPIDLIB_VLAN_MAX_RULE_NB];
+ spidlib_vlan_rule_t mVlanDownlink[SPIDLIB_VLAN_MAX_RULE_NB];
+ spidlib_vlan_rule_t mVlanUplink[SPIDLIB_VLAN_MAX_RULE_NB];
+ int mVlanIdLimitation;
+ spidlib_boolean_t mMacBroadcastRestriction;
+ spidlib_boolean_t mMacUnknownRestriction;
+ spidlib_boolean_t mMacPortIsolation;
+
+ // commonSlaveGroup
+ spidlib_white_list_register_t mWhiteList[SPIDLIB_WHITE_LIST_AMOUNT_LIMITATION];
+ char mMacLimit[16];
+ int mOnlineAllRfOutputLevel;
+ struct online_ip mOnlineIp;
+ char mSerialNumber[256];
+ smm_online_info_t mInfo;
+};
+
+#endif // __STUB_H__