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

📄 ipcidrroutetable.h

📁 snmp的源代码,已经在我的ubuntu下编译通过
💻 H
📖 第 1 页 / 共 2 页
字号:
/* * Note: this file originally auto-generated by mib2c using *       version : 1.32 $ of : mfd-top.m2c,v $ * * $Id: ipCidrRouteTable.h,v 1.11 2004/10/16 00:15:47 rstory Exp $ */#ifndef IPCIDRROUTETABLE_H#define IPCIDRROUTETABLE_H#ifdef __cplusplusextern          "C" {#endif/** @defgroup misc misc: Miscelaneous routines * * @{ */#include <net-snmp/library/asn1.h>#include <net-snmp/data_access/route.h>#include "mibII/route_headers.h"    /*     * other required module components      */    /* *INDENT-OFF*  */    config_require(ip-forward-mib/data_access/route);    config_require(ip-forward-mib/ipCidrRouteTable/ipCidrRouteTable_interface);    config_require(ip-forward-mib/ipCidrRouteTable/ipCidrRouteTable_data_access);    /* *INDENT-ON*  */    /*     * OID, column number and enum definions for       */#include "ipCidrRouteTable_constants.h"    /*     *********************************************************************     * function declarations     */    void            init_ipCidrRouteTable(void);    /*     *********************************************************************     * Table declarations     *//********************************************************************** ********************************************************************** *** *** Table ipCidrRouteTable *** ********************************************************************** **********************************************************************/    /*     * ipCidrRouteTable is subid 4 of ipForward.     * Its status is Deprecated.     * OID: .1.3.6.1.2.1.4.24.4, 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 ipCidrRouteTable registration context.     */    typedef netsnmp_data_list *ipCidrRouteTable_registration_ptr;/**********************************************************************/    /*     * TODO:110:r: |-> Review ipCidrRouteTable data context structure.     * This structure is used to represent the data for ipCidrRouteTable.     */    typedef netsnmp_route_entry ipCidrRouteTable_data;    /*     *********************************************************************     * TODO:115:o: |-> Review ipCidrRouteTable undo context.     * We're just going to use the same data structure for our     * undo_context. If you want to do something more efficent,     * define your typedef here.     */    typedef ipCidrRouteTable_data ipCidrRouteTable_undo_data;    /*     * TODO:120:r: |-> Review ipCidrRouteTable mib index.     * This structure is used to represent the index for ipCidrRouteTable.     */    typedef struct ipCidrRouteTable_mib_index_s {        /*         * ipCidrRouteDest(1)/IPADDR/ASN_IPADDRESS/u_long(u_long)//l/A/w/e/r/d/h         */        u_long          ipCidrRouteDest;        /*         * ipCidrRouteMask(2)/IPADDR/ASN_IPADDRESS/u_long(u_long)//l/A/w/e/r/d/h         */        u_long          ipCidrRouteMask;        /*         * ipCidrRouteTos(3)/INTEGER32/ASN_INTEGER/long(long)//l/A/w/e/R/d/h         */        long            ipCidrRouteTos;        /*         * ipCidrRouteNextHop(4)/IPADDR/ASN_IPADDRESS/u_long(u_long)//l/A/w/e/r/d/h         */        u_long          ipCidrRouteNextHop;    } ipCidrRouteTable_mib_index;    /*     * TODO:121:r: |   |-> Review ipCidrRouteTable max index length.     * If you KNOW that your indexes will never exceed a certain     * length, update this macro to that length.     */#define MAX_ipCidrRouteTable_IDX_LEN     13    /*     *********************************************************************     * TODO:130:o: |-> Review ipCidrRouteTable Row request (rowreq) context.     * When your functions are called, you will be passed a     * ipCidrRouteTable_rowreq_ctx pointer.     */    typedef struct ipCidrRouteTable_rowreq_ctx_s {    /** this must be first for container compare to work */        netsnmp_index   oid_idx;        oid             oid_tmp[MAX_ipCidrRouteTable_IDX_LEN];        ipCidrRouteTable_mib_index tbl_idx;        ipCidrRouteTable_data *data;        ipCidrRouteTable_undo_data *undo;        unsigned int    column_set_flags;       /* flags for set columns */        /*         * 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)         */        ipCidrRouteTable_registration_ptr ipCidrRouteTable_reg;        /*         * TODO:131:o: |   |-> Add useful data to ipCidrRouteTable rowreq context.         */        u_char          ipCidrRouteStatus;        /*         * storage for future expansion         */        netsnmp_data_list *ipCidrRouteTable_data_list;    } ipCidrRouteTable_rowreq_ctx;    typedef struct ipCidrRouteTable_ref_rowreq_ctx_s {        ipCidrRouteTable_rowreq_ctx *rowreq_ctx;    } ipCidrRouteTable_ref_rowreq_ctx;    /*     *********************************************************************     * function prototypes     */    int        ipCidrRouteTable_pre_request(ipCidrRouteTable_registration_ptr                                     user_context);    int        ipCidrRouteTable_post_request(ipCidrRouteTable_registration_ptr                                      user_context);    ipCidrRouteTable_data *ipCidrRouteTable_allocate_data(void);    void            ipCidrRouteTable_release_data(ipCidrRouteTable_data *                                                  data);    int             ipCidrRouteTable_commit(ipCidrRouteTable_rowreq_ctx *                                            rowreq_ctx);    extern oid      ipCidrRouteTable_oid[];    extern int      ipCidrRouteTable_oid_size;#include "ipCidrRouteTable_interface.h"#include "ipCidrRouteTable_data_access.h"    /*     *********************************************************************     * GET function declarations     */    /*     *********************************************************************     * GET Table declarations     *//********************************************************************** ********************************************************************** *** *** Table ipCidrRouteTable *** ********************************************************************** **********************************************************************/    /*     * ipCidrRouteTable is subid 4 of ipForward.     * Its status is Deprecated.     * OID: .1.3.6.1.2.1.4.24.4, length: 9     */    /*     * indexes     */    int             ipCidrRouteIfIndex_get(ipCidrRouteTable_rowreq_ctx *                                           rowreq_ctx, long                                           *ipCidrRouteIfIndex_val_ptr);    int             ipCidrRouteType_get(ipCidrRouteTable_rowreq_ctx *                                        rowreq_ctx,                                        u_long * ipCidrRouteType_val_ptr);    int             ipCidrRouteProto_get(ipCidrRouteTable_rowreq_ctx *                                         rowreq_ctx,                                         u_long *                                         ipCidrRouteProto_val_ptr);    int             ipCidrRouteAge_get(ipCidrRouteTable_rowreq_ctx *                                       rowreq_ctx,                                       long *ipCidrRouteAge_val_ptr);    int             ipCidrRouteInfo_get(ipCidrRouteTable_rowreq_ctx *                                        rowreq_ctx,                                        oid ** ipCidrRouteInfo_val_ptr_ptr,                                        size_t                                        *ipCidrRouteInfo_val_ptr_len_ptr);    int             ipCidrRouteNextHopAS_get(ipCidrRouteTable_rowreq_ctx *                                             rowreq_ctx, long                                             *ipCidrRouteNextHopAS_val_ptr);    int             ipCidrRouteMetric1_get(ipCidrRouteTable_rowreq_ctx *                                           rowreq_ctx, long                                           *ipCidrRouteMetric1_val_ptr);    int             ipCidrRouteMetric2_get(ipCidrRouteTable_rowreq_ctx *                                           rowreq_ctx, long                                           *ipCidrRouteMetric2_val_ptr);    int             ipCidrRouteMetric3_get(ipCidrRouteTable_rowreq_ctx *                                           rowreq_ctx, long                                           *ipCidrRouteMetric3_val_ptr);

⌨️ 快捷键说明

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