| 1 |
/* |
| 2 |
* Note: this file originally auto-generated by mib2c using |
| 3 |
* version : 14170 $ of $ |
| 4 |
* |
| 5 |
* $Id:$ |
| 6 |
*/ |
| 7 |
#ifndef DOT3STATSTABLE_H |
| 8 |
#define DOT3STATSTABLE_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 |
|
| 21 |
/* |
| 22 |
* OID and column number definitions for dot3StatsTable |
| 23 |
*/ |
| 24 |
#include "dot3StatsTable_oids.h" |
| 25 |
|
| 26 |
/* |
| 27 |
* enum definions |
| 28 |
*/ |
| 29 |
#include "dot3StatsTable_enums.h" |
| 30 |
|
| 31 |
/* |
| 32 |
********************************************************************* |
| 33 |
* function declarations |
| 34 |
*/ |
| 35 |
void init_dot3StatsTable(void); |
| 36 |
void shutdown_dot3StatsTable(void); |
| 37 |
|
| 38 |
/* |
| 39 |
********************************************************************* |
| 40 |
* Table declarations |
| 41 |
*/ |
| 42 |
/********************************************************************** |
| 43 |
********************************************************************** |
| 44 |
*** |
| 45 |
*** Table dot3StatsTable |
| 46 |
*** |
| 47 |
********************************************************************** |
| 48 |
**********************************************************************/ |
| 49 |
/* |
| 50 |
* EtherLike-MIB::dot3StatsTable is subid 2 of dot3. |
| 51 |
* Its status is Current. |
| 52 |
* OID: .1.3.6.1.2.1.10.7.2, length: 9 |
| 53 |
*/ |
| 54 |
/* |
| 55 |
********************************************************************* |
| 56 |
* When you register your mib, you get to provide a generic |
| 57 |
* pointer that will be passed back to you for most of the |
| 58 |
* functions calls. |
| 59 |
* |
| 60 |
* TODO:100:r: Review all context structures |
| 61 |
*/ |
| 62 |
/* |
| 63 |
* TODO:101:o: |-> Review dot3StatsTable registration context. |
| 64 |
*/ |
| 65 |
typedef netsnmp_data_list dot3StatsTable_registration; |
| 66 |
|
| 67 |
/**********************************************************************/ |
| 68 |
/* |
| 69 |
* TODO:110:r: |-> Review dot3StatsTable data context structure. |
| 70 |
* This structure is used to represent the data for dot3StatsTable. |
| 71 |
*/ |
| 72 |
/* |
| 73 |
* This structure contains storage for all the columns defined in the |
| 74 |
* dot3StatsTable. |
| 75 |
*/ |
| 76 |
typedef struct dot3StatsTable_data_s { |
| 77 |
|
| 78 |
/* |
| 79 |
* dot3StatsAlignmentErrors(2)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 80 |
*/ |
| 81 |
u_long dot3StatsAlignmentErrors; |
| 82 |
|
| 83 |
/* |
| 84 |
* dot3StatsFCSErrors(3)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 85 |
*/ |
| 86 |
u_long dot3StatsFCSErrors; |
| 87 |
|
| 88 |
/* |
| 89 |
* dot3StatsSingleCollisionFrames(4)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 90 |
*/ |
| 91 |
u_long dot3StatsSingleCollisionFrames; |
| 92 |
|
| 93 |
/* |
| 94 |
* dot3StatsMultipleCollisionFrames(5)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 95 |
*/ |
| 96 |
u_long dot3StatsMultipleCollisionFrames; |
| 97 |
|
| 98 |
/* |
| 99 |
* dot3StatsSQETestErrors(6)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 100 |
*/ |
| 101 |
u_long dot3StatsSQETestErrors; |
| 102 |
|
| 103 |
/* |
| 104 |
* dot3StatsDeferredTransmissions(7)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 105 |
*/ |
| 106 |
u_long dot3StatsDeferredTransmissions; |
| 107 |
|
| 108 |
/* |
| 109 |
* dot3StatsLateCollisions(8)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 110 |
*/ |
| 111 |
u_long dot3StatsLateCollisions; |
| 112 |
|
| 113 |
/* |
| 114 |
* dot3StatsExcessiveCollisions(9)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 115 |
*/ |
| 116 |
u_long dot3StatsExcessiveCollisions; |
| 117 |
|
| 118 |
/* |
| 119 |
* dot3StatsInternalMacTransmitErrors(10)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 120 |
*/ |
| 121 |
u_long dot3StatsInternalMacTransmitErrors; |
| 122 |
|
| 123 |
/* |
| 124 |
* dot3StatsCarrierSenseErrors(11)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 125 |
*/ |
| 126 |
u_long dot3StatsCarrierSenseErrors; |
| 127 |
|
| 128 |
/* |
| 129 |
* dot3StatsFrameTooLongs(13)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 130 |
*/ |
| 131 |
u_long dot3StatsFrameTooLongs; |
| 132 |
|
| 133 |
/* |
| 134 |
* dot3StatsInternalMacReceiveErrors(16)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 135 |
*/ |
| 136 |
u_long dot3StatsInternalMacReceiveErrors; |
| 137 |
|
| 138 |
/* |
| 139 |
* dot3StatsEtherChipSet(17)/OBJECTID/ASN_OBJECT_ID/oid(oid)//L/A/w/e/r/d/h |
| 140 |
*/ |
| 141 |
oid dot3StatsEtherChipSet[128]; |
| 142 |
size_t dot3StatsEtherChipSet_len; /* # of oid elements, not bytes */ |
| 143 |
|
| 144 |
/* |
| 145 |
* dot3StatsSymbolErrors(18)/COUNTER/ASN_COUNTER/u_long(u_long)//l/A/w/e/r/d/h |
| 146 |
*/ |
| 147 |
u_long dot3StatsSymbolErrors; |
| 148 |
|
| 149 |
/* |
| 150 |
* dot3StatsDuplexStatus(19)/INTEGER/ASN_INTEGER/long(u_long)//l/A/w/E/r/d/h |
| 151 |
*/ |
| 152 |
u_long dot3StatsDuplexStatus; |
| 153 |
|
| 154 |
/* |
| 155 |
* dot3StatsRateControlAbility(20)/TruthValue/ASN_INTEGER/long(u_long)//l/A/w/E/r/d/h |
| 156 |
*/ |
| 157 |
u_long dot3StatsRateControlAbility; |
| 158 |
|
| 159 |
/* |
| 160 |
* dot3StatsRateControlStatus(21)/INTEGER/ASN_INTEGER/long(u_long)//l/A/w/E/r/d/h |
| 161 |
*/ |
| 162 |
u_long dot3StatsRateControlStatus; |
| 163 |
|
| 164 |
} dot3StatsTable_data; |
| 165 |
|
| 166 |
|
| 167 |
/* |
| 168 |
* TODO:120:r: |-> Review dot3StatsTable mib index. |
| 169 |
* This structure is used to represent the index for dot3StatsTable. |
| 170 |
*/ |
| 171 |
typedef struct dot3StatsTable_mib_index_s { |
| 172 |
|
| 173 |
/* |
| 174 |
* dot3StatsIndex(1)/InterfaceIndex/ASN_INTEGER/long(long)//l/A/w/e/R/d/H |
| 175 |
*/ |
| 176 |
long dot3StatsIndex; |
| 177 |
|
| 178 |
|
| 179 |
} dot3StatsTable_mib_index; |
| 180 |
|
| 181 |
/* |
| 182 |
* TODO:121:r: | |-> Review dot3StatsTable max index length. |
| 183 |
* If you KNOW that your indexes will never exceed a certain |
| 184 |
* length, update this macro to that length. |
| 185 |
*/ |
| 186 |
#define MAX_dot3StatsTable_IDX_LEN 255 |
| 187 |
|
| 188 |
|
| 189 |
/* |
| 190 |
********************************************************************* |
| 191 |
* TODO:130:o: |-> Review dot3StatsTable Row request (rowreq) context. |
| 192 |
* When your functions are called, you will be passed a |
| 193 |
* dot3StatsTable_rowreq_ctx pointer. |
| 194 |
*/ |
| 195 |
typedef struct dot3StatsTable_rowreq_ctx_s { |
| 196 |
|
| 197 |
/** this must be first for container compare to work */ |
| 198 |
netsnmp_index oid_idx; |
| 199 |
oid oid_tmp[MAX_dot3StatsTable_IDX_LEN]; |
| 200 |
|
| 201 |
dot3StatsTable_mib_index tbl_idx; |
| 202 |
|
| 203 |
dot3StatsTable_data data; |
| 204 |
unsigned int column_exists_flags; /* flags for existence */ |
| 205 |
|
| 206 |
/* |
| 207 |
* flags per row. Currently, the first (lower) 8 bits are reserved |
| 208 |
* for the user. See mfd.h for other flags. |
| 209 |
*/ |
| 210 |
u_int rowreq_flags; |
| 211 |
|
| 212 |
/* |
| 213 |
* TODO:131:o: | |-> Add useful data to dot3StatsTable rowreq context. |
| 214 |
*/ |
| 215 |
|
| 216 |
/* |
| 217 |
* storage for future expansion |
| 218 |
*/ |
| 219 |
netsnmp_data_list *dot3StatsTable_data_list; |
| 220 |
|
| 221 |
} dot3StatsTable_rowreq_ctx; |
| 222 |
|
| 223 |
typedef struct dot3StatsTable_ref_rowreq_ctx_s { |
| 224 |
dot3StatsTable_rowreq_ctx *rowreq_ctx; |
| 225 |
} dot3StatsTable_ref_rowreq_ctx; |
| 226 |
|
| 227 |
/* |
| 228 |
********************************************************************* |
| 229 |
* function prototypes |
| 230 |
*/ |
| 231 |
int dot3StatsTable_pre_request(dot3StatsTable_registration |
| 232 |
* user_context); |
| 233 |
int dot3StatsTable_post_request(dot3StatsTable_registration |
| 234 |
* user_context, int rc); |
| 235 |
|
| 236 |
int |
| 237 |
dot3StatsTable_rowreq_ctx_init(dot3StatsTable_rowreq_ctx * |
| 238 |
rowreq_ctx, void *user_init_ctx); |
| 239 |
void |
| 240 |
dot3StatsTable_rowreq_ctx_cleanup(dot3StatsTable_rowreq_ctx * |
| 241 |
rowreq_ctx); |
| 242 |
|
| 243 |
|
| 244 |
dot3StatsTable_rowreq_ctx |
| 245 |
*dot3StatsTable_row_find_by_mib_index(dot3StatsTable_mib_index * |
| 246 |
mib_idx); |
| 247 |
|
| 248 |
extern oid dot3StatsTable_oid[]; |
| 249 |
extern int dot3StatsTable_oid_size; |
| 250 |
|
| 251 |
|
| 252 |
#include "dot3StatsTable_interface.h" |
| 253 |
#include "dot3StatsTable_data_access.h" |
| 254 |
#include "dot3StatsTable_data_get.h" |
| 255 |
#include "dot3StatsTable_data_set.h" |
| 256 |
|
| 257 |
/* |
| 258 |
* DUMMY markers, ignore |
| 259 |
* |
| 260 |
* TODO:099:x: ************************************************************* |
| 261 |
* TODO:199:x: ************************************************************* |
| 262 |
* TODO:299:x: ************************************************************* |
| 263 |
* TODO:399:x: ************************************************************* |
| 264 |
* TODO:499:x: ************************************************************* |
| 265 |
*/ |
| 266 |
|
| 267 |
#ifdef __cplusplus |
| 268 |
} |
| 269 |
#endif |
| 270 |
#endif /* DOT3STATSTABLE_H */ |
| 271 |
/** @} */ |