⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ifxtable_data_access.c

📁 snmp的源代码,已经在我的ubuntu下编译通过
💻 C
字号:
/* * Note: this file originally auto-generated by mib2c using *       version : 1.12 $ of : mfd-data-access.m2c,v $  * * $Id: ifXTable_data_access.c,v 1.5 2004/10/15 23:52:21 rstory Exp $ *//* * 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 "ifXTable.h"#include "ifXTable_data_access.h"/** @defgroup data_access data_access: Routines to access data * * These routines are used to locate the data used to satisfy * requests. *  * @{ *//********************************************************************** ********************************************************************** *** *** Table ifXTable *** ********************************************************************** **********************************************************************//* * ifXTable is subid 1 of ifMIBObjects. * Its status is Current. * OID: .1.3.6.1.2.1.31.1.1, length: 9 *//** * initialization for ifXTable data access * * This function is called during startup to allow you to * allocate any resources you need for the data table. * * @param ifXTable_reg *        Pointer to ifXTable_registration * * @retval MFD_SUCCESS : success. * @retval MFD_ERROR   : unrecoverable error. */intifXTable_init_data(ifXTable_registration_ptr ifXTable_reg){    DEBUGMSGTL(("verbose:ifXTable:ifXTable_init_data", "called\n"));    /*     * TODO:303:o: Initialize ifXTable data.     */    return MFD_SUCCESS;}                               /* ifXTable_init_data *//** * container-cached overview * * none - we use the ifTable container *//** * prepare row for processing. * *  When the agent has located the row for a request, this function is *  called to prepare the row for processing. If you fully populated *  the data context during the index setup phase, you may not need to *  do anything. * * @param rowreq_ctx pointer to a context. * * @retval MFD_SUCCESS     : success. * @retval MFD_ERROR       : other error. */intifXTable_row_prep(ifXTable_rowreq_ctx * rowreq_ctx){    DEBUGMSGTL(("verbose:ifXTable:ifXTable_row_prep", "called\n"));    netsnmp_assert(NULL != rowreq_ctx);    /*     * TODO:390:o: Prepare row for request.     * If populating row data was delayed, this is the place to     * fill in the row for this request.     */    return MFD_SUCCESS;}                               /* ifXTable_row_prep *//** @} */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -