| 1 |
/* |
| 2 |
* Note: this file originally auto-generated by mib2c using |
| 3 |
* version : 1.48 $ of : mfd-top.m2c,v $ |
| 4 |
* |
| 5 |
* $Id$ |
| 6 |
*/ |
| 7 |
#ifndef IPV4INTERFACETABLE_H |
| 8 |
#define IPV4INTERFACETABLE_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/interface.h> |
| 21 |
|
| 22 |
#include "if-mib/ifTable/ifTable.h" |
| 23 |
|
| 24 |
/* |
| 25 |
* other required module components |
| 26 |
*/ |
| 27 |
/* *INDENT-OFF* */ |
| 28 |
config_require(if-mib/ifTable/ifTable); |
| 29 |
config_require(ip-mib/ipv4InterfaceTable/ipv4InterfaceTable_interface); |
| 30 |
config_require(ip-mib/ipv4InterfaceTable/ipv4InterfaceTable_data_access); |
| 31 |
/* *INDENT-ON* */ |
| 32 |
|
| 33 |
/* |
| 34 |
* OID, column number and enum definions for ipv4InterfaceTable |
| 35 |
*/ |
| 36 |
#include "ipv4InterfaceTable_constants.h" |
| 37 |
|
| 38 |
/* |
| 39 |
********************************************************************* |
| 40 |
* function declarations |
| 41 |
*/ |
| 42 |
void initialize_table_ipv4InterfaceTable(void); |
| 43 |
void init_ipv4InterfaceTable(void); |
| 44 |
void shutdown_ipv4InterfaceTable(void); |
| 45 |
|
| 46 |
/* |
| 47 |
********************************************************************* |
| 48 |
* Table declarations |
| 49 |
*/ |
| 50 |
/********************************************************************** |
| 51 |
********************************************************************** |
| 52 |
*** |
| 53 |
*** Table ipv4InterfaceTable |
| 54 |
*** |
| 55 |
********************************************************************** |
| 56 |
**********************************************************************/ |
| 57 |
/* |
| 58 |
* IP-MIB::ipv4InterfaceTable is subid 28 of ip. |
| 59 |
* Its status is Current. |
| 60 |
* OID: .1.3.6.1.2.1.4.28, length: 8 |
| 61 |
* |
| 62 |
* we share data structures (data too, in fact) with ifTable |
| 63 |
*/ |
| 64 |
typedef ifTable_registration ipv4InterfaceTable_registration; |
| 65 |
typedef ifTable_data ipv4InterfaceTable_data; |
| 66 |
typedef ifTable_undo_data ipv4InterfaceTable_undo_data; |
| 67 |
typedef ifTable_mib_index ipv4InterfaceTable_mib_index; |
| 68 |
typedef ifTable_rowreq_ctx ipv4InterfaceTable_rowreq_ctx; |
| 69 |
|
| 70 |
/* |
| 71 |
* ipv4InterfaceReasmMaxSize(2)/INTEGER32/ASN_INTEGER/long(long)//l/A/w/e/R/d/h |
| 72 |
*/ |
| 73 |
#define ipv4InterfaceReasmMaxSize ifentry->reasm_max_v4 |
| 74 |
|
| 75 |
/* |
| 76 |
* ipv4InterfaceEnableStatus(3)/INTEGER/ASN_INTEGER/long(u_long)//l/A/W/E/r/d/h |
| 77 |
*/ |
| 78 |
#define ipv4InterfaceEnableStatus ifentry->admin_status |
| 79 |
|
| 80 |
/* |
| 81 |
* ipv4InterfaceRetransmitTime(4)/UNSIGNED32/ASN_UNSIGNED/u_long(u_long)//l/A/w/e/r/D/h |
| 82 |
*/ |
| 83 |
#define ipv4InterfaceRetransmitTime ifentry->retransmit_v4 |
| 84 |
|
| 85 |
|
| 86 |
/* |
| 87 |
********************************************************************* |
| 88 |
* function prototypes |
| 89 |
*/ |
| 90 |
int |
| 91 |
ipv4InterfaceTable_pre_request(ipv4InterfaceTable_registration * |
| 92 |
user_context); |
| 93 |
int |
| 94 |
ipv4InterfaceTable_post_request(ipv4InterfaceTable_registration * |
| 95 |
user_context, int rc); |
| 96 |
|
| 97 |
int |
| 98 |
ipv4InterfaceTable_rowreq_ctx_init(ipv4InterfaceTable_rowreq_ctx * |
| 99 |
rowreq_ctx, |
| 100 |
void *user_init_ctx); |
| 101 |
void |
| 102 |
ipv4InterfaceTable_rowreq_ctx_cleanup(ipv4InterfaceTable_rowreq_ctx |
| 103 |
* rowreq_ctx); |
| 104 |
|
| 105 |
extern const oid ipv4InterfaceTable_oid[]; |
| 106 |
extern const int ipv4InterfaceTable_oid_size; |
| 107 |
|
| 108 |
|
| 109 |
#include "ipv4InterfaceTable_interface.h" |
| 110 |
#include "ipv4InterfaceTable_data_access.h" |
| 111 |
/* |
| 112 |
********************************************************************* |
| 113 |
* GET function declarations |
| 114 |
*/ |
| 115 |
|
| 116 |
/* |
| 117 |
********************************************************************* |
| 118 |
* GET Table declarations |
| 119 |
*/ |
| 120 |
/********************************************************************** |
| 121 |
********************************************************************** |
| 122 |
*** |
| 123 |
*** Table ipv4InterfaceTable |
| 124 |
*** |
| 125 |
********************************************************************** |
| 126 |
**********************************************************************/ |
| 127 |
/* |
| 128 |
* IP-MIB::ipv4InterfaceTable is subid 28 of ip. |
| 129 |
* Its status is Current. |
| 130 |
* OID: .1.3.6.1.2.1.4.28, length: 8 |
| 131 |
*/ |
| 132 |
/* |
| 133 |
* indexes |
| 134 |
*/ |
| 135 |
|
| 136 |
int |
| 137 |
ipv4InterfaceReasmMaxSize_get(ipv4InterfaceTable_rowreq_ctx * |
| 138 |
rowreq_ctx, long |
| 139 |
*ipv4InterfaceReasmMaxSize_val_ptr); |
| 140 |
int |
| 141 |
ipv4InterfaceEnableStatus_get(ipv4InterfaceTable_rowreq_ctx * |
| 142 |
rowreq_ctx, |
| 143 |
u_long * |
| 144 |
ipv4InterfaceEnableStatus_val_ptr); |
| 145 |
int |
| 146 |
ipv4InterfaceRetransmitTime_get(ipv4InterfaceTable_rowreq_ctx * |
| 147 |
rowreq_ctx, |
| 148 |
u_long * |
| 149 |
ipv4InterfaceRetransmitTime_val_ptr); |
| 150 |
|
| 151 |
|
| 152 |
int |
| 153 |
ipv4InterfaceTable_indexes_set_tbl_idx(ipv4InterfaceTable_mib_index |
| 154 |
* tbl_idx, long |
| 155 |
ipv4InterfaceIfIndex_val); |
| 156 |
int |
| 157 |
ipv4InterfaceTable_indexes_set(ipv4InterfaceTable_rowreq_ctx * |
| 158 |
rowreq_ctx, |
| 159 |
long ipv4InterfaceIfIndex_val); |
| 160 |
|
| 161 |
|
| 162 |
|
| 163 |
/* |
| 164 |
********************************************************************* |
| 165 |
* SET function declarations |
| 166 |
*/ |
| 167 |
|
| 168 |
/* |
| 169 |
********************************************************************* |
| 170 |
* SET Table declarations |
| 171 |
*/ |
| 172 |
/********************************************************************** |
| 173 |
********************************************************************** |
| 174 |
*** |
| 175 |
*** Table ipv4InterfaceTable |
| 176 |
*** |
| 177 |
********************************************************************** |
| 178 |
**********************************************************************/ |
| 179 |
/* |
| 180 |
* IP-MIB::ipv4InterfaceTable is subid 28 of ip. |
| 181 |
* Its status is Current. |
| 182 |
* OID: .1.3.6.1.2.1.4.28, length: 8 |
| 183 |
*/ |
| 184 |
|
| 185 |
|
| 186 |
int |
| 187 |
ipv4InterfaceTable_undo_setup(ipv4InterfaceTable_rowreq_ctx * |
| 188 |
rowreq_ctx); |
| 189 |
int |
| 190 |
ipv4InterfaceTable_undo_cleanup(ipv4InterfaceTable_rowreq_ctx * |
| 191 |
rowreq_ctx); |
| 192 |
int ipv4InterfaceTable_undo(ipv4InterfaceTable_rowreq_ctx * |
| 193 |
rowreq_ctx); |
| 194 |
int ipv4InterfaceTable_commit(ipv4InterfaceTable_rowreq_ctx |
| 195 |
* rowreq_ctx); |
| 196 |
int |
| 197 |
ipv4InterfaceTable_undo_commit(ipv4InterfaceTable_rowreq_ctx * |
| 198 |
rowreq_ctx); |
| 199 |
|
| 200 |
|
| 201 |
int |
| 202 |
ipv4InterfaceReasmMaxSize_check_value(ipv4InterfaceTable_rowreq_ctx |
| 203 |
* rowreq_ctx, long |
| 204 |
ipv4InterfaceReasmMaxSize_val); |
| 205 |
int |
| 206 |
ipv4InterfaceReasmMaxSize_undo_setup(ipv4InterfaceTable_rowreq_ctx |
| 207 |
* rowreq_ctx); |
| 208 |
int |
| 209 |
ipv4InterfaceReasmMaxSize_set(ipv4InterfaceTable_rowreq_ctx * |
| 210 |
rowreq_ctx, |
| 211 |
long ipv4InterfaceReasmMaxSize_val); |
| 212 |
int |
| 213 |
ipv4InterfaceReasmMaxSize_undo(ipv4InterfaceTable_rowreq_ctx * |
| 214 |
rowreq_ctx); |
| 215 |
|
| 216 |
int |
| 217 |
ipv4InterfaceEnableStatus_check_value(ipv4InterfaceTable_rowreq_ctx |
| 218 |
* rowreq_ctx, |
| 219 |
u_long |
| 220 |
ipv4InterfaceEnableStatus_val); |
| 221 |
int |
| 222 |
ipv4InterfaceEnableStatus_undo_setup(ipv4InterfaceTable_rowreq_ctx |
| 223 |
* rowreq_ctx); |
| 224 |
int |
| 225 |
ipv4InterfaceEnableStatus_set(ipv4InterfaceTable_rowreq_ctx * |
| 226 |
rowreq_ctx, |
| 227 |
u_long |
| 228 |
ipv4InterfaceEnableStatus_val); |
| 229 |
int |
| 230 |
ipv4InterfaceEnableStatus_undo(ipv4InterfaceTable_rowreq_ctx * |
| 231 |
rowreq_ctx); |
| 232 |
|
| 233 |
int |
| 234 |
ipv4InterfaceRetransmitTime_check_value |
| 235 |
(ipv4InterfaceTable_rowreq_ctx * rowreq_ctx, |
| 236 |
u_long ipv4InterfaceRetransmitTime_val); |
| 237 |
int |
| 238 |
ipv4InterfaceRetransmitTime_undo_setup |
| 239 |
(ipv4InterfaceTable_rowreq_ctx * rowreq_ctx); |
| 240 |
int |
| 241 |
ipv4InterfaceRetransmitTime_set(ipv4InterfaceTable_rowreq_ctx * |
| 242 |
rowreq_ctx, |
| 243 |
u_long |
| 244 |
ipv4InterfaceRetransmitTime_val); |
| 245 |
int |
| 246 |
ipv4InterfaceRetransmitTime_undo(ipv4InterfaceTable_rowreq_ctx * |
| 247 |
rowreq_ctx); |
| 248 |
|
| 249 |
|
| 250 |
int |
| 251 |
ipv4InterfaceTable_check_dependencies(ipv4InterfaceTable_rowreq_ctx |
| 252 |
* ctx); |
| 253 |
|
| 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 /* IPV4INTERFACETABLE_H */ |
| 269 |
/** @} */ |
| 270 |
|