| 1 |
/* |
| 2 |
* Note: this file originally auto-generated by mib2c using |
| 3 |
* version : 14170 $ of $ |
| 4 |
* |
| 5 |
* $Id:ipv6ScopeZoneIndexTable.h 14170 2007-04-29 00:12:32Z varun_c$ |
| 6 |
*/ |
| 7 |
#ifndef IPV6SCOPEZONEINDEXTABLE_H |
| 8 |
#define IPV6SCOPEZONEINDEXTABLE_H |
| 9 |
|
| 10 |
#ifdef __cplusplus |
| 11 |
extern "C" { |
| 12 |
#endif |
| 13 |
|
| 14 |
|
| 15 |
/** @addtogroup misc misc: Miscellaneous routines |
| 16 |
* |
| 17 |
* @{ |
| 18 |
*/ |
| 19 |
#include <net-snmp/library/asn1.h> |
| 20 |
#include <net-snmp/data_access/scopezone.h> |
| 21 |
/* |
| 22 |
* other required module components |
| 23 |
*/ |
| 24 |
/* *INDENT-OFF* */ |
| 25 |
config_require(ip-mib/data_access/ipv6scopezone); |
| 26 |
config_require(ip-mib/ipv6ScopeZoneIndexTable/ipv6ScopeZoneIndexTable_interface); |
| 27 |
config_require(ip-mib/ipv6ScopeZoneIndexTable/ipv6ScopeZoneIndexTable_data_access); |
| 28 |
/* *INDENT-ON* */ |
| 29 |
|
| 30 |
/* |
| 31 |
* OID and column number definitions for ipv6ScopeZoneIndexTable |
| 32 |
*/ |
| 33 |
#include "ipv6ScopeZoneIndexTable_oids.h" |
| 34 |
|
| 35 |
/* |
| 36 |
* enum definions |
| 37 |
*/ |
| 38 |
#include "ipv6ScopeZoneIndexTable_enums.h" |
| 39 |
|
| 40 |
/* |
| 41 |
********************************************************************* |
| 42 |
* function declarations |
| 43 |
*/ |
| 44 |
void init_ipv6ScopeZoneIndexTable(void); |
| 45 |
void shutdown_ipv6ScopeZoneIndexTable(void); |
| 46 |
|
| 47 |
/* |
| 48 |
********************************************************************* |
| 49 |
* Table declarations |
| 50 |
*/ |
| 51 |
/********************************************************************** |
| 52 |
********************************************************************** |
| 53 |
*** |
| 54 |
*** Table ipv6ScopeZoneIndexTable |
| 55 |
*** |
| 56 |
********************************************************************** |
| 57 |
**********************************************************************/ |
| 58 |
/* |
| 59 |
* IP-MIB::ipv6ScopeZoneIndexTable is subid 36 of ip. |
| 60 |
* Its status is Current. |
| 61 |
* OID: .1.3.6.1.2.1.4.36, length: 8 |
| 62 |
*/ |
| 63 |
/* |
| 64 |
********************************************************************* |
| 65 |
* When you register your mib, you get to provide a generic |
| 66 |
* pointer that will be passed back to you for most of the |
| 67 |
* functions calls. |
| 68 |
* |
| 69 |
* TODO:100:r: Review all context structures |
| 70 |
*/ |
| 71 |
/* |
| 72 |
* TODO:101:o: |-> Review ipv6ScopeZoneIndexTable registration context. |
| 73 |
*/ |
| 74 |
typedef netsnmp_data_list ipv6ScopeZoneIndexTable_registration; |
| 75 |
/**********************************************************************/ |
| 76 |
/* |
| 77 |
* TODO:110:r: |-> Review ipv6ScopeZoneTable data context structure. |
| 78 |
* This structure is used to represent the data for ipv6ScopeZoneTable. |
| 79 |
*/ |
| 80 |
typedef netsnmp_v6scopezone_entry ipv6ScopeZoneIndexTable_data; |
| 81 |
|
| 82 |
|
| 83 |
/* |
| 84 |
* TODO:120:r: |-> Review ipv6ScopeZoneIndexTable mib index. |
| 85 |
* This structure is used to represent the index for ipv6ScopeZoneIndexTable. |
| 86 |
*/ |
| 87 |
typedef struct ipv6ScopeZoneIndexTable_mib_index_s { |
| 88 |
|
| 89 |
/* |
| 90 |
* ipv6ScopeZoneIndexIfIndex(1)/InterfaceIndex/ASN_INTEGER/long(long)//l/a/w/e/R/d/H |
| 91 |
*/ |
| 92 |
long ipv6ScopeZoneIndexIfIndex; |
| 93 |
|
| 94 |
|
| 95 |
} ipv6ScopeZoneIndexTable_mib_index; |
| 96 |
|
| 97 |
/* |
| 98 |
* TODO:121:r: | |-> Review ipv6ScopeZoneIndexTable max index length. |
| 99 |
* If you KNOW that your indexes will never exceed a certain |
| 100 |
* length, update this macro to that length. |
| 101 |
*/ |
| 102 |
#define MAX_ipv6ScopeZoneIndexTable_IDX_LEN 1 |
| 103 |
|
| 104 |
/* |
| 105 |
********************************************************************* |
| 106 |
* TODO:130:o: |-> Review ipv6ScopeZoneIndexTable Row request (rowreq) context. |
| 107 |
* When your functions are called, you will be passed a |
| 108 |
* ipv6ScopeZoneIndexTable_rowreq_ctx pointer. |
| 109 |
*/ |
| 110 |
typedef struct ipv6ScopeZoneIndexTable_rowreq_ctx_s { |
| 111 |
|
| 112 |
/** this must be first for container compare to work */ |
| 113 |
netsnmp_index oid_idx; |
| 114 |
oid oid_tmp[MAX_ipv6ScopeZoneIndexTable_IDX_LEN]; |
| 115 |
|
| 116 |
ipv6ScopeZoneIndexTable_mib_index tbl_idx; |
| 117 |
|
| 118 |
ipv6ScopeZoneIndexTable_data *data; |
| 119 |
|
| 120 |
/* |
| 121 |
* flags per row. Currently, the first (lower) 8 bits are reserved |
| 122 |
* for the user. See mfd.h for other flags. |
| 123 |
*/ |
| 124 |
u_int rowreq_flags; |
| 125 |
|
| 126 |
/* |
| 127 |
* TODO:131:o: | |-> Add useful data to ipv6ScopeZoneIndexTable rowreq context. |
| 128 |
*/ |
| 129 |
|
| 130 |
/* |
| 131 |
* storage for future expansion |
| 132 |
*/ |
| 133 |
netsnmp_data_list *ipv6ScopeZoneIndexTable_data_list; |
| 134 |
|
| 135 |
} ipv6ScopeZoneIndexTable_rowreq_ctx; |
| 136 |
|
| 137 |
typedef struct ipv6ScopeZoneIndexTable_ref_rowreq_ctx_s { |
| 138 |
ipv6ScopeZoneIndexTable_rowreq_ctx *rowreq_ctx; |
| 139 |
} ipv6ScopeZoneIndexTable_ref_rowreq_ctx; |
| 140 |
|
| 141 |
/* |
| 142 |
********************************************************************* |
| 143 |
* function prototypes |
| 144 |
*/ |
| 145 |
int |
| 146 |
ipv6ScopeZoneIndexTable_pre_request |
| 147 |
(ipv6ScopeZoneIndexTable_registration * user_context); |
| 148 |
int |
| 149 |
ipv6ScopeZoneIndexTable_post_request |
| 150 |
(ipv6ScopeZoneIndexTable_registration * user_context, int rc); |
| 151 |
|
| 152 |
int |
| 153 |
ipv6ScopeZoneIndexTable_rowreq_ctx_init |
| 154 |
(ipv6ScopeZoneIndexTable_rowreq_ctx * rowreq_ctx, |
| 155 |
void *user_init_ctx); |
| 156 |
void |
| 157 |
ipv6ScopeZoneIndexTable_rowreq_ctx_cleanup |
| 158 |
(ipv6ScopeZoneIndexTable_rowreq_ctx * rowreq_ctx); |
| 159 |
|
| 160 |
|
| 161 |
ipv6ScopeZoneIndexTable_rowreq_ctx |
| 162 |
*ipv6ScopeZoneIndexTable_row_find_by_mib_index |
| 163 |
(ipv6ScopeZoneIndexTable_mib_index * mib_idx); |
| 164 |
|
| 165 |
ipv6ScopeZoneIndexTable_data * |
| 166 |
ipv6ScopeZoneIndexTable_allocate_data(void); |
| 167 |
|
| 168 |
void |
| 169 |
ipv6ScopeZoneIndexTable_release_data(ipv6ScopeZoneIndexTable_data * data); |
| 170 |
|
| 171 |
extern const oid ipv6ScopeZoneIndexTable_oid[]; |
| 172 |
extern const int ipv6ScopeZoneIndexTable_oid_size; |
| 173 |
|
| 174 |
|
| 175 |
#include "ipv6ScopeZoneIndexTable_interface.h" |
| 176 |
#include "ipv6ScopeZoneIndexTable_data_access.h" |
| 177 |
/********************************************************************** |
| 178 |
********************************************************************** |
| 179 |
*** |
| 180 |
*** Table ipv6ScopeZoneIndexTable |
| 181 |
*** |
| 182 |
********************************************************************** |
| 183 |
**********************************************************************/ |
| 184 |
/* |
| 185 |
* IP-MIB::ipv6ScopeZoneIndexTable is subid 36 of ip. |
| 186 |
* Its status is Current. |
| 187 |
* OID: .1.3.6.1.2.1.4.36, length: 8 |
| 188 |
*/ |
| 189 |
/* |
| 190 |
* indexes |
| 191 |
*/ |
| 192 |
|
| 193 |
int |
| 194 |
ipv6ScopeZoneIndexLinkLocal_get(ipv6ScopeZoneIndexTable_rowreq_ctx |
| 195 |
* rowreq_ctx, |
| 196 |
u_long * |
| 197 |
ipv6ScopeZoneIndexLinkLocal_val_ptr); |
| 198 |
int |
| 199 |
ipv6ScopeZoneIndex3_get(ipv6ScopeZoneIndexTable_rowreq_ctx * |
| 200 |
rowreq_ctx, |
| 201 |
u_long * ipv6ScopeZoneIndex3_val_ptr); |
| 202 |
int |
| 203 |
ipv6ScopeZoneIndexAdminLocal_get(ipv6ScopeZoneIndexTable_rowreq_ctx |
| 204 |
* rowreq_ctx, |
| 205 |
u_long * |
| 206 |
ipv6ScopeZoneIndexAdminLocal_val_ptr); |
| 207 |
int |
| 208 |
ipv6ScopeZoneIndexSiteLocal_get(ipv6ScopeZoneIndexTable_rowreq_ctx |
| 209 |
* rowreq_ctx, |
| 210 |
u_long * |
| 211 |
ipv6ScopeZoneIndexSiteLocal_val_ptr); |
| 212 |
int |
| 213 |
ipv6ScopeZoneIndex6_get(ipv6ScopeZoneIndexTable_rowreq_ctx * |
| 214 |
rowreq_ctx, |
| 215 |
u_long * ipv6ScopeZoneIndex6_val_ptr); |
| 216 |
int |
| 217 |
ipv6ScopeZoneIndex7_get(ipv6ScopeZoneIndexTable_rowreq_ctx * |
| 218 |
rowreq_ctx, |
| 219 |
u_long * ipv6ScopeZoneIndex7_val_ptr); |
| 220 |
int |
| 221 |
ipv6ScopeZoneIndexOrganizationLocal_get |
| 222 |
(ipv6ScopeZoneIndexTable_rowreq_ctx * rowreq_ctx, |
| 223 |
u_long * ipv6ScopeZoneIndexOrganizationLocal_val_ptr); |
| 224 |
int |
| 225 |
ipv6ScopeZoneIndex9_get(ipv6ScopeZoneIndexTable_rowreq_ctx * |
| 226 |
rowreq_ctx, |
| 227 |
u_long * ipv6ScopeZoneIndex9_val_ptr); |
| 228 |
int |
| 229 |
ipv6ScopeZoneIndexA_get(ipv6ScopeZoneIndexTable_rowreq_ctx * |
| 230 |
rowreq_ctx, |
| 231 |
u_long * ipv6ScopeZoneIndexA_val_ptr); |
| 232 |
int |
| 233 |
ipv6ScopeZoneIndexB_get(ipv6ScopeZoneIndexTable_rowreq_ctx * |
| 234 |
rowreq_ctx, |
| 235 |
u_long * ipv6ScopeZoneIndexB_val_ptr); |
| 236 |
int |
| 237 |
ipv6ScopeZoneIndexC_get(ipv6ScopeZoneIndexTable_rowreq_ctx * |
| 238 |
rowreq_ctx, |
| 239 |
u_long * ipv6ScopeZoneIndexC_val_ptr); |
| 240 |
int |
| 241 |
ipv6ScopeZoneIndexD_get(ipv6ScopeZoneIndexTable_rowreq_ctx * |
| 242 |
rowreq_ctx, |
| 243 |
u_long * ipv6ScopeZoneIndexD_val_ptr); |
| 244 |
|
| 245 |
|
| 246 |
int |
| 247 |
ipv6ScopeZoneIndexTable_indexes_set_tbl_idx |
| 248 |
(ipv6ScopeZoneIndexTable_mib_index * tbl_idx, |
| 249 |
long ipv6ScopeZoneIndexIfIndex_val); |
| 250 |
int |
| 251 |
ipv6ScopeZoneIndexTable_indexes_set |
| 252 |
(ipv6ScopeZoneIndexTable_rowreq_ctx * rowreq_ctx, |
| 253 |
long ipv6ScopeZoneIndexIfIndex_val); |
| 254 |
|
| 255 |
/* |
| 256 |
* DUMMY markers, ignore |
| 257 |
* |
| 258 |
* TODO:099:x: ************************************************************* |
| 259 |
* TODO:199:x: ************************************************************* |
| 260 |
* TODO:299:x: ************************************************************* |
| 261 |
* TODO:399:x: ************************************************************* |
| 262 |
* TODO:499:x: ************************************************************* |
| 263 |
*/ |
| 264 |
|
| 265 |
#ifdef __cplusplus |
| 266 |
} |
| 267 |
#endif |
| 268 |
#endif /* IPV6SCOPEZONEINDEXTABLE_H */ |
| 269 |
/** @} */ |