| 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 IFTABLE_H |
| 8 |
#define IFTABLE_H |
| 9 |
|
| 10 |
#ifdef __cplusplus |
| 11 |
extern "C" { |
| 12 |
#endif |
| 13 |
|
| 14 |
|
| 15 |
/** @ingroup agent |
| 16 |
* @defgroup misc misc: Miscellaneous routines |
| 17 |
* |
| 18 |
* @{ |
| 19 |
*/ |
| 20 |
#include <net-snmp/library/asn1.h> |
| 21 |
#include <net-snmp/data_access/interface.h> |
| 22 |
|
| 23 |
/* |
| 24 |
* other required module components |
| 25 |
*/ |
| 26 |
/* *INDENT-OFF* */ |
| 27 |
config_require(if-mib/data_access/interface); |
| 28 |
config_require(if-mib/ifTable/ifTable_interface); |
| 29 |
config_require(if-mib/ifTable/ifTable_data_access); |
| 30 |
/* |
| 31 |
* conflicts with mibII/interfaces |
| 32 |
*/ |
| 33 |
config_exclude(mibII/interfaces); |
| 34 |
/* *INDENT-ON* */ |
| 35 |
|
| 36 |
/* |
| 37 |
* OID, column number and enum definions for ifTable |
| 38 |
*/ |
| 39 |
#include "ifTable_constants.h" |
| 40 |
|
| 41 |
/* |
| 42 |
********************************************************************* |
| 43 |
* function declarations |
| 44 |
*/ |
| 45 |
void init_ifTable(void); |
| 46 |
void shutdown_ifTable(void); |
| 47 |
|
| 48 |
/* |
| 49 |
********************************************************************* |
| 50 |
* Table declarations |
| 51 |
*/ |
| 52 |
/********************************************************************** |
| 53 |
********************************************************************** |
| 54 |
*** |
| 55 |
*** Table ifTable |
| 56 |
*** |
| 57 |
********************************************************************** |
| 58 |
**********************************************************************/ |
| 59 |
/* |
| 60 |
* IF-MIB::ifTable is subid 2 of interfaces. |
| 61 |
* Its status is Current. |
| 62 |
* OID: .1.3.6.1.2.1.2.2, length: 8 |
| 63 |
*/ |
| 64 |
/* |
| 65 |
********************************************************************* |
| 66 |
* When you register your mib, you get to provide a generic |
| 67 |
* pointer that will be passed back to you for most of the |
| 68 |
* functions calls. |
| 69 |
* |
| 70 |
* TODO:100:r: Review all context structures |
| 71 |
*/ |
| 72 |
/* |
| 73 |
* TODO:101:o: |-> Review ifTable registration context. |
| 74 |
*/ |
| 75 |
typedef netsnmp_data_list ifTable_registration; |
| 76 |
|
| 77 |
/**********************************************************************/ |
| 78 |
/* |
| 79 |
* TODO:110:r: |-> Review ifTable data context structure. |
| 80 |
* This structure is used to represent the data for ifTable. |
| 81 |
*/ |
| 82 |
/* |
| 83 |
* This structure contains storage for all the columns defined in the |
| 84 |
* ifTable. |
| 85 |
*/ |
| 86 |
typedef struct ifTable_data_s { |
| 87 |
|
| 88 |
/* |
| 89 |
* ifDescr(2)/DisplayString/ASN_OCTET_STR/char(char)//L/A/w/e/R/d/h |
| 90 |
*/ |
| 91 |
|
| 92 |
/* |
| 93 |
* ifType(3)/INTEGER/ASN_INTEGER/long(u_long)//l/A/w/E/r/d/h |
| 94 |
*/ |
| 95 |
|
| 96 |
/* |
| 97 |
* ifMtu(4)/INTEGER/ASN_INTEGER/long(long)//l/A/w/e/r/d/h |
| 98 |
*/ |
| 99 |
|
| 100 |
/* |
| 101 |
* ifSpeed(5)/GAUGE/ASN_GAUGE/u_long(u_long)//l/A/w/e/r/d/h |
| 102 |
*/ |
| 103 |
|
| 104 |
/* |
| 105 |
* ifPhysAddress(6)/PhysAddress/ASN_OCTET_STR/char(char)//L/A/w/e/r/d/h |
| 106 |
*/ |
| 107 |
|
| 108 |
/* |
| 109 |
* ifAdminStatus(7)/INTEGER/ASN_INTEGER/long(u_long)//l/A/W/E/r/d/h |
| 110 |
*/ |
| 111 |
|
| 112 |
/* |
| 113 |
* ifOperStatus(8)/INTEGER/ASN_INTEGER/long(u_long)//l/A/w/E/r/d/h |
| 114 |
*/ |
| 115 |
|
| 116 |
/* |
| 117 |
* ifLastChange(9)/TICKS/ASN_TIMETICKS/u_long(u_long)//l/A/w/e/r/d/h |
| 118 |
*/ |
| 119 |
|
| 120 |
/* |
| 121 |
* ifInOctets(10)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 122 |
*/ |
| 123 |
|
| 124 |
/* |
| 125 |
* ifInUcastPkts(11)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 126 |
*/ |
| 127 |
|
| 128 |
/* |
| 129 |
* ifInNUcastPkts(12)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 130 |
*/ |
| 131 |
|
| 132 |
/* |
| 133 |
* ifInDiscards(13)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 134 |
*/ |
| 135 |
|
| 136 |
/* |
| 137 |
* ifInErrors(14)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 138 |
*/ |
| 139 |
|
| 140 |
/* |
| 141 |
* ifInUnknownProtos(15)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 142 |
*/ |
| 143 |
|
| 144 |
/* |
| 145 |
* ifOutOctets(16)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 146 |
*/ |
| 147 |
|
| 148 |
/* |
| 149 |
* ifOutUcastPkts(17)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 150 |
*/ |
| 151 |
|
| 152 |
/* |
| 153 |
* ifOutNUcastPkts(18)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 154 |
*/ |
| 155 |
|
| 156 |
/* |
| 157 |
* ifOutDiscards(19)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 158 |
*/ |
| 159 |
|
| 160 |
/* |
| 161 |
* ifOutErrors(20)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 162 |
*/ |
| 163 |
|
| 164 |
/* |
| 165 |
* ifOutQLen(21)/GAUGE/ASN_GAUGE/u_long(u_long)//l/A/w/e/r/d/h |
| 166 |
*/ |
| 167 |
|
| 168 |
/* |
| 169 |
* ifSpecific(22)/OBJECTID/ASN_OBJECT_ID/oid(oid)//L/A/w/e/r/d/h |
| 170 |
*/ |
| 171 |
#ifdef IFTABLE_HAS_IFSPECIFIC |
| 172 |
oid ifSpecific[128]; |
| 173 |
size_t ifSpecific_len; /* # of oid elements, not bytes */ |
| 174 |
#endif |
| 175 |
|
| 176 |
#ifdef USING_IF_MIB_IFXTABLE_IFXTABLE_MODULE |
| 177 |
/* |
| 178 |
* ifXTable stuff |
| 179 |
*/ |
| 180 |
/* |
| 181 |
* ifName(1)/DisplayString/ASN_OCTET_STR/char(char)//L/A/w/e/R/d/H |
| 182 |
*/ |
| 183 |
|
| 184 |
/* |
| 185 |
* ifInMulticastPkts(2)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 186 |
*/ |
| 187 |
|
| 188 |
/* |
| 189 |
* ifInBroadcastPkts(3)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 190 |
*/ |
| 191 |
|
| 192 |
/* |
| 193 |
* ifOutMulticastPkts(4)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 194 |
*/ |
| 195 |
|
| 196 |
/* |
| 197 |
* ifOutBroadcastPkts(5)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 198 |
*/ |
| 199 |
|
| 200 |
/* |
| 201 |
* ifHCInOctets(6)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h |
| 202 |
*/ |
| 203 |
|
| 204 |
/* |
| 205 |
* ifHCInUcastPkts(7)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h |
| 206 |
*/ |
| 207 |
|
| 208 |
/* |
| 209 |
* ifHCInMulticastPkts(8)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h |
| 210 |
*/ |
| 211 |
|
| 212 |
/* |
| 213 |
* ifHCInBroadcastPkts(9)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h |
| 214 |
*/ |
| 215 |
|
| 216 |
/* |
| 217 |
* ifHCOutOctets(10)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h |
| 218 |
*/ |
| 219 |
|
| 220 |
/* |
| 221 |
* ifHCOutUcastPkts(11)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h |
| 222 |
*/ |
| 223 |
|
| 224 |
/* |
| 225 |
* ifHCOutMulticastPkts(12)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h |
| 226 |
*/ |
| 227 |
|
| 228 |
/* |
| 229 |
* ifHCOutBroadcastPkts(13)/COUNTER64/ASN_COUNTER64/U64(U64)//l/A/w/e/r/d/h |
| 230 |
*/ |
| 231 |
|
| 232 |
/* |
| 233 |
* ifLinkUpDownTrapEnable(14)/INTEGER/ASN_INTEGER/long(u_long)//l/A/W/E/r/d/h |
| 234 |
*/ |
| 235 |
u_long ifLinkUpDownTrapEnable; |
| 236 |
|
| 237 |
/* |
| 238 |
* ifHighSpeed(15)/GAUGE/ASN_GAUGE/u_long(u_long)//l/A/w/e/r/d/h |
| 239 |
*/ |
| 240 |
|
| 241 |
/* |
| 242 |
* ifPromiscuousMode(16)/TruthValue/ASN_INTEGER/long(u_long)//l/A/W/E/r/d/h |
| 243 |
*/ |
| 244 |
|
| 245 |
/* |
| 246 |
* ifConnectorPresent(17)/TruthValue/ASN_INTEGER/long(u_long)//l/A/w/E/r/d/h |
| 247 |
*/ |
| 248 |
|
| 249 |
/* |
| 250 |
* ifAlias(18)/DisplayString/ASN_OCTET_STR/char(char)//L/A/W/e/R/d/H |
| 251 |
*/ |
| 252 |
char ifAlias[64]; |
| 253 |
size_t ifAlias_len; /* # of char elements, not bytes */ |
| 254 |
|
| 255 |
/* |
| 256 |
* ifCounterDiscontinuityTime(19)/TimeStamp/ASN_TIMETICKS/u_long(u_long)//l/A/w/e/r/d/h |
| 257 |
*/ |
| 258 |
u_long ifCounterDiscontinuityTime; |
| 259 |
#endif /* USING_IF_MIB_IFXTABLE_IFXTABLE_MODULE */ |
| 260 |
|
| 261 |
|
| 262 |
/* |
| 263 |
* some data kept externally |
| 264 |
*/ |
| 265 |
netsnmp_interface_entry *ifentry; |
| 266 |
} ifTable_data; |
| 267 |
|
| 268 |
|
| 269 |
/* |
| 270 |
********************************************************************* |
| 271 |
* TODO:115:o: |-> Review ifTable undo context. |
| 272 |
* We're just going to use the same data structure for our |
| 273 |
* undo_context. If you want to do something more efficent, |
| 274 |
* define your typedef here. |
| 275 |
*/ |
| 276 |
typedef ifTable_data ifTable_undo_data; |
| 277 |
|
| 278 |
/* |
| 279 |
* TODO:120:r: |-> Review ifTable mib index. |
| 280 |
* This structure is used to represent the index for ifTable. |
| 281 |
*/ |
| 282 |
typedef struct ifTable_mib_index_s { |
| 283 |
|
| 284 |
/* |
| 285 |
* ifIndex(1)/InterfaceIndex/ASN_INTEGER/long(long)//l/A/w/e/R/d/H |
| 286 |
*/ |
| 287 |
long ifIndex; |
| 288 |
|
| 289 |
|
| 290 |
} ifTable_mib_index; |
| 291 |
|
| 292 |
/* |
| 293 |
* TODO:121:r: | |-> Review ifTable max index length. |
| 294 |
* If you KNOW that your indexes will never exceed a certain |
| 295 |
* length, update this macro to that length. |
| 296 |
*/ |
| 297 |
#define MAX_ifTable_IDX_LEN 1 |
| 298 |
|
| 299 |
|
| 300 |
/* |
| 301 |
********************************************************************* |
| 302 |
* TODO:130:o: |-> Review ifTable Row request (rowreq) context. |
| 303 |
* When your functions are called, you will be passed a |
| 304 |
* ifTable_rowreq_ctx pointer. |
| 305 |
*/ |
| 306 |
typedef struct ifTable_rowreq_ctx_s { |
| 307 |
|
| 308 |
/** this must be first for container compare to work */ |
| 309 |
netsnmp_index oid_idx; |
| 310 |
oid oid_tmp[MAX_ifTable_IDX_LEN]; |
| 311 |
|
| 312 |
ifTable_mib_index tbl_idx; |
| 313 |
|
| 314 |
ifTable_data data; |
| 315 |
ifTable_undo_data *undo; |
| 316 |
unsigned int column_set_flags; /* flags for set columns */ |
| 317 |
|
| 318 |
|
| 319 |
/* |
| 320 |
* flags per row. Currently, the first (lower) 8 bits are reserved |
| 321 |
* for the user. See mfd.h for other flags. |
| 322 |
*/ |
| 323 |
u_int rowreq_flags; |
| 324 |
|
| 325 |
/* |
| 326 |
* TODO:131:o: | |-> Add useful data to ifTable rowreq context. |
| 327 |
*/ |
| 328 |
char known_missing; |
| 329 |
u_char undo_ref_count; |
| 330 |
|
| 331 |
/* |
| 332 |
* storage for future expansion |
| 333 |
*/ |
| 334 |
netsnmp_data_list *ifTable_data_list; |
| 335 |
|
| 336 |
} ifTable_rowreq_ctx; |
| 337 |
|
| 338 |
typedef struct ifTable_ref_rowreq_ctx_s { |
| 339 |
ifTable_rowreq_ctx *rowreq_ctx; |
| 340 |
} ifTable_ref_rowreq_ctx; |
| 341 |
|
| 342 |
/* |
| 343 |
********************************************************************* |
| 344 |
* function prototypes |
| 345 |
*/ |
| 346 |
|
| 347 |
int _mfd_ifTable_undo_setup_allocate(ifTable_rowreq_ctx *rowreq_ctx); |
| 348 |
void _mfd_ifTable_undo_setup_release(ifTable_rowreq_ctx *rowreq_ctx); |
| 349 |
int ifTable_pre_request(ifTable_registration * |
| 350 |
user_context); |
| 351 |
int ifTable_post_request(ifTable_registration * |
| 352 |
user_context, int rc); |
| 353 |
|
| 354 |
ifTable_rowreq_ctx *ifTable_row_find_by_mib_index(ifTable_mib_index * |
| 355 |
mib_idx); |
| 356 |
|
| 357 |
extern const oid ifTable_oid[]; |
| 358 |
extern const int ifTable_oid_size; |
| 359 |
|
| 360 |
|
| 361 |
#include "ifTable_interface.h" |
| 362 |
#include "ifTable_data_access.h" |
| 363 |
/* |
| 364 |
********************************************************************* |
| 365 |
* GET function declarations |
| 366 |
*/ |
| 367 |
|
| 368 |
/* |
| 369 |
********************************************************************* |
| 370 |
* GET Table declarations |
| 371 |
*/ |
| 372 |
/********************************************************************** |
| 373 |
********************************************************************** |
| 374 |
*** |
| 375 |
*** Table ifTable |
| 376 |
*** |
| 377 |
********************************************************************** |
| 378 |
**********************************************************************/ |
| 379 |
/* |
| 380 |
* IF-MIB::ifTable is subid 2 of interfaces. |
| 381 |
* Its status is Current. |
| 382 |
* OID: .1.3.6.1.2.1.2.2, length: 8 |
| 383 |
*/ |
| 384 |
/* |
| 385 |
* indexes |
| 386 |
*/ |
| 387 |
|
| 388 |
int ifDescr_get(ifTable_rowreq_ctx * rowreq_ctx, |
| 389 |
char **ifDescr_val_ptr_ptr, |
| 390 |
size_t * ifDescr_val_ptr_len_ptr); |
| 391 |
int ifType_get(ifTable_rowreq_ctx * rowreq_ctx, |
| 392 |
u_long * ifType_val_ptr); |
| 393 |
int ifMtu_get(ifTable_rowreq_ctx * rowreq_ctx, |
| 394 |
long *ifMtu_val_ptr); |
| 395 |
int ifSpeed_get(ifTable_rowreq_ctx * rowreq_ctx, |
| 396 |
u_long * ifSpeed_val_ptr); |
| 397 |
int ifPhysAddress_get(ifTable_rowreq_ctx * rowreq_ctx, |
| 398 |
char **ifPhysAddress_val_ptr_ptr, |
| 399 |
size_t |
| 400 |
* ifPhysAddress_val_ptr_len_ptr); |
| 401 |
int ifAdminStatus_get(ifTable_rowreq_ctx * rowreq_ctx, |
| 402 |
u_long * ifAdminStatus_val_ptr); |
| 403 |
int ifOperStatus_get(ifTable_rowreq_ctx * rowreq_ctx, |
| 404 |
u_long * ifOperStatus_val_ptr); |
| 405 |
int ifLastChange_get(ifTable_rowreq_ctx * rowreq_ctx, |
| 406 |
u_long * ifLastChange_val_ptr); |
| 407 |
int ifInOctets_get(ifTable_rowreq_ctx * rowreq_ctx, |
| 408 |
u_long * ifInOctets_val_ptr); |
| 409 |
int ifInUcastPkts_get(ifTable_rowreq_ctx * rowreq_ctx, |
| 410 |
u_long * ifInUcastPkts_val_ptr); |
| 411 |
int ifInNUcastPkts_get(ifTable_rowreq_ctx * rowreq_ctx, |
| 412 |
u_long * ifInNUcastPkts_val_ptr); |
| 413 |
int ifInDiscards_get(ifTable_rowreq_ctx * rowreq_ctx, |
| 414 |
u_long * ifInDiscards_val_ptr); |
| 415 |
int ifInErrors_get(ifTable_rowreq_ctx * rowreq_ctx, |
| 416 |
u_long * ifInErrors_val_ptr); |
| 417 |
int ifInUnknownProtos_get(ifTable_rowreq_ctx * rowreq_ctx, |
| 418 |
u_long * |
| 419 |
ifInUnknownProtos_val_ptr); |
| 420 |
int ifOutOctets_get(ifTable_rowreq_ctx * rowreq_ctx, |
| 421 |
u_long * ifOutOctets_val_ptr); |
| 422 |
int ifOutUcastPkts_get(ifTable_rowreq_ctx * rowreq_ctx, |
| 423 |
u_long * ifOutUcastPkts_val_ptr); |
| 424 |
int ifOutNUcastPkts_get(ifTable_rowreq_ctx * rowreq_ctx, |
| 425 |
u_long * ifOutNUcastPkts_val_ptr); |
| 426 |
int ifOutDiscards_get(ifTable_rowreq_ctx * rowreq_ctx, |
| 427 |
u_long * ifOutDiscards_val_ptr); |
| 428 |
int ifOutErrors_get(ifTable_rowreq_ctx * rowreq_ctx, |
| 429 |
u_long * ifOutErrors_val_ptr); |
| 430 |
int ifOutQLen_get(ifTable_rowreq_ctx * rowreq_ctx, |
| 431 |
u_long * ifOutQLen_val_ptr); |
| 432 |
int ifSpecific_get(ifTable_rowreq_ctx * rowreq_ctx, |
| 433 |
oid ** ifSpecific_val_ptr_ptr, |
| 434 |
size_t * ifSpecific_val_ptr_len_ptr); |
| 435 |
|
| 436 |
|
| 437 |
int ifTable_indexes_set(ifTable_rowreq_ctx * rowreq_ctx, |
| 438 |
long ifIndex_val); |
| 439 |
|
| 440 |
|
| 441 |
|
| 442 |
#ifndef NETSNMP_NO_WRITE_SUPPORT |
| 443 |
/* |
| 444 |
********************************************************************* |
| 445 |
* SET function declarations |
| 446 |
*/ |
| 447 |
|
| 448 |
/* |
| 449 |
********************************************************************* |
| 450 |
* SET Table declarations |
| 451 |
*/ |
| 452 |
/********************************************************************** |
| 453 |
********************************************************************** |
| 454 |
*** |
| 455 |
*** Table ifTable |
| 456 |
*** |
| 457 |
********************************************************************** |
| 458 |
**********************************************************************/ |
| 459 |
/* |
| 460 |
* IF-MIB::ifTable is subid 2 of interfaces. |
| 461 |
* Its status is Current. |
| 462 |
* OID: .1.3.6.1.2.1.2.2, length: 8 |
| 463 |
*/ |
| 464 |
|
| 465 |
|
| 466 |
int ifTable_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); |
| 467 |
int ifTable_undo_cleanup(ifTable_rowreq_ctx * rowreq_ctx); |
| 468 |
int ifTable_undo(ifTable_rowreq_ctx * rowreq_ctx); |
| 469 |
int ifTable_commit(ifTable_rowreq_ctx * rowreq_ctx); |
| 470 |
int ifTable_undo_commit(ifTable_rowreq_ctx * rowreq_ctx); |
| 471 |
|
| 472 |
|
| 473 |
int ifDescr_check_value(ifTable_rowreq_ctx * rowreq_ctx, |
| 474 |
char *ifDescr_val_ptr, |
| 475 |
size_t ifDescr_val_ptr_len); |
| 476 |
int ifDescr_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); |
| 477 |
int ifDescr_set(ifTable_rowreq_ctx * rowreq_ctx, |
| 478 |
char *ifDescr_val_ptr, |
| 479 |
size_t ifDescr_val_ptr_len); |
| 480 |
int ifDescr_undo(ifTable_rowreq_ctx * rowreq_ctx); |
| 481 |
|
| 482 |
int ifType_check_value(ifTable_rowreq_ctx * rowreq_ctx, |
| 483 |
u_long ifType_val); |
| 484 |
int ifType_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); |
| 485 |
int ifType_set(ifTable_rowreq_ctx * rowreq_ctx, |
| 486 |
u_long ifType_val); |
| 487 |
int ifType_undo(ifTable_rowreq_ctx * rowreq_ctx); |
| 488 |
|
| 489 |
int ifMtu_check_value(ifTable_rowreq_ctx * rowreq_ctx, |
| 490 |
long ifMtu_val); |
| 491 |
int ifMtu_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); |
| 492 |
int ifMtu_set(ifTable_rowreq_ctx * rowreq_ctx, |
| 493 |
long ifMtu_val); |
| 494 |
int ifMtu_undo(ifTable_rowreq_ctx * rowreq_ctx); |
| 495 |
|
| 496 |
int ifSpeed_check_value(ifTable_rowreq_ctx * rowreq_ctx, |
| 497 |
u_long ifSpeed_val); |
| 498 |
int ifSpeed_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); |
| 499 |
int ifSpeed_set(ifTable_rowreq_ctx * rowreq_ctx, |
| 500 |
u_long ifSpeed_val); |
| 501 |
int ifSpeed_undo(ifTable_rowreq_ctx * rowreq_ctx); |
| 502 |
|
| 503 |
int ifPhysAddress_check_value(ifTable_rowreq_ctx * |
| 504 |
rowreq_ctx, |
| 505 |
char *ifPhysAddress_val_ptr, |
| 506 |
size_t |
| 507 |
ifPhysAddress_val_ptr_len); |
| 508 |
int ifPhysAddress_undo_setup(ifTable_rowreq_ctx * |
| 509 |
rowreq_ctx); |
| 510 |
int ifPhysAddress_set(ifTable_rowreq_ctx * rowreq_ctx, |
| 511 |
char *ifPhysAddress_val_ptr, |
| 512 |
size_t ifPhysAddress_val_ptr_len); |
| 513 |
int ifPhysAddress_undo(ifTable_rowreq_ctx * rowreq_ctx); |
| 514 |
|
| 515 |
int ifAdminStatus_check_value(ifTable_rowreq_ctx * |
| 516 |
rowreq_ctx, |
| 517 |
u_long ifAdminStatus_val); |
| 518 |
int ifAdminStatus_undo_setup(ifTable_rowreq_ctx * |
| 519 |
rowreq_ctx); |
| 520 |
int ifAdminStatus_set(ifTable_rowreq_ctx * rowreq_ctx, |
| 521 |
u_long ifAdminStatus_val); |
| 522 |
int ifAdminStatus_undo(ifTable_rowreq_ctx * rowreq_ctx); |
| 523 |
|
| 524 |
int ifOperStatus_check_value(ifTable_rowreq_ctx * |
| 525 |
rowreq_ctx, |
| 526 |
u_long ifOperStatus_val); |
| 527 |
int ifOperStatus_undo_setup(ifTable_rowreq_ctx * |
| 528 |
rowreq_ctx); |
| 529 |
int ifOperStatus_set(ifTable_rowreq_ctx * rowreq_ctx, |
| 530 |
u_long ifOperStatus_val); |
| 531 |
int ifOperStatus_undo(ifTable_rowreq_ctx * rowreq_ctx); |
| 532 |
|
| 533 |
int ifLastChange_check_value(ifTable_rowreq_ctx * |
| 534 |
rowreq_ctx, |
| 535 |
u_long ifLastChange_val); |
| 536 |
int ifLastChange_undo_setup(ifTable_rowreq_ctx * |
| 537 |
rowreq_ctx); |
| 538 |
int ifLastChange_set(ifTable_rowreq_ctx * rowreq_ctx, |
| 539 |
u_long ifLastChange_val); |
| 540 |
int ifLastChange_undo(ifTable_rowreq_ctx * rowreq_ctx); |
| 541 |
|
| 542 |
int ifInOctets_check_value(ifTable_rowreq_ctx * rowreq_ctx, |
| 543 |
u_long ifInOctets_val); |
| 544 |
int ifInOctets_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); |
| 545 |
int ifInOctets_set(ifTable_rowreq_ctx * rowreq_ctx, |
| 546 |
u_long ifInOctets_val); |
| 547 |
int ifInOctets_undo(ifTable_rowreq_ctx * rowreq_ctx); |
| 548 |
|
| 549 |
int ifInUcastPkts_check_value(ifTable_rowreq_ctx * |
| 550 |
rowreq_ctx, |
| 551 |
u_long ifInUcastPkts_val); |
| 552 |
int ifInUcastPkts_undo_setup(ifTable_rowreq_ctx * |
| 553 |
rowreq_ctx); |
| 554 |
int ifInUcastPkts_set(ifTable_rowreq_ctx * rowreq_ctx, |
| 555 |
u_long ifInUcastPkts_val); |
| 556 |
int ifInUcastPkts_undo(ifTable_rowreq_ctx * rowreq_ctx); |
| 557 |
|
| 558 |
int ifInNUcastPkts_check_value(ifTable_rowreq_ctx * |
| 559 |
rowreq_ctx, |
| 560 |
u_long ifInNUcastPkts_val); |
| 561 |
int ifInNUcastPkts_undo_setup(ifTable_rowreq_ctx * |
| 562 |
rowreq_ctx); |
| 563 |
int ifInNUcastPkts_set(ifTable_rowreq_ctx * rowreq_ctx, |
| 564 |
u_long ifInNUcastPkts_val); |
| 565 |
int ifInNUcastPkts_undo(ifTable_rowreq_ctx * rowreq_ctx); |
| 566 |
|
| 567 |
int ifInDiscards_check_value(ifTable_rowreq_ctx * |
| 568 |
rowreq_ctx, |
| 569 |
u_long ifInDiscards_val); |
| 570 |
int ifInDiscards_undo_setup(ifTable_rowreq_ctx * |
| 571 |
rowreq_ctx); |
| 572 |
int ifInDiscards_set(ifTable_rowreq_ctx * rowreq_ctx, |
| 573 |
u_long ifInDiscards_val); |
| 574 |
int ifInDiscards_undo(ifTable_rowreq_ctx * rowreq_ctx); |
| 575 |
|
| 576 |
int ifInErrors_check_value(ifTable_rowreq_ctx * rowreq_ctx, |
| 577 |
u_long ifInErrors_val); |
| 578 |
int ifInErrors_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); |
| 579 |
int ifInErrors_set(ifTable_rowreq_ctx * rowreq_ctx, |
| 580 |
u_long ifInErrors_val); |
| 581 |
int ifInErrors_undo(ifTable_rowreq_ctx * rowreq_ctx); |
| 582 |
|
| 583 |
int ifInUnknownProtos_check_value(ifTable_rowreq_ctx * |
| 584 |
rowreq_ctx, |
| 585 |
u_long |
| 586 |
ifInUnknownProtos_val); |
| 587 |
int ifInUnknownProtos_undo_setup(ifTable_rowreq_ctx * |
| 588 |
rowreq_ctx); |
| 589 |
int ifInUnknownProtos_set(ifTable_rowreq_ctx * rowreq_ctx, |
| 590 |
u_long ifInUnknownProtos_val); |
| 591 |
int ifInUnknownProtos_undo(ifTable_rowreq_ctx * |
| 592 |
rowreq_ctx); |
| 593 |
|
| 594 |
int ifOutOctets_check_value(ifTable_rowreq_ctx * |
| 595 |
rowreq_ctx, |
| 596 |
u_long ifOutOctets_val); |
| 597 |
int ifOutOctets_undo_setup(ifTable_rowreq_ctx * |
| 598 |
rowreq_ctx); |
| 599 |
int ifOutOctets_set(ifTable_rowreq_ctx * rowreq_ctx, |
| 600 |
u_long ifOutOctets_val); |
| 601 |
int ifOutOctets_undo(ifTable_rowreq_ctx * rowreq_ctx); |
| 602 |
|
| 603 |
int ifOutUcastPkts_check_value(ifTable_rowreq_ctx * |
| 604 |
rowreq_ctx, |
| 605 |
u_long ifOutUcastPkts_val); |
| 606 |
int ifOutUcastPkts_undo_setup(ifTable_rowreq_ctx * |
| 607 |
rowreq_ctx); |
| 608 |
int ifOutUcastPkts_set(ifTable_rowreq_ctx * rowreq_ctx, |
| 609 |
u_long ifOutUcastPkts_val); |
| 610 |
int ifOutUcastPkts_undo(ifTable_rowreq_ctx * rowreq_ctx); |
| 611 |
|
| 612 |
int ifOutNUcastPkts_check_value(ifTable_rowreq_ctx * |
| 613 |
rowreq_ctx, |
| 614 |
u_long |
| 615 |
ifOutNUcastPkts_val); |
| 616 |
int ifOutNUcastPkts_undo_setup(ifTable_rowreq_ctx * |
| 617 |
rowreq_ctx); |
| 618 |
int ifOutNUcastPkts_set(ifTable_rowreq_ctx * rowreq_ctx, |
| 619 |
u_long ifOutNUcastPkts_val); |
| 620 |
int ifOutNUcastPkts_undo(ifTable_rowreq_ctx * rowreq_ctx); |
| 621 |
|
| 622 |
int ifOutDiscards_check_value(ifTable_rowreq_ctx * |
| 623 |
rowreq_ctx, |
| 624 |
u_long ifOutDiscards_val); |
| 625 |
int ifOutDiscards_undo_setup(ifTable_rowreq_ctx * |
| 626 |
rowreq_ctx); |
| 627 |
int ifOutDiscards_set(ifTable_rowreq_ctx * rowreq_ctx, |
| 628 |
u_long ifOutDiscards_val); |
| 629 |
int ifOutDiscards_undo(ifTable_rowreq_ctx * rowreq_ctx); |
| 630 |
|
| 631 |
int ifOutErrors_check_value(ifTable_rowreq_ctx * |
| 632 |
rowreq_ctx, |
| 633 |
u_long ifOutErrors_val); |
| 634 |
int ifOutErrors_undo_setup(ifTable_rowreq_ctx * |
| 635 |
rowreq_ctx); |
| 636 |
int ifOutErrors_set(ifTable_rowreq_ctx * rowreq_ctx, |
| 637 |
u_long ifOutErrors_val); |
| 638 |
int ifOutErrors_undo(ifTable_rowreq_ctx * rowreq_ctx); |
| 639 |
|
| 640 |
int ifOutQLen_check_value(ifTable_rowreq_ctx * rowreq_ctx, |
| 641 |
u_long ifOutQLen_val); |
| 642 |
int ifOutQLen_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); |
| 643 |
int ifOutQLen_set(ifTable_rowreq_ctx * rowreq_ctx, |
| 644 |
u_long ifOutQLen_val); |
| 645 |
int ifOutQLen_undo(ifTable_rowreq_ctx * rowreq_ctx); |
| 646 |
|
| 647 |
int ifSpecific_check_value(ifTable_rowreq_ctx * rowreq_ctx, |
| 648 |
oid * ifSpecific_val_ptr, |
| 649 |
size_t ifSpecific_val_ptr_len); |
| 650 |
int ifSpecific_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); |
| 651 |
int ifSpecific_set(ifTable_rowreq_ctx * rowreq_ctx, |
| 652 |
oid * ifSpecific_val_ptr, |
| 653 |
size_t ifSpecific_val_ptr_len); |
| 654 |
int ifSpecific_undo(ifTable_rowreq_ctx * rowreq_ctx); |
| 655 |
|
| 656 |
|
| 657 |
int ifTable_check_dependencies(ifTable_rowreq_ctx * ctx); |
| 658 |
#endif /* !NETSNMP_NO_WRITE_SUPPORT */ |
| 659 |
|
| 660 |
/* |
| 661 |
* DUMMY markers, ignore |
| 662 |
* |
| 663 |
* TODO:099:x: ************************************************************* |
| 664 |
* TODO:199:x: ************************************************************* |
| 665 |
* TODO:299:x: ************************************************************* |
| 666 |
* TODO:399:x: ************************************************************* |
| 667 |
* TODO:499:x: ************************************************************* |
| 668 |
*/ |
| 669 |
|
| 670 |
#ifdef __cplusplus |
| 671 |
} |
| 672 |
#endif |
| 673 |
#endif /* IFTABLE_H */ |
| 674 |
/** @} */ |
| 675 |
|