summaryrefslogtreecommitdiff
path: root/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCCLTMACGroup/modEoCCLTMACBroadcastTable/modEoCCLTMACBroadcastTable_data_set.c
diff options
context:
space:
mode:
Diffstat (limited to 'cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCCLTMACGroup/modEoCCLTMACBroadcastTable/modEoCCLTMACBroadcastTable_data_set.c')
-rw-r--r--cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCCLTMACGroup/modEoCCLTMACBroadcastTable/modEoCCLTMACBroadcastTable_data_set.c1216
1 files changed, 1216 insertions, 0 deletions
diff --git a/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCCLTMACGroup/modEoCCLTMACBroadcastTable/modEoCCLTMACBroadcastTable_data_set.c b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCCLTMACGroup/modEoCCLTMACBroadcastTable/modEoCCLTMACBroadcastTable_data_set.c
new file mode 100644
index 0000000000..01a440aaf4
--- /dev/null
+++ b/cleopatre/application/spidnetsnmp/agent/mibgroup/sarft-eoc-mib/modEoCCLTMACGroup/modEoCCLTMACBroadcastTable/modEoCCLTMACBroadcastTable_data_set.c
@@ -0,0 +1,1216 @@
+/*
+ * Note: this file originally auto-generated by mib2c using
+ * version : 12077 $ of $
+ *
+ * $Id:$
+ *
+ */
+/*
+ * standard Net-SNMP includes
+ */
+#include <net-snmp/net-snmp-config.h>
+#include <net-snmp/net-snmp-includes.h>
+#include <net-snmp/agent/net-snmp-agent-includes.h>
+
+/*
+ * include our parent header
+ */
+#include "modEoCCLTMACBroadcastTable.h"
+
+
+/** @defgroup data_set data_set: Routines to set data
+ *
+ * These routines are used to set the value for individual objects. The
+ * row context is passed, along with the new value.
+ *
+ * @{
+ */
+/**********************************************************************
+ **********************************************************************
+ ***
+ *** Table modEoCCLTMACBroadcastTable
+ ***
+ **********************************************************************
+ **********************************************************************/
+/*
+ * SPIDCOM-EOC-MIB::modEoCCLTMACBroadcastTable is subid 2 of modEoCCLTMACGroup.
+ * Its status is Current.
+ * OID: .1.3.6.1.4.1.22764.3.1.3.2, length: 11
+ */
+ /*
+ * NOTE: if you update this chart, please update the versions in
+ * local/mib2c-conf.d/parent-set.m2i
+ * agent/mibgroup/helpers/baby_steps.c
+ * while you're at it.
+ */
+ /*
+ ***********************************************************************
+ * Baby Steps Flow Chart (2004.06.05) *
+ * *
+ * +--------------+ +================+ U = unconditional path *
+ * |optional state| ||required state|| S = path for success *
+ * +--------------+ +================+ E = path for error *
+ ***********************************************************************
+ *
+ * +--------------+
+ * | pre |
+ * | request |
+ * +--------------+
+ * | U
+ * +==============+
+ * +----------------|| object ||
+ * | E || lookup ||
+ * | +==============+
+ * | | S
+ * | +==============+
+ * | E || check ||
+ * |<---------------|| values ||
+ * | +==============+
+ * | | S
+ * | +==============+
+ * | +<-------|| undo ||
+ * | | E || setup ||
+ * | | +==============+
+ * | | | S
+ * | | +==============+
+ * | | || set ||-------------------------->+
+ * | | || value || E |
+ * | | +==============+ |
+ * | | | S |
+ * | | +--------------+ |
+ * | | | check |-------------------------->|
+ * | | | consistency | E |
+ * | | +--------------+ |
+ * | | | S |
+ * | | +==============+ +==============+ |
+ * | | || commit ||-------->|| undo || |
+ * | | || || E || commit || |
+ * | | +==============+ +==============+ |
+ * | | | S U |<--------+
+ * | | +--------------+ +==============+
+ * | | | irreversible | || undo ||
+ * | | | commit | || set ||
+ * | | +--------------+ +==============+
+ * | | | U U |
+ * | +-------------->|<------------------------+
+ * | +==============+
+ * | || undo ||
+ * | || cleanup ||
+ * | +==============+
+ * +---------------------->| U
+ * +--------------+
+ * | post |
+ * | request |
+ * +--------------+
+ *
+ */
+
+/**
+ * Setup up context with information needed to undo a set request.
+ *
+ * This function will be called before the individual node undo setup
+ * functions are called. If you need to do any undo setup that is not
+ * related to a specific column, you can do it here.
+ *
+ * Note that the undo context has been allocated with
+ * modEoCCLTMACBroadcastTable_allocate_data(), but may need extra
+ * initialization similar to what you may have done in
+ * modEoCCLTMACBroadcastTable_rowreq_ctx_init().
+ * Note that an individual node's undo_setup function will only be called
+ * if that node is being set to a new value.
+ *
+ * If there is any setup specific to a particular column (e.g. allocating
+ * memory for a string), you should do that setup in the node's undo_setup
+ * function, so it won't be done unless it is necessary.
+ *
+ * @param rowreq_ctx
+ * Pointer to the table context (modEoCCLTMACBroadcastTable_rowreq_ctx)
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_ERROR : error. set will fail.
+ */
+int
+modEoCCLTMACBroadcastTable_undo_setup(modEoCCLTMACBroadcastTable_rowreq_ctx
+ * rowreq_ctx)
+{
+ int rc = MFD_SUCCESS;
+
+ DEBUGMSGTL(("verbose:modEoCCLTMACBroadcastTable:modEoCCLTMACBroadcastTable_undo_setup", "called\n"));
+
+ /** we should have a non-NULL pointer */
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:451:M: |-> Setup modEoCCLTMACBroadcastTable undo.
+ * set up modEoCCLTMACBroadcastTable undo information, in preparation for a set.
+ * Undo storage is in (* modEoCCLTMACUnknowRestriction_val_ptr )*
+ */
+
+ return rc;
+} /* modEoCCLTMACBroadcastTable_undo_setup */
+
+/**
+ * Undo a set request.
+ *
+ * This function will be called before the individual node undo
+ * functions are called. If you need to do any undo that is not
+ * related to a specific column, you can do it here.
+ *
+ * Note that an individual node's undo function will only be called
+ * if that node is being set to a new value.
+ *
+ * If there is anything specific to a particular column (e.g. releasing
+ * memory for a string), you should do that setup in the node's undo
+ * function, so it won't be done unless it is necessary.
+ *
+ * @param rowreq_ctx
+ * Pointer to the table context (modEoCCLTMACBroadcastTable_rowreq_ctx)
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_ERROR : error. set will fail.
+ */
+int
+modEoCCLTMACBroadcastTable_undo(modEoCCLTMACBroadcastTable_rowreq_ctx *
+ rowreq_ctx)
+{
+ int rc = MFD_SUCCESS;
+
+ DEBUGMSGTL(("verbose:modEoCCLTMACBroadcastTable:modEoCCLTMACBroadcastTable_undo", "called\n"));
+
+ /** we should have a non-NULL pointer */
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:451:M: |-> modEoCCLTMACBroadcastTable undo.
+ * modEoCCLTMACBroadcastTable undo information, in response to a failed set.
+ * Undo storage is in (* modEoCCLTMACUnknowRestriction_val_ptr )*
+ */
+
+ return rc;
+} /* modEoCCLTMACBroadcastTable_undo_setup */
+
+/**
+ * Cleanup up context undo information.
+ *
+ * This function will be called after set/commit processing. If you
+ * allocated any resources in undo_setup, this is the place to release
+ * those resources.
+ *
+ * This function is called regardless of the success or failure of the set
+ * request. If you need to perform different steps for cleanup depending
+ * on success or failure, you can add a flag to the rowreq_ctx.
+ *
+ * @param rowreq_ctx
+ * Pointer to the table context (modEoCCLTMACBroadcastTable_rowreq_ctx)
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_ERROR : error
+ */
+int
+modEoCCLTMACBroadcastTable_undo_cleanup
+ (modEoCCLTMACBroadcastTable_rowreq_ctx * rowreq_ctx)
+{
+ int rc = MFD_SUCCESS;
+
+ DEBUGMSGTL(("verbose:modEoCCLTMACBroadcastTable:modEoCCLTMACBroadcastTable_undo_cleanup", "called\n"));
+
+ /** we should have a non-NULL pointer */
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:452:M: |-> Cleanup modEoCCLTMACBroadcastTable undo.
+ * Undo storage is in (* modEoCCLTMACUnknowRestriction_val_ptr )*
+ */
+
+ return rc;
+} /* modEoCCLTMACBroadcastTable_undo_cleanup */
+
+/**
+ * commit new values.
+ *
+ * At this point, you should have done everything you can to ensure that
+ * this commit will not fail.
+ *
+ * Should you need different behavior depending on which columns were
+ * set, rowreq_ctx->column_set_flags will indicate which writeable columns were
+ * set. The definitions for the COLUMN_*_FLAG bits can be found in
+ * modEoCCLTMACBroadcastTable_oids.h.
+ * A new row will have the MFD_ROW_CREATED bit set in rowreq_flags.
+ *
+ * @param modEoCCLTMACBroadcastTable_rowreq_ctx
+ * Pointer to the users context.
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_ERROR : error
+ */
+int
+modEoCCLTMACBroadcastTable_commit(modEoCCLTMACBroadcastTable_rowreq_ctx *
+ rowreq_ctx)
+{
+ int rc = MFD_SUCCESS;
+ int save_flags;
+
+ DEBUGMSGTL(("verbose:modEoCCLTMACBroadcastTable:modEoCCLTMACBroadcastTable_commit", "called\n"));
+
+ /** we should have a non-NULL pointer */
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * save flags, then clear until we actually do something
+ */
+ save_flags = rowreq_ctx->column_set_flags;
+ rowreq_ctx->column_set_flags = 0;
+
+ /*
+ * commit modEoCCLTMACBroadcastTable data
+ * 1) check the column's flag in save_flags to see if it was set.
+ * 2) clear the flag when you handle that column
+ * 3) set the column's flag in column_set_flags if it needs undo
+ * processing in case of a failure.
+ */
+ if (save_flags & COLUMN_MODEOCCLTMACBROADCASTRESTRICTIONEN_FLAG) {
+ save_flags &= ~COLUMN_MODEOCCLTMACBROADCASTRESTRICTIONEN_FLAG; /* clear modEoCCLTMACBroadcastRestrictionEN */
+ /*
+ * set flag, in case we need to undo modEoCCLTMACBroadcastRestrictionEN
+ */
+ rowreq_ctx->column_set_flags |=
+ COLUMN_MODEOCCLTMACBROADCASTRESTRICTIONEN_FLAG;
+ }
+
+ if (save_flags & COLUMN_MODEOCCLTMACBROADCASTRESTRICTION_FLAG) {
+ save_flags &= ~COLUMN_MODEOCCLTMACBROADCASTRESTRICTION_FLAG; /* clear modEoCCLTMACBroadcastRestriction */
+ /*
+ * set flag, in case we need to undo modEoCCLTMACBroadcastRestriction
+ */
+ rowreq_ctx->column_set_flags |=
+ COLUMN_MODEOCCLTMACBROADCASTRESTRICTION_FLAG;
+ }
+
+ if (save_flags & COLUMN_MODEOCCLTMACUNKNOWRESTRICTIONEN_FLAG) {
+ save_flags &= ~COLUMN_MODEOCCLTMACUNKNOWRESTRICTIONEN_FLAG; /* clear modEoCCLTMACUnknowRestrictionEN */
+ /*
+ * set flag, in case we need to undo modEoCCLTMACUnknowRestrictionEN
+ */
+ rowreq_ctx->column_set_flags |=
+ COLUMN_MODEOCCLTMACUNKNOWRESTRICTIONEN_FLAG;
+ }
+
+ if (save_flags & COLUMN_MODEOCCLTMACUNKNOWRESTRICTION_FLAG) {
+ save_flags &= ~COLUMN_MODEOCCLTMACUNKNOWRESTRICTION_FLAG; /* clear modEoCCLTMACUnknowRestriction */
+ /*
+ * set flag, in case we need to undo modEoCCLTMACUnknowRestriction
+ */
+ rowreq_ctx->column_set_flags |=
+ COLUMN_MODEOCCLTMACUNKNOWRESTRICTION_FLAG;
+ }
+
+ /*
+ * if we successfully commited this row, set the dirty flag.
+ */
+ if (MFD_SUCCESS == rc) {
+ rowreq_ctx->rowreq_flags |= MFD_ROW_DIRTY;
+ }
+
+ if (save_flags) {
+ snmp_log(LOG_ERR, "unhandled columns (0x%x) in commit\n",
+ save_flags);
+ return MFD_ERROR;
+ }
+
+ return rc;
+} /* modEoCCLTMACBroadcastTable_commit */
+
+/**
+ * undo commit new values.
+ *
+ * Should you need different behavior depending on which columns were
+ * set, rowreq_ctx->column_set_flags will indicate which writeable columns were
+ * set. The definitions for the COLUMN_*_FLAG bits can be found in
+ * modEoCCLTMACBroadcastTable_oids.h.
+ * A new row will have the MFD_ROW_CREATED bit set in rowreq_flags.
+ *
+ * @param modEoCCLTMACBroadcastTable_rowreq_ctx
+ * Pointer to the users context.
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_ERROR : error
+ */
+int
+modEoCCLTMACBroadcastTable_undo_commit
+ (modEoCCLTMACBroadcastTable_rowreq_ctx * rowreq_ctx)
+{
+ int rc = MFD_SUCCESS;
+
+ DEBUGMSGTL(("verbose:modEoCCLTMACBroadcastTable:modEoCCLTMACBroadcastTable_undo_commit", "called\n"));
+
+ /** we should have a non-NULL pointer */
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:485:M: |-> Undo modEoCCLTMACBroadcastTable commit.
+ * check the column's flag in rowreq_ctx->column_set_flags to see
+ * if it was set during commit, then undo it.
+ *
+ * eg: if (rowreq_ctx->column_set_flags & COLUMN__FLAG) {}
+ */
+
+
+ /*
+ * if we successfully un-commited this row, clear the dirty flag.
+ */
+ if (MFD_SUCCESS == rc) {
+ rowreq_ctx->rowreq_flags &= ~MFD_ROW_DIRTY;
+ }
+
+ return rc;
+} /* modEoCCLTMACBroadcastTable_undo_commit */
+
+/*
+ * TODO:440:M: Implement modEoCCLTMACBroadcastTable node value checks.
+ * TODO:450:M: Implement modEoCCLTMACBroadcastTable undo functions.
+ * TODO:460:M: Implement modEoCCLTMACBroadcastTable set functions.
+ * TODO:480:M: Implement modEoCCLTMACBroadcastTable commit functions.
+ */
+/*---------------------------------------------------------------------
+ * SPIDCOM-EOC-MIB::modEoCCLTMACBroadcastEntry.modEoCCLTMACBroadcastRestrictionEN
+ * modEoCCLTMACBroadcastRestrictionEN is subid 2 of modEoCCLTMACBroadcastEntry.
+ * Its status is Current, and its access level is ReadWrite.
+ * OID: .1.3.6.1.4.1.22764.3.1.3.2.1.2
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 1 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 1
+ *
+ * Enum range: 2/8. Values: disable(0), enable(1)
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (u_long)
+ */
+/**
+ * Check that the proposed new value is potentially valid.
+ *
+ * @param rowreq_ctx
+ * Pointer to the row request context.
+ * @param modEoCCLTMACBroadcastRestrictionEN_val
+ * A long containing the new value.
+ *
+ * @retval MFD_SUCCESS : incoming value is legal
+ * @retval MFD_NOT_VALID_NOW : incoming value is not valid now
+ * @retval MFD_NOT_VALID_EVER : incoming value is never valid
+ *
+ * This is the place to check for requirements that are not
+ * expressed in the mib syntax (for example, a requirement that
+ * is detailed in the description for an object).
+ *
+ * You should check that the requested change between the undo value and the
+ * new value is legal (ie, the transistion from one value to another
+ * is legal).
+ *
+ *@note
+ * This check is only to determine if the new value
+ * is \b potentially valid. This is the first check of many, and
+ * is one of the simplest ones.
+ *
+ *@note
+ * this is not the place to do any checks for values
+ * which depend on some other value in the mib. Those
+ * types of checks should be done in the
+ * modEoCCLTMACBroadcastTable_check_dependencies() function.
+ *
+ * The following checks have already been done for you:
+ * The syntax is ASN_INTEGER
+ * The value is one of disable(0), enable(1)
+ *
+ * If there a no other checks you need to do, simply return MFD_SUCCESS.
+ *
+ */
+int
+modEoCCLTMACBroadcastRestrictionEN_check_value
+ (modEoCCLTMACBroadcastTable_rowreq_ctx * rowreq_ctx,
+ u_long modEoCCLTMACBroadcastRestrictionEN_val)
+{
+ DEBUGMSGTL(("verbose:modEoCCLTMACBroadcastTable:modEoCCLTMACBroadcastRestrictionEN_check_value", "called\n"));
+
+ /** should never get a NULL pointer */
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:441:o: |-> Check for valid modEoCCLTMACBroadcastRestrictionEN value.
+ */
+
+ return MFD_SUCCESS; /* modEoCCLTMACBroadcastRestrictionEN value not illegal */
+} /* modEoCCLTMACBroadcastRestrictionEN_check_value */
+
+/**
+ * Save old value information
+ *
+ * @param rowreq_ctx
+ * Pointer to the table context (modEoCCLTMACBroadcastTable_rowreq_ctx)
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_ERROR : error. set will fail.
+ *
+ * This function will be called after the table level undo setup function
+ * modEoCCLTMACBroadcastTable_undo_setup has been called.
+ *
+ *@note
+ * this function will only be called if a new value is set for this column.
+ *
+ * If there is any setup specific to a particular column (e.g. allocating
+ * memory for a string), you should do that setup in this function, so it
+ * won't be done unless it is necessary.
+ */
+int
+modEoCCLTMACBroadcastRestrictionEN_undo_setup
+ (modEoCCLTMACBroadcastTable_rowreq_ctx * rowreq_ctx)
+{
+ DEBUGMSGTL(("verbose:modEoCCLTMACBroadcastTable:modEoCCLTMACBroadcastRestrictionEN_undo_setup", "called\n"));
+
+ /** should never get a NULL pointer */
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:455:o: |-> Setup modEoCCLTMACBroadcastRestrictionEN undo.
+ */
+ /*
+ * copy modEoCCLTMACBroadcastRestrictionEN data
+ * set rowreq_ctx->undo->modEoCCLTMACBroadcastRestrictionEN from rowreq_ctx->data.modEoCCLTMACBroadcastRestrictionEN
+ */
+ rowreq_ctx->undo->modEoCCLTMACBroadcastRestrictionEN =
+ rowreq_ctx->data.modEoCCLTMACBroadcastRestrictionEN;
+
+
+ return MFD_SUCCESS;
+} /* modEoCCLTMACBroadcastRestrictionEN_undo_setup */
+
+/**
+ * Set the new value.
+ *
+ * @param rowreq_ctx
+ * Pointer to the users context. You should know how to
+ * manipulate the value from this object.
+ * @param modEoCCLTMACBroadcastRestrictionEN_val
+ * A long containing the new value.
+ */
+int
+modEoCCLTMACBroadcastRestrictionEN_set
+ (modEoCCLTMACBroadcastTable_rowreq_ctx * rowreq_ctx,
+ u_long modEoCCLTMACBroadcastRestrictionEN_val)
+{
+
+ DEBUGMSGTL(("verbose:modEoCCLTMACBroadcastTable:modEoCCLTMACBroadcastRestrictionEN_set", "called\n"));
+
+ /** should never get a NULL pointer */
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:245:o: |-> Implement modEoCCLTMACBroadcastRestrictionEN reverse mapping.
+ * If the values for your data type don't exactly match the
+ * possible values defined by the mib, you should map them here.
+ */
+
+ switch (modEoCCLTMACBroadcastRestrictionEN_val) {
+ case MODEOCCLTMACBROADCASTRESTRICTIONEN_DISABLE:
+ if ( LIBSPID_SUCCESS != libspid_config_write_item(LIBSPID_MASTER_CONF_PATH, LIBSPID_MASTER_CONF_LABEL_BCAST_LIMIT_ENABLE, LIBSPID_MASTER_CONF_VALUE_NO)){
+ snmp_log(LOG_ERR, "libspid_config_write_item error\n");
+ return SNMP_ERR_COMMITFAILED;
+ }
+ rowreq_ctx->data.modEoCCLTMACBroadcastRestrictionEN =
+ INTERNAL_MODEOCCLTMACBROADCASTTABLE_MODEOCCLTMACBROADCASTRESTRICTIONEN_DISABLE;
+ break;
+
+ case MODEOCCLTMACBROADCASTRESTRICTIONEN_ENABLE:
+ if ( LIBSPID_SUCCESS != libspid_config_write_item(LIBSPID_MASTER_CONF_PATH, LIBSPID_MASTER_CONF_LABEL_BCAST_LIMIT_ENABLE, LIBSPID_MASTER_CONF_VALUE_YES)){
+ snmp_log(LOG_ERR, "libspid_config_write_item error\n");
+ return SNMP_ERR_COMMITFAILED;
+ }
+ rowreq_ctx->data.modEoCCLTMACBroadcastRestrictionEN =
+ INTERNAL_MODEOCCLTMACBROADCASTTABLE_MODEOCCLTMACBROADCASTRESTRICTIONEN_ENABLE;
+ break;
+
+ default:
+ snmp_log(LOG_ERR,
+ "couldn't reverse map value %ld for modEoCCLTMACBroadcastRestrictionEN\n",
+ modEoCCLTMACBroadcastRestrictionEN_val);
+ return SNMP_ERR_GENERR;
+ }
+
+ return MFD_SUCCESS;
+} /* modEoCCLTMACBroadcastRestrictionEN_set */
+
+/**
+ * undo the previous set.
+ *
+ * @param rowreq_ctx
+ * Pointer to the users context.
+ */
+int
+modEoCCLTMACBroadcastRestrictionEN_undo
+ (modEoCCLTMACBroadcastTable_rowreq_ctx * rowreq_ctx)
+{
+
+ DEBUGMSGTL(("verbose:modEoCCLTMACBroadcastTable:modEoCCLTMACBroadcastRestrictionEN_undo", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:456:o: |-> Clean up modEoCCLTMACBroadcastRestrictionEN undo.
+ */
+
+ switch (rowreq_ctx->undo->modEoCCLTMACBroadcastRestrictionEN) {
+ case INTERNAL_MODEOCCLTMACBROADCASTTABLE_MODEOCCLTMACBROADCASTRESTRICTIONEN_DISABLE:
+ if ( LIBSPID_SUCCESS != libspid_config_write_item(LIBSPID_MASTER_CONF_PATH, LIBSPID_MASTER_CONF_LABEL_BCAST_LIMIT_ENABLE, LIBSPID_MASTER_CONF_VALUE_NO)){
+ snmp_log(LOG_ERR, "libspid_config_write_item error\n");
+ return SNMP_ERR_UNDOFAILED;
+ }
+ break;
+
+ case INTERNAL_MODEOCCLTMACBROADCASTTABLE_MODEOCCLTMACBROADCASTRESTRICTIONEN_ENABLE:
+ if ( LIBSPID_SUCCESS != libspid_config_write_item(LIBSPID_MASTER_CONF_PATH, LIBSPID_MASTER_CONF_LABEL_BCAST_LIMIT_ENABLE, LIBSPID_MASTER_CONF_VALUE_YES)){
+ snmp_log(LOG_ERR, "libspid_config_write_item error\n");
+ return SNMP_ERR_UNDOFAILED;
+ }
+ break;
+
+ default:
+ snmp_log(LOG_ERR,
+ "couldn't reverse map value %ld for undone modEoCCLTMACBroadcastRestrictionEN\n",
+ rowreq_ctx->undo->modEoCCLTMACBroadcastRestrictionEN);
+ return SNMP_ERR_GENERR;
+ }
+
+ /*
+ * copy modEoCCLTMACBroadcastRestrictionEN data
+ * set rowreq_ctx->data.modEoCCLTMACBroadcastRestrictionEN from rowreq_ctx->undo->modEoCCLTMACBroadcastRestrictionEN
+ */
+ rowreq_ctx->data.modEoCCLTMACBroadcastRestrictionEN =
+ rowreq_ctx->undo->modEoCCLTMACBroadcastRestrictionEN;
+
+
+ return MFD_SUCCESS;
+} /* modEoCCLTMACBroadcastRestrictionEN_undo */
+
+/*---------------------------------------------------------------------
+ * SPIDCOM-EOC-MIB::modEoCCLTMACBroadcastEntry.modEoCCLTMACBroadcastRestriction
+ * modEoCCLTMACBroadcastRestriction is subid 3 of modEoCCLTMACBroadcastEntry.
+ * Its status is Current, and its access level is ReadWrite.
+ * OID: .1.3.6.1.4.1.22764.3.1.3.2.1.3
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 1
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/**
+ * Check that the proposed new value is potentially valid.
+ *
+ * @param rowreq_ctx
+ * Pointer to the row request context.
+ * @param modEoCCLTMACBroadcastRestriction_val
+ * A long containing the new value.
+ *
+ * @retval MFD_SUCCESS : incoming value is legal
+ * @retval MFD_NOT_VALID_NOW : incoming value is not valid now
+ * @retval MFD_NOT_VALID_EVER : incoming value is never valid
+ *
+ * This is the place to check for requirements that are not
+ * expressed in the mib syntax (for example, a requirement that
+ * is detailed in the description for an object).
+ *
+ * You should check that the requested change between the undo value and the
+ * new value is legal (ie, the transistion from one value to another
+ * is legal).
+ *
+ *@note
+ * This check is only to determine if the new value
+ * is \b potentially valid. This is the first check of many, and
+ * is one of the simplest ones.
+ *
+ *@note
+ * this is not the place to do any checks for values
+ * which depend on some other value in the mib. Those
+ * types of checks should be done in the
+ * modEoCCLTMACBroadcastTable_check_dependencies() function.
+ *
+ * The following checks have already been done for you:
+ * The syntax is ASN_INTEGER
+ *
+ * If there a no other checks you need to do, simply return MFD_SUCCESS.
+ *
+ */
+int
+modEoCCLTMACBroadcastRestriction_check_value
+ (modEoCCLTMACBroadcastTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCLTMACBroadcastRestriction_val)
+{
+ DEBUGMSGTL(("verbose:modEoCCLTMACBroadcastTable:modEoCCLTMACBroadcastRestriction_check_value", "called\n"));
+
+ /** should never get a NULL pointer */
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:441:o: |-> Check for valid modEoCCLTMACBroadcastRestriction value.
+ */
+
+ return MFD_SUCCESS; /* modEoCCLTMACBroadcastRestriction value not illegal */
+} /* modEoCCLTMACBroadcastRestriction_check_value */
+
+/**
+ * Save old value information
+ *
+ * @param rowreq_ctx
+ * Pointer to the table context (modEoCCLTMACBroadcastTable_rowreq_ctx)
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_ERROR : error. set will fail.
+ *
+ * This function will be called after the table level undo setup function
+ * modEoCCLTMACBroadcastTable_undo_setup has been called.
+ *
+ *@note
+ * this function will only be called if a new value is set for this column.
+ *
+ * If there is any setup specific to a particular column (e.g. allocating
+ * memory for a string), you should do that setup in this function, so it
+ * won't be done unless it is necessary.
+ */
+int
+modEoCCLTMACBroadcastRestriction_undo_setup
+ (modEoCCLTMACBroadcastTable_rowreq_ctx * rowreq_ctx)
+{
+ DEBUGMSGTL(("verbose:modEoCCLTMACBroadcastTable:modEoCCLTMACBroadcastRestriction_undo_setup", "called\n"));
+
+ /** should never get a NULL pointer */
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:455:o: |-> Setup modEoCCLTMACBroadcastRestriction undo.
+ */
+ /*
+ * copy modEoCCLTMACBroadcastRestriction data
+ * set rowreq_ctx->undo->modEoCCLTMACBroadcastRestriction from rowreq_ctx->data.modEoCCLTMACBroadcastRestriction
+ */
+ rowreq_ctx->undo->modEoCCLTMACBroadcastRestriction =
+ rowreq_ctx->data.modEoCCLTMACBroadcastRestriction;
+
+
+ return MFD_SUCCESS;
+} /* modEoCCLTMACBroadcastRestriction_undo_setup */
+
+/**
+ * Set the new value.
+ *
+ * @param rowreq_ctx
+ * Pointer to the users context. You should know how to
+ * manipulate the value from this object.
+ * @param modEoCCLTMACBroadcastRestriction_val
+ * A long containing the new value.
+ */
+int
+modEoCCLTMACBroadcastRestriction_set(modEoCCLTMACBroadcastTable_rowreq_ctx
+ * rowreq_ctx,
+ long
+ modEoCCLTMACBroadcastRestriction_val)
+{
+ char buffer[LIBSPID_LINE_MAX_LEN];
+
+ DEBUGMSGTL(("verbose:modEoCCLTMACBroadcastTable:modEoCCLTMACBroadcastRestriction_set", "called\n"));
+
+ /** should never get a NULL pointer */
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:245:o: |-> Implement modEoCCLTMACBroadcastRestriction reverse mapping.
+ * If the values for your data type don't exactly match the
+ * possible values defined by the mib, you should map them here.
+ */
+
+ sprintf(buffer, "%ld", modEoCCLTMACBroadcastRestriction_val);
+
+ if (LIBSPID_SUCCESS != libspid_config_write_item(LIBSPID_MASTER_CONF_PATH, LIBSPID_MASTER_CONF_LABEL_BCAST_LIMIT_VALUE, buffer)) {
+ snmp_log(LOG_ERR,
+ "libspid_config_write_item error\n");
+ return SNMP_ERR_COMMITFAILED;
+ }
+
+ /*
+ * TODO:461:M: |-> Set modEoCCLTMACBroadcastRestriction value.
+ * set modEoCCLTMACBroadcastRestriction value in rowreq_ctx->data
+ */
+
+ rowreq_ctx->data.modEoCCLTMACBroadcastRestriction =
+ modEoCCLTMACBroadcastRestriction_val;
+
+
+ return MFD_SUCCESS;
+} /* modEoCCLTMACBroadcastRestriction_set */
+
+/**
+ * undo the previous set.
+ *
+ * @param rowreq_ctx
+ * Pointer to the users context.
+ */
+int
+modEoCCLTMACBroadcastRestriction_undo(modEoCCLTMACBroadcastTable_rowreq_ctx
+ * rowreq_ctx)
+{
+ char buffer[LIBSPID_LINE_MAX_LEN];
+
+ DEBUGMSGTL(("verbose:modEoCCLTMACBroadcastTable:modEoCCLTMACBroadcastRestriction_undo", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:456:o: |-> Clean up modEoCCLTMACBroadcastRestriction undo.
+ */
+
+ sprintf(buffer, "%ld", rowreq_ctx->undo->modEoCCLTMACBroadcastRestriction);
+
+ if (LIBSPID_SUCCESS != libspid_config_write_item(LIBSPID_MASTER_CONF_PATH, LIBSPID_MASTER_CONF_LABEL_BCAST_LIMIT_VALUE, buffer)) {
+ snmp_log(LOG_ERR,
+ "libspid_config_write_item error\n");
+ return SNMP_ERR_UNDOFAILED;
+ }
+
+ /*
+ * copy modEoCCLTMACBroadcastRestriction data
+ * set rowreq_ctx->data.modEoCCLTMACBroadcastRestriction from rowreq_ctx->undo->modEoCCLTMACBroadcastRestriction
+ */
+ rowreq_ctx->data.modEoCCLTMACBroadcastRestriction =
+ rowreq_ctx->undo->modEoCCLTMACBroadcastRestriction;
+
+
+ return MFD_SUCCESS;
+} /* modEoCCLTMACBroadcastRestriction_undo */
+
+/*---------------------------------------------------------------------
+ * SPIDCOM-EOC-MIB::modEoCCLTMACBroadcastEntry.modEoCCLTMACUnknowRestrictionEN
+ * modEoCCLTMACUnknowRestrictionEN is subid 4 of modEoCCLTMACBroadcastEntry.
+ * Its status is Current, and its access level is ReadWrite.
+ * OID: .1.3.6.1.4.1.22764.3.1.3.2.1.4
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 1 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 1
+ *
+ * Enum range: 2/8. Values: disable(0), enable(1)
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (u_long)
+ */
+/**
+ * Check that the proposed new value is potentially valid.
+ *
+ * @param rowreq_ctx
+ * Pointer to the row request context.
+ * @param modEoCCLTMACUnknowRestrictionEN_val
+ * A long containing the new value.
+ *
+ * @retval MFD_SUCCESS : incoming value is legal
+ * @retval MFD_NOT_VALID_NOW : incoming value is not valid now
+ * @retval MFD_NOT_VALID_EVER : incoming value is never valid
+ *
+ * This is the place to check for requirements that are not
+ * expressed in the mib syntax (for example, a requirement that
+ * is detailed in the description for an object).
+ *
+ * You should check that the requested change between the undo value and the
+ * new value is legal (ie, the transistion from one value to another
+ * is legal).
+ *
+ *@note
+ * This check is only to determine if the new value
+ * is \b potentially valid. This is the first check of many, and
+ * is one of the simplest ones.
+ *
+ *@note
+ * this is not the place to do any checks for values
+ * which depend on some other value in the mib. Those
+ * types of checks should be done in the
+ * modEoCCLTMACBroadcastTable_check_dependencies() function.
+ *
+ * The following checks have already been done for you:
+ * The syntax is ASN_INTEGER
+ * The value is one of disable(0), enable(1)
+ *
+ * If there a no other checks you need to do, simply return MFD_SUCCESS.
+ *
+ */
+int
+modEoCCLTMACUnknowRestrictionEN_check_value
+ (modEoCCLTMACBroadcastTable_rowreq_ctx * rowreq_ctx,
+ u_long modEoCCLTMACUnknowRestrictionEN_val)
+{
+ DEBUGMSGTL(("verbose:modEoCCLTMACBroadcastTable:modEoCCLTMACUnknowRestrictionEN_check_value", "called\n"));
+
+ /** should never get a NULL pointer */
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:441:o: |-> Check for valid modEoCCLTMACUnknowRestrictionEN value.
+ */
+
+ return MFD_SUCCESS; /* modEoCCLTMACUnknowRestrictionEN value not illegal */
+} /* modEoCCLTMACUnknowRestrictionEN_check_value */
+
+/**
+ * Save old value information
+ *
+ * @param rowreq_ctx
+ * Pointer to the table context (modEoCCLTMACBroadcastTable_rowreq_ctx)
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_ERROR : error. set will fail.
+ *
+ * This function will be called after the table level undo setup function
+ * modEoCCLTMACBroadcastTable_undo_setup has been called.
+ *
+ *@note
+ * this function will only be called if a new value is set for this column.
+ *
+ * If there is any setup specific to a particular column (e.g. allocating
+ * memory for a string), you should do that setup in this function, so it
+ * won't be done unless it is necessary.
+ */
+int
+modEoCCLTMACUnknowRestrictionEN_undo_setup
+ (modEoCCLTMACBroadcastTable_rowreq_ctx * rowreq_ctx)
+{
+ DEBUGMSGTL(("verbose:modEoCCLTMACBroadcastTable:modEoCCLTMACUnknowRestrictionEN_undo_setup", "called\n"));
+
+ /** should never get a NULL pointer */
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:455:o: |-> Setup modEoCCLTMACUnknowRestrictionEN undo.
+ */
+ /*
+ * copy modEoCCLTMACUnknowRestrictionEN data
+ * set rowreq_ctx->undo->modEoCCLTMACUnknowRestrictionEN from rowreq_ctx->data.modEoCCLTMACUnknowRestrictionEN
+ */
+ rowreq_ctx->undo->modEoCCLTMACUnknowRestrictionEN =
+ rowreq_ctx->data.modEoCCLTMACUnknowRestrictionEN;
+
+
+ return MFD_SUCCESS;
+} /* modEoCCLTMACUnknowRestrictionEN_undo_setup */
+
+/**
+ * Set the new value.
+ *
+ * @param rowreq_ctx
+ * Pointer to the users context. You should know how to
+ * manipulate the value from this object.
+ * @param modEoCCLTMACUnknowRestrictionEN_val
+ * A long containing the new value.
+ */
+int
+modEoCCLTMACUnknowRestrictionEN_set(modEoCCLTMACBroadcastTable_rowreq_ctx *
+ rowreq_ctx,
+ u_long
+ modEoCCLTMACUnknowRestrictionEN_val)
+{
+
+ DEBUGMSGTL(("verbose:modEoCCLTMACBroadcastTable:modEoCCLTMACUnknowRestrictionEN_set", "called\n"));
+
+ /** should never get a NULL pointer */
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:245:o: |-> Implement modEoCCLTMACUnknowRestrictionEN reverse mapping.
+ * If the values for your data type don't exactly match the
+ * possible values defined by the mib, you should map them here.
+ */
+
+
+
+ switch (modEoCCLTMACUnknowRestrictionEN_val) {
+ case MODEOCCLTMACUNKNOWRESTRICTIONEN_DISABLE:
+ if ( LIBSPID_SUCCESS != libspid_config_write_item(LIBSPID_MASTER_CONF_PATH, LIBSPID_MASTER_CONF_LABEL_UNKNOWN_LIMIT_ENABLE, LIBSPID_MASTER_CONF_VALUE_NO)){
+ snmp_log(LOG_ERR, "libspid_config_write_item error\n");
+ return SNMP_ERR_COMMITFAILED;
+ }
+ rowreq_ctx->data.modEoCCLTMACUnknowRestrictionEN =
+ INTERNAL_MODEOCCLTMACBROADCASTTABLE_MODEOCCLTMACUNKNOWRESTRICTIONEN_DISABLE;
+ break;
+
+ case MODEOCCLTMACUNKNOWRESTRICTIONEN_ENABLE:
+ if ( LIBSPID_SUCCESS != libspid_config_write_item(LIBSPID_MASTER_CONF_PATH, LIBSPID_MASTER_CONF_LABEL_UNKNOWN_LIMIT_ENABLE, LIBSPID_MASTER_CONF_VALUE_YES)){
+ snmp_log(LOG_ERR, "libspid_config_write_item error\n");
+ return SNMP_ERR_COMMITFAILED;
+ }
+ rowreq_ctx->data.modEoCCLTMACUnknowRestrictionEN =
+ INTERNAL_MODEOCCLTMACBROADCASTTABLE_MODEOCCLTMACUNKNOWRESTRICTIONEN_ENABLE;
+ break;
+
+ default:
+ snmp_log(LOG_ERR,
+ "couldn't reverse map value %ld for modEoCCLTMACUnknowRestrictionEN\n",
+ modEoCCLTMACUnknowRestrictionEN_val);
+ return SNMP_ERR_GENERR;
+ }
+
+ return MFD_SUCCESS;
+} /* modEoCCLTMACUnknowRestrictionEN_set */
+
+/**
+ * undo the previous set.
+ *
+ * @param rowreq_ctx
+ * Pointer to the users context.
+ */
+int
+modEoCCLTMACUnknowRestrictionEN_undo(modEoCCLTMACBroadcastTable_rowreq_ctx
+ * rowreq_ctx)
+{
+
+ DEBUGMSGTL(("verbose:modEoCCLTMACBroadcastTable:modEoCCLTMACUnknowRestrictionEN_undo", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:456:o: |-> Clean up modEoCCLTMACUnknowRestrictionEN undo.
+ */
+
+ switch (rowreq_ctx->undo->modEoCCLTMACUnknowRestrictionEN) {
+ case INTERNAL_MODEOCCLTMACBROADCASTTABLE_MODEOCCLTMACUNKNOWRESTRICTIONEN_DISABLE:
+ if ( LIBSPID_SUCCESS != libspid_config_write_item(LIBSPID_MASTER_CONF_PATH, LIBSPID_MASTER_CONF_LABEL_UNKNOWN_LIMIT_ENABLE, LIBSPID_MASTER_CONF_VALUE_NO)){
+ snmp_log(LOG_ERR, "libspid_config_write_item error\n");
+ return SNMP_ERR_UNDOFAILED;
+ }
+ break;
+
+ case INTERNAL_MODEOCCLTMACBROADCASTTABLE_MODEOCCLTMACUNKNOWRESTRICTIONEN_ENABLE:
+ if ( LIBSPID_SUCCESS != libspid_config_write_item(LIBSPID_MASTER_CONF_PATH, LIBSPID_MASTER_CONF_LABEL_UNKNOWN_LIMIT_ENABLE, LIBSPID_MASTER_CONF_VALUE_YES)){
+ snmp_log(LOG_ERR, "libspid_config_write_item error\n");
+ return SNMP_ERR_UNDOFAILED;
+ }
+ break;
+
+ default:
+ snmp_log(LOG_ERR,
+ "couldn't reverse map value %ld for undone modEoCCLTMACUnknowRestrictionEN\n",
+ rowreq_ctx->undo->modEoCCLTMACUnknowRestrictionEN);
+ return SNMP_ERR_GENERR;
+ }
+
+ /*
+ * copy modEoCCLTMACUnknowRestrictionEN data
+ * set rowreq_ctx->data.modEoCCLTMACUnknowRestrictionEN from rowreq_ctx->undo->modEoCCLTMACUnknowRestrictionEN
+ */
+ rowreq_ctx->data.modEoCCLTMACUnknowRestrictionEN =
+ rowreq_ctx->undo->modEoCCLTMACUnknowRestrictionEN;
+
+
+ return MFD_SUCCESS;
+} /* modEoCCLTMACUnknowRestrictionEN_undo */
+
+/*---------------------------------------------------------------------
+ * SPIDCOM-EOC-MIB::modEoCCLTMACBroadcastEntry.modEoCCLTMACUnknowRestriction
+ * modEoCCLTMACUnknowRestriction is subid 5 of modEoCCLTMACBroadcastEntry.
+ * Its status is Current, and its access level is ReadWrite.
+ * OID: .1.3.6.1.4.1.22764.3.1.3.2.1.5
+ * Description:
+
+ *
+ * Attributes:
+ * accessible 1 isscalar 0 enums 0 hasdefval 0
+ * readable 1 iscolumn 1 ranges 0 hashint 0
+ * settable 1
+ *
+ *
+ * Its syntax is INTEGER (based on perltype INTEGER)
+ * The net-snmp type is ASN_INTEGER. The C type decl is long (long)
+ */
+/**
+ * Check that the proposed new value is potentially valid.
+ *
+ * @param rowreq_ctx
+ * Pointer to the row request context.
+ * @param modEoCCLTMACUnknowRestriction_val
+ * A long containing the new value.
+ *
+ * @retval MFD_SUCCESS : incoming value is legal
+ * @retval MFD_NOT_VALID_NOW : incoming value is not valid now
+ * @retval MFD_NOT_VALID_EVER : incoming value is never valid
+ *
+ * This is the place to check for requirements that are not
+ * expressed in the mib syntax (for example, a requirement that
+ * is detailed in the description for an object).
+ *
+ * You should check that the requested change between the undo value and the
+ * new value is legal (ie, the transistion from one value to another
+ * is legal).
+ *
+ *@note
+ * This check is only to determine if the new value
+ * is \b potentially valid. This is the first check of many, and
+ * is one of the simplest ones.
+ *
+ *@note
+ * this is not the place to do any checks for values
+ * which depend on some other value in the mib. Those
+ * types of checks should be done in the
+ * modEoCCLTMACBroadcastTable_check_dependencies() function.
+ *
+ * The following checks have already been done for you:
+ * The syntax is ASN_INTEGER
+ *
+ * If there a no other checks you need to do, simply return MFD_SUCCESS.
+ *
+ */
+int
+modEoCCLTMACUnknowRestriction_check_value
+ (modEoCCLTMACBroadcastTable_rowreq_ctx * rowreq_ctx,
+ long modEoCCLTMACUnknowRestriction_val)
+{
+ DEBUGMSGTL(("verbose:modEoCCLTMACBroadcastTable:modEoCCLTMACUnknowRestriction_check_value", "called\n"));
+
+ /** should never get a NULL pointer */
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:441:o: |-> Check for valid modEoCCLTMACUnknowRestriction value.
+ */
+
+ return MFD_SUCCESS; /* modEoCCLTMACUnknowRestriction value not illegal */
+} /* modEoCCLTMACUnknowRestriction_check_value */
+
+/**
+ * Save old value information
+ *
+ * @param rowreq_ctx
+ * Pointer to the table context (modEoCCLTMACBroadcastTable_rowreq_ctx)
+ *
+ * @retval MFD_SUCCESS : success
+ * @retval MFD_ERROR : error. set will fail.
+ *
+ * This function will be called after the table level undo setup function
+ * modEoCCLTMACBroadcastTable_undo_setup has been called.
+ *
+ *@note
+ * this function will only be called if a new value is set for this column.
+ *
+ * If there is any setup specific to a particular column (e.g. allocating
+ * memory for a string), you should do that setup in this function, so it
+ * won't be done unless it is necessary.
+ */
+int
+modEoCCLTMACUnknowRestriction_undo_setup
+ (modEoCCLTMACBroadcastTable_rowreq_ctx * rowreq_ctx)
+{
+ DEBUGMSGTL(("verbose:modEoCCLTMACBroadcastTable:modEoCCLTMACUnknowRestriction_undo_setup", "called\n"));
+
+ /** should never get a NULL pointer */
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:455:o: |-> Setup modEoCCLTMACUnknowRestriction undo.
+ */
+ /*
+ * copy modEoCCLTMACUnknowRestriction data
+ * set rowreq_ctx->undo->modEoCCLTMACUnknowRestriction from rowreq_ctx->data.modEoCCLTMACUnknowRestriction
+ */
+ rowreq_ctx->undo->modEoCCLTMACUnknowRestriction =
+ rowreq_ctx->data.modEoCCLTMACUnknowRestriction;
+
+
+ return MFD_SUCCESS;
+} /* modEoCCLTMACUnknowRestriction_undo_setup */
+
+/**
+ * Set the new value.
+ *
+ * @param rowreq_ctx
+ * Pointer to the users context. You should know how to
+ * manipulate the value from this object.
+ * @param modEoCCLTMACUnknowRestriction_val
+ * A long containing the new value.
+ */
+int
+modEoCCLTMACUnknowRestriction_set(modEoCCLTMACBroadcastTable_rowreq_ctx *
+ rowreq_ctx,
+ long modEoCCLTMACUnknowRestriction_val)
+{
+ char buffer[LIBSPID_LINE_MAX_LEN];
+
+ DEBUGMSGTL(("verbose:modEoCCLTMACBroadcastTable:modEoCCLTMACUnknowRestriction_set", "called\n"));
+
+ /** should never get a NULL pointer */
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:245:o: |-> Implement modEoCCLTMACUnknowRestriction reverse mapping.
+ * If the values for your data type don't exactly match the
+ * possible values defined by the mib, you should map them here.
+ */
+ sprintf(buffer, "%ld", modEoCCLTMACUnknowRestriction_val);
+
+ if (LIBSPID_SUCCESS != libspid_config_write_item(LIBSPID_MASTER_CONF_PATH, LIBSPID_MASTER_CONF_LABEL_UNKNOWN_LIMIT_VALUE, buffer)) {
+ snmp_log(LOG_ERR,
+ "libspid_config_write_item error\n");
+ return SNMP_ERR_COMMITFAILED;
+ }
+ /*
+ * TODO:461:M: |-> Set modEoCCLTMACUnknowRestriction value.
+ * set modEoCCLTMACUnknowRestriction value in rowreq_ctx->data
+ */
+ rowreq_ctx->data.modEoCCLTMACUnknowRestriction =
+ modEoCCLTMACUnknowRestriction_val;
+
+
+ return MFD_SUCCESS;
+} /* modEoCCLTMACUnknowRestriction_set */
+
+/**
+ * undo the previous set.
+ *
+ * @param rowreq_ctx
+ * Pointer to the users context.
+ */
+int
+modEoCCLTMACUnknowRestriction_undo(modEoCCLTMACBroadcastTable_rowreq_ctx *
+ rowreq_ctx)
+{
+ char buffer[LIBSPID_LINE_MAX_LEN];
+
+ DEBUGMSGTL(("verbose:modEoCCLTMACBroadcastTable:modEoCCLTMACUnknowRestriction_undo", "called\n"));
+
+ netsnmp_assert(NULL != rowreq_ctx);
+
+ /*
+ * TODO:456:o: |-> Clean up modEoCCLTMACUnknowRestriction undo.
+ */
+ sprintf(buffer, "%ld", rowreq_ctx->undo->modEoCCLTMACUnknowRestriction);
+
+ if (LIBSPID_SUCCESS != libspid_config_write_item(LIBSPID_MASTER_CONF_PATH, LIBSPID_MASTER_CONF_LABEL_UNKNOWN_LIMIT_VALUE, buffer)) {
+ snmp_log(LOG_ERR,
+ "libspid_config_write_item error\n");
+ return SNMP_ERR_UNDOFAILED;
+ }
+
+ /*
+ * copy modEoCCLTMACUnknowRestriction data
+ * set rowreq_ctx->data.modEoCCLTMACUnknowRestriction from rowreq_ctx->undo->modEoCCLTMACUnknowRestriction
+ */
+ rowreq_ctx->data.modEoCCLTMACUnknowRestriction =
+ rowreq_ctx->undo->modEoCCLTMACUnknowRestriction;
+
+
+ return MFD_SUCCESS;
+} /* modEoCCLTMACUnknowRestriction_undo */
+
+/** @} */