📄 inetcidrroutetable.h
字号:
/* * Note: this file originally auto-generated by mib2c using * version : 1.32 $ of : mfd-top.m2c,v $ * * $Id: inetCidrRouteTable.h,v 1.9 2004/10/18 03:53:19 rstory Exp $ */#ifndef INETCIDRROUTETABLE_H#define INETCIDRROUTETABLE_H#ifdef __cplusplusextern "C" {#endif/** @defgroup misc misc: Miscelaneous routines * * @{ */#include <net-snmp/library/asn1.h>#include <net-snmp/data_access/route.h> /* * other required module components */ /* *INDENT-OFF* */ config_require(ip-forward-mib/data_access/route); config_require(ip-forward-mib/inetCidrRouteTable/inetCidrRouteTable_interface); config_require(ip-forward-mib/inetCidrRouteTable/inetCidrRouteTable_data_access); /* *INDENT-ON* */ /* * OID, column number and enum definions for */#include "inetCidrRouteTable_constants.h" /* ********************************************************************* * function declarations */ void init_inetCidrRouteTable(void); /* ********************************************************************* * Table declarations *//********************************************************************** ********************************************************************** *** *** Table inetCidrRouteTable *** ********************************************************************** **********************************************************************/ /* * inetCidrRouteTable is subid 7 of ipForward. * Its status is Current. * OID: .1.3.6.1.2.1.4.24.7, 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 inetCidrRouteTable registration context. */ typedef netsnmp_data_list *inetCidrRouteTable_registration_ptr;/**********************************************************************/ /* * TODO:110:r: |-> Review inetCidrRouteTable data context structure. * This structure is used to represent the data for inetCidrRouteTable. */ typedef netsnmp_route_entry inetCidrRouteTable_data; /* ********************************************************************* * TODO:115:o: |-> Review inetCidrRouteTable 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 inetCidrRouteTable_data inetCidrRouteTable_undo_data; /* * TODO:120:r: |-> Review inetCidrRouteTable mib index. * This structure is used to represent the index for inetCidrRouteTable. */ typedef struct inetCidrRouteTable_mib_index_s { /* * inetCidrRouteDestType(1)/InetAddressType/ASN_INTEGER/long(u_long)//l/a/w/E/r/d/h */ u_long inetCidrRouteDestType; /* * inetCidrRouteDest(2)/InetAddress/ASN_OCTET_STR/char(char)//L/a/w/e/R/d/h */ char inetCidrRouteDest[NETSNMP_ACCESS_ROUTE_ADDR_BUF_SIZE]; size_t inetCidrRouteDest_len; /* * inetCidrRoutePfxLen(3)/InetAddressPrefixLength/ASN_UNSIGNED/u_long(u_long)//l/a/w/e/R/d/H */ u_long inetCidrRoutePfxLen; /* * inetCidrRoutePolicy(4)/OBJECTID/ASN_OBJECT_ID/oid(oid)//L/a/w/e/r/d/h */ oid inetCidrRoutePolicy[NETSNMP_POLICY_OID_MAX_LEN]; size_t inetCidrRoutePolicy_len; /* * inetCidrRouteNextHopType(5)/InetAddressType/ASN_INTEGER/long(u_long)//l/a/w/E/r/d/h */ u_long inetCidrRouteNextHopType; /* * inetCidrRouteNextHop(6)/InetAddress/ASN_OCTET_STR/char(char)//L/a/w/e/R/d/h */ char inetCidrRouteNextHop[NETSNMP_ACCESS_ROUTE_ADDR_BUF_SIZE]; size_t inetCidrRouteNextHop_len; } inetCidrRouteTable_mib_index; /* * TODO:121:r: | |-> Review inetCidrRouteTable max index length. * If you KNOW that your indexes will never exceed a certain * length, update this macro to that length. * * BE VERY CAREFUL TO TAKE INTO ACCOUNT THE MAXIMUM * POSSIBLE LENGHT FOR EVERY VARIABLE LENGTH INDEX! */#define MAX_inetCidrRouteTable_IDX_LEN (((NETSNMP_ACCESS_ROUTE_ADDR_BUF_SIZE+1)*2)+ 3 + (NETSNMP_POLICY_OID_MAX_LEN + 1)) /* ********************************************************************* * TODO:130:o: |-> Review inetCidrRouteTable Row request (rowreq) context. * When your functions are called, you will be passed a * inetCidrRouteTable_rowreq_ctx pointer. */ typedef struct inetCidrRouteTable_rowreq_ctx_s { /** this must be first for container compare to work */ netsnmp_index oid_idx; oid oid_tmp[MAX_inetCidrRouteTable_IDX_LEN]; inetCidrRouteTable_mib_index tbl_idx; inetCidrRouteTable_data *data; inetCidrRouteTable_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) */ inetCidrRouteTable_registration_ptr inetCidrRouteTable_reg; /* * TODO:131:o: | |-> Add useful data to inetCidrRouteTable rowreq context. */ u_char inetCidrRouteStatus; /* * storage for future expansion */ netsnmp_data_list *inetCidrRouteTable_data_list; } inetCidrRouteTable_rowreq_ctx; typedef struct inetCidrRouteTable_ref_rowreq_ctx_s { inetCidrRouteTable_rowreq_ctx *rowreq_ctx; } inetCidrRouteTable_ref_rowreq_ctx; /* ********************************************************************* * function prototypes */ int inetCidrRouteTable_pre_request(inetCidrRouteTable_registration_ptr user_context); int inetCidrRouteTable_post_request(inetCidrRouteTable_registration_ptr user_context); inetCidrRouteTable_data *inetCidrRouteTable_allocate_data(void); void inetCidrRouteTable_release_data(inetCidrRouteTable_data * data); int inetCidrRouteTable_commit(inetCidrRouteTable_rowreq_ctx * rowreq_ctx); extern oid inetCidrRouteTable_oid[]; extern int inetCidrRouteTable_oid_size;#include "inetCidrRouteTable_interface.h"#include "inetCidrRouteTable_data_access.h" /* ********************************************************************* * GET function declarations */ /* ********************************************************************* * GET Table declarations *//********************************************************************** ********************************************************************** *** *** Table inetCidrRouteTable *** ********************************************************************** **********************************************************************/ /* * inetCidrRouteTable is subid 7 of ipForward. * Its status is Current. * OID: .1.3.6.1.2.1.4.24.7, length: 9 */ /* * indexes */ int inetCidrRouteIfIndex_get(inetCidrRouteTable_rowreq_ctx * rowreq_ctx, long *inetCidrRouteIfIndex_val_ptr); int inetCidrRouteType_get(inetCidrRouteTable_rowreq_ctx * rowreq_ctx, u_long * inetCidrRouteType_val_ptr); int inetCidrRouteProto_get(inetCidrRouteTable_rowreq_ctx * rowreq_ctx, u_long * inetCidrRouteProto_val_ptr); int inetCidrRouteAge_get(inetCidrRouteTable_rowreq_ctx * rowreq_ctx, u_long * inetCidrRouteAge_val_ptr); int inetCidrRouteNextHopAS_get(inetCidrRouteTable_rowreq_ctx * rowreq_ctx, u_long * inetCidrRouteNextHopAS_val_ptr); int inetCidrRouteMetric1_get(inetCidrRouteTable_rowreq_ctx * rowreq_ctx, long *inetCidrRouteMetric1_val_ptr); int inetCidrRouteMetric2_get(inetCidrRouteTable_rowreq_ctx * rowreq_ctx, long *inetCidrRouteMetric2_val_ptr); int inetCidrRouteMetric3_get(inetCidrRouteTable_rowreq_ctx
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -