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

📄 ipsystemstatstable.h

📁 snmp的源代码,已经在我的ubuntu下编译通过
💻 H
📖 第 1 页 / 共 2 页
字号:
/* * Note: this file originally auto-generated by mib2c using *       version : 1.32 $ of : mfd-top.m2c,v $ * * $Id: ipSystemStatsTable.h,v 1.4 2004/10/16 00:31:18 rstory Exp $ */#ifndef IPSYSTEMSTATSTABLE_H#define IPSYSTEMSTATSTABLE_H#ifdef __cplusplusextern          "C" {#endif/** @defgroup misc misc: Miscelaneous routines * * @{ */#include <net-snmp/library/asn1.h>#include <net-snmp/data_access/ipstats.h>#include <net-snmp/data_access/systemstats.h>    /*     * OID, column number and enum definions for       */#include "ipSystemStatsTable_constants.h"    /*     *********************************************************************     * function declarations     */    void            init_ipSystemStatsTable(void);    /*     *********************************************************************     * Table declarations     *//********************************************************************** ********************************************************************** *** *** Table ipSystemStatsTable *** ********************************************************************** **********************************************************************/    /*     * ipSystemStatsTable is subid 1 of ipTrafficStats.     * Its status is Current.     * OID: .1.3.6.1.2.1.4.31.1, length: 9     */    /*     *********************************************************************     * When you register your mib, you get to provide a generic     * pointer that will be passed back to you for most of the     * functions calls.     *     * TODO:100:r: Review all context structures     */    /*     * TODO:101:o: |-> Review ipSystemStatsTable registration context.     */    typedef netsnmp_data_list *ipSystemStatsTable_registration_ptr;/**********************************************************************/    /*     * TODO:110:r: |-> Review ipSystemStatsTable data context structure.     * This structure is used to represent the data for ipSystemStatsTable.     */    typedef netsnmp_systemstats_entry ipSystemStatsTable_data;    /*     * TODO:120:r: |-> Review ipSystemStatsTable mib index.     * This structure is used to represent the index for ipSystemStatsTable.     */    typedef struct ipSystemStatsTable_mib_index_s {        /*         * ipSystemStatsIPVersion(1)/InetVersion/ASN_INTEGER/long(u_long)//l/a/w/E/r/d/h         */        u_long          ipSystemStatsIPVersion;    } ipSystemStatsTable_mib_index;    /*     * TODO:121:r: |   |-> Review ipSystemStatsTable max index length.     * If you KNOW that your indexes will never exceed a certain     * length, update this macro to that length.     */#define MAX_ipSystemStatsTable_IDX_LEN     1    /*     *********************************************************************     * TODO:130:o: |-> Review ipSystemStatsTable Row request (rowreq) context.     * When your functions are called, you will be passed a     * ipSystemStatsTable_rowreq_ctx pointer.     */    typedef struct ipSystemStatsTable_rowreq_ctx_s {    /** this must be first for container compare to work */        netsnmp_index   oid_idx;        oid             oid_tmp[MAX_ipSystemStatsTable_IDX_LEN];        ipSystemStatsTable_mib_index tbl_idx;        ipSystemStatsTable_data *data;        /*         * flags per row. Currently, the first 8 bits are reserverd         * for the user. See mfd.h for other flags.         */        u_int           rowreq_flags;        /*         * implementor's context pointer (provided during registration)         */        ipSystemStatsTable_registration_ptr ipSystemStatsTable_reg;        /*         * TODO:131:o: |   |-> Add useful data to ipSystemStatsTable rowreq context.         */        char            known_missing;        uint32_t        ipSystemStatsDiscontinuityTime;        uint32_t        ipSystemStatsRefreshRate;        /*         * storage for future expansion         */        netsnmp_data_list *ipSystemStatsTable_data_list;    } ipSystemStatsTable_rowreq_ctx;    typedef struct ipSystemStatsTable_ref_rowreq_ctx_s {        ipSystemStatsTable_rowreq_ctx *rowreq_ctx;    } ipSystemStatsTable_ref_rowreq_ctx;    /*     *********************************************************************     * function prototypes     */    int        ipSystemStatsTable_pre_request(ipSystemStatsTable_registration_ptr                                       user_context);    int        ipSystemStatsTable_post_request(ipSystemStatsTable_registration_ptr                                        user_context);    ipSystemStatsTable_data *ipSystemStatsTable_allocate_data(void);    void            ipSystemStatsTable_release_data(ipSystemStatsTable_data                                                    * data);    extern oid      ipSystemStatsTable_oid[];    extern int      ipSystemStatsTable_oid_size;#include "ipSystemStatsTable_interface.h"#include "ipSystemStatsTable_data_access.h"    /*     *********************************************************************     * GET function declarations     */    /*     *********************************************************************     * GET Table declarations     *//********************************************************************** ********************************************************************** *** *** Table ipSystemStatsTable *** ********************************************************************** **********************************************************************/    /*     * ipSystemStatsTable is subid 1 of ipTrafficStats.     * Its status is Current.     * OID: .1.3.6.1.2.1.4.31.1, length: 9     */    /*     * indexes     */    int        ipSystemStatsInReceives_get(ipSystemStatsTable_rowreq_ctx *                                    rowreq_ctx,                                    u_long *                                    ipSystemStatsInReceives_val_ptr);    int        ipSystemStatsHCInReceives_get(ipSystemStatsTable_rowreq_ctx *                                      rowreq_ctx,                                      U64 *                                      ipSystemStatsHCInReceives_val_ptr);    int             ipSystemStatsInOctets_get(ipSystemStatsTable_rowreq_ctx                                              * rowreq_ctx,                                              u_long *                                              ipSystemStatsInOctets_val_ptr);    int        ipSystemStatsHCInOctets_get(ipSystemStatsTable_rowreq_ctx *                                    rowreq_ctx,                                    U64 * ipSystemStatsHCInOctets_val_ptr);    int        ipSystemStatsInHdrErrors_get(ipSystemStatsTable_rowreq_ctx *                                     rowreq_ctx,                                     u_long *                                     ipSystemStatsInHdrErrors_val_ptr);    int        ipSystemStatsInNoRoutes_get(ipSystemStatsTable_rowreq_ctx *                                    rowreq_ctx,                                    u_long *                                    ipSystemStatsInNoRoutes_val_ptr);    int        ipSystemStatsInAddrErrors_get(ipSystemStatsTable_rowreq_ctx *                                      rowreq_ctx,                                      u_long *                                      ipSystemStatsInAddrErrors_val_ptr);    int        ipSystemStatsInUnknownProtos_get(ipSystemStatsTable_rowreq_ctx *                                         rowreq_ctx,                                         u_long *                                         ipSystemStatsInUnknownProtos_val_ptr);    int

⌨️ 快捷键说明

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