1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298
|
/* -- DO NOT EDIT --
* Generated by smidump version 0.4.3:
* smidump -f scli \
* --scli-include='ospfGeneralGroup|ospfAreaEntry|ospfIfEntry|ospfLsdbEntry' OSPF-MIB
*
* Derived from OSPF-MIB:
* The MIB module to describe the OSPF Version 2
* Protocol
*
* Revision 1995-01-20 12:25:
* [Revision added by libsmi due to a LAST-UPDATED clause.]
*
* $Id: ospf-mib.h 1761 2006-01-18 09:32:31Z schoenw $
*/
#ifndef _OSPF_MIB_H_
#define _OSPF_MIB_H_
#include "gsnmp.h"
G_BEGIN_DECLS
/*
* Tables to map enumerations to strings and vice versa.
*/
#define OSPF_MIB_OSPFVERSIONNUMBER_VERSION2 2
extern GNetSnmpEnum const ospf_mib_enums_ospfVersionNumber[];
#define OSPF_MIB_OSPFIMPORTASEXTERN_IMPORTEXTERNAL 1
#define OSPF_MIB_OSPFIMPORTASEXTERN_IMPORTNOEXTERNAL 2
#define OSPF_MIB_OSPFIMPORTASEXTERN_IMPORTNSSA 3
extern GNetSnmpEnum const ospf_mib_enums_ospfImportAsExtern[];
#define OSPF_MIB_OSPFAREASUMMARY_NOAREASUMMARY 1
#define OSPF_MIB_OSPFAREASUMMARY_SENDAREASUMMARY 2
extern GNetSnmpEnum const ospf_mib_enums_ospfAreaSummary[];
#define OSPF_MIB_OSPFLSDBTYPE_ROUTERLINK 1
#define OSPF_MIB_OSPFLSDBTYPE_NETWORKLINK 2
#define OSPF_MIB_OSPFLSDBTYPE_SUMMARYLINK 3
#define OSPF_MIB_OSPFLSDBTYPE_ASSUMMARYLINK 4
#define OSPF_MIB_OSPFLSDBTYPE_ASEXTERNALLINK 5
#define OSPF_MIB_OSPFLSDBTYPE_MULTICASTLINK 6
#define OSPF_MIB_OSPFLSDBTYPE_NSSAEXTERNALLINK 7
extern GNetSnmpEnum const ospf_mib_enums_ospfLsdbType[];
#define OSPF_MIB_OSPFIFTYPE_BROADCAST 1
#define OSPF_MIB_OSPFIFTYPE_NBMA 2
#define OSPF_MIB_OSPFIFTYPE_POINTTOPOINT 3
#define OSPF_MIB_OSPFIFTYPE_POINTTOMULTIPOINT 5
extern GNetSnmpEnum const ospf_mib_enums_ospfIfType[];
#define OSPF_MIB_OSPFIFSTATE_DOWN 1
#define OSPF_MIB_OSPFIFSTATE_LOOPBACK 2
#define OSPF_MIB_OSPFIFSTATE_WAITING 3
#define OSPF_MIB_OSPFIFSTATE_POINTTOPOINT 4
#define OSPF_MIB_OSPFIFSTATE_DESIGNATEDROUTER 5
#define OSPF_MIB_OSPFIFSTATE_BACKUPDESIGNATEDROUTER 6
#define OSPF_MIB_OSPFIFSTATE_OTHERDESIGNATEDROUTER 7
extern GNetSnmpEnum const ospf_mib_enums_ospfIfState[];
#define OSPF_MIB_OSPFIFMULTICASTFORWARDING_BLOCKED 1
#define OSPF_MIB_OSPFIFMULTICASTFORWARDING_MULTICAST 2
#define OSPF_MIB_OSPFIFMULTICASTFORWARDING_UNICAST 3
extern GNetSnmpEnum const ospf_mib_enums_ospfIfMulticastForwarding[];
#define OSPF_MIB_STATUS_ENABLED 1
#define OSPF_MIB_STATUS_DISABLED 2
extern GNetSnmpEnum const ospf_mib_enums_Status[];
/*
* C type definitions for OSPF-MIB::ospfGeneralGroup.
*/
#define OSPF_MIB_OSPFROUTERID (1 << 0)
#define OSPF_MIB_OSPFADMINSTAT (1 << 1)
#define OSPF_MIB_OSPFVERSIONNUMBER (1 << 2)
#define OSPF_MIB_OSPFAREABDRRTRSTATUS (1 << 3)
#define OSPF_MIB_OSPFASBDRRTRSTATUS (1 << 4)
#define OSPF_MIB_OSPFEXTERNLSACOUNT (1 << 5)
#define OSPF_MIB_OSPFEXTERNLSACKSUMSUM (1 << 6)
#define OSPF_MIB_OSPFTOSSUPPORT (1 << 7)
#define OSPF_MIB_OSPFORIGINATENEWLSAS (1 << 8)
#define OSPF_MIB_OSPFRXNEWLSAS (1 << 9)
#define OSPF_MIB_OSPFEXTLSDBLIMIT (1 << 10)
#define OSPF_MIB_OSPFMULTICASTEXTENSIONS (1 << 11)
#define OSPF_MIB_OSPFEXITOVERFLOWINTERVAL (1 << 12)
#define OSPF_MIB_OSPFDEMANDEXTENSIONS (1 << 13)
typedef struct {
guchar *ospfRouterId; /* rw OSPF-MIB::RouterID */
#define OSPF_MIB_OSPFROUTERIDLENGTH 4
gint32 *ospfAdminStat; /* rw OSPF-MIB::Status */
gint32 *ospfVersionNumber; /* ro */
gint32 *ospfAreaBdrRtrStatus; /* ro SNMPv2-TC::TruthValue */
gint32 *ospfASBdrRtrStatus; /* rw SNMPv2-TC::TruthValue */
guint32 *ospfExternLsaCount; /* ro SNMPv2-SMI::Gauge32 */
gint32 *ospfExternLsaCksumSum; /* ro Integer32 */
gint32 *ospfTOSSupport; /* rw SNMPv2-TC::TruthValue */
guint32 *ospfOriginateNewLsas; /* ro SNMPv2-SMI::Counter32 */
guint32 *ospfRxNewLsas; /* ro SNMPv2-SMI::Counter32 */
gint32 *ospfExtLsdbLimit; /* rw */
gint32 *ospfMulticastExtensions; /* rw Integer32 */
gint32 *ospfExitOverflowInterval; /* rw OSPF-MIB::PositiveInteger */
gint32 *ospfDemandExtensions; /* rw SNMPv2-TC::TruthValue */
} ospf_mib_ospfGeneralGroup_t;
extern ospf_mib_ospfGeneralGroup_t *
ospf_mib_new_ospfGeneralGroup(void);
extern void
ospf_mib_get_ospfGeneralGroup(GNetSnmp *s, ospf_mib_ospfGeneralGroup_t **ospfGeneralGroup, gint64 mask);
extern void
ospf_mib_set_ospfGeneralGroup(GNetSnmp *s, ospf_mib_ospfGeneralGroup_t *ospfGeneralGroup, gint64 mask);
extern void
ospf_mib_free_ospfGeneralGroup(ospf_mib_ospfGeneralGroup_t *ospfGeneralGroup);
/*
* C type definitions for OSPF-MIB::ospfAreaEntry.
*/
#define OSPF_MIB_OSPFAREAID (1 << 0)
#define OSPF_MIB_OSPFAUTHTYPE (1 << 1)
#define OSPF_MIB_OSPFIMPORTASEXTERN (1 << 2)
#define OSPF_MIB_OSPFSPFRUNS (1 << 3)
#define OSPF_MIB_OSPFAREABDRRTRCOUNT (1 << 4)
#define OSPF_MIB_OSPFASBDRRTRCOUNT (1 << 5)
#define OSPF_MIB_OSPFAREALSACOUNT (1 << 6)
#define OSPF_MIB_OSPFAREALSACKSUMSUM (1 << 7)
#define OSPF_MIB_OSPFAREASUMMARY (1 << 8)
#define OSPF_MIB_OSPFAREASTATUS (1 << 9)
typedef struct {
guchar ospfAreaId[4]; /* ro OSPF-MIB::AreaID */
#define OSPF_MIB_OSPFAREAIDLENGTH 4
gint32 *ospfAuthType; /* rw Integer32 */
gint32 *ospfImportAsExtern; /* rw */
guint32 *ospfSpfRuns; /* ro SNMPv2-SMI::Counter32 */
guint32 *ospfAreaBdrRtrCount; /* ro SNMPv2-SMI::Gauge32 */
guint32 *ospfAsBdrRtrCount; /* ro SNMPv2-SMI::Gauge32 */
guint32 *ospfAreaLsaCount; /* ro SNMPv2-SMI::Gauge32 */
gint32 *ospfAreaLsaCksumSum; /* ro Integer32 */
gint32 *ospfAreaSummary; /* rw */
gint32 *ospfAreaStatus; /* rw SNMPv2-TC::RowStatus */
} ospf_mib_ospfAreaEntry_t;
extern void
ospf_mib_get_ospfAreaTable(GNetSnmp *s, ospf_mib_ospfAreaEntry_t ***ospfAreaEntry, gint64 mask);
extern void
ospf_mib_free_ospfAreaTable(ospf_mib_ospfAreaEntry_t **ospfAreaEntry);
extern ospf_mib_ospfAreaEntry_t *
ospf_mib_new_ospfAreaEntry(void);
extern void
ospf_mib_get_ospfAreaEntry(GNetSnmp *s, ospf_mib_ospfAreaEntry_t **ospfAreaEntry, guchar *ospfAreaId, gint64 mask);
extern void
ospf_mib_set_ospfAreaEntry(GNetSnmp *s, ospf_mib_ospfAreaEntry_t *ospfAreaEntry, gint64 mask);
extern void
ospf_mib_free_ospfAreaEntry(ospf_mib_ospfAreaEntry_t *ospfAreaEntry);
/*
* C type definitions for OSPF-MIB::ospfLsdbEntry.
*/
#define OSPF_MIB_OSPFLSDBAREAID (1 << 0)
#define OSPF_MIB_OSPFLSDBTYPE (1 << 1)
#define OSPF_MIB_OSPFLSDBLSID (1 << 2)
#define OSPF_MIB_OSPFLSDBROUTERID (1 << 3)
#define OSPF_MIB_OSPFLSDBSEQUENCE (1 << 4)
#define OSPF_MIB_OSPFLSDBAGE (1 << 5)
#define OSPF_MIB_OSPFLSDBCHECKSUM (1 << 6)
#define OSPF_MIB_OSPFLSDBADVERTISEMENT (1 << 7)
typedef struct {
guchar ospfLsdbAreaId[4]; /* ro OSPF-MIB::AreaID */
#define OSPF_MIB_OSPFLSDBAREAIDLENGTH 4
gint32 ospfLsdbType; /* ro */
guchar ospfLsdbLsid[4]; /* ro SNMPv2-SMI::IpAddress */
#define OSPF_MIB_OSPFLSDBLSIDLENGTH 4
guchar ospfLsdbRouterId[4]; /* ro OSPF-MIB::RouterID */
#define OSPF_MIB_OSPFLSDBROUTERIDLENGTH 4
gint32 *ospfLsdbSequence; /* ro Integer32 */
gint32 *ospfLsdbAge; /* ro Integer32 */
gint32 *ospfLsdbChecksum; /* ro Integer32 */
guchar *ospfLsdbAdvertisement; /* ro */
#define OSPF_MIB_OSPFLSDBADVERTISEMENTMINLENGTH 1
#define OSPF_MIB_OSPFLSDBADVERTISEMENTMAXLENGTH 65535
guint16 _ospfLsdbAdvertisementLength;
} ospf_mib_ospfLsdbEntry_t;
extern void
ospf_mib_get_ospfLsdbTable(GNetSnmp *s, ospf_mib_ospfLsdbEntry_t ***ospfLsdbEntry, gint64 mask);
extern void
ospf_mib_free_ospfLsdbTable(ospf_mib_ospfLsdbEntry_t **ospfLsdbEntry);
extern ospf_mib_ospfLsdbEntry_t *
ospf_mib_new_ospfLsdbEntry(void);
extern void
ospf_mib_get_ospfLsdbEntry(GNetSnmp *s, ospf_mib_ospfLsdbEntry_t **ospfLsdbEntry, guchar *ospfLsdbAreaId, gint32 ospfLsdbType, guchar *ospfLsdbLsid, guchar *ospfLsdbRouterId, gint64 mask);
extern void
ospf_mib_free_ospfLsdbEntry(ospf_mib_ospfLsdbEntry_t *ospfLsdbEntry);
/*
* C type definitions for OSPF-MIB::ospfIfEntry.
*/
#define OSPF_MIB_OSPFIFIPADDRESS (1 << 0)
#define OSPF_MIB_OSPFADDRESSLESSIF (1 << 1)
#define OSPF_MIB_OSPFIFAREAID (1 << 2)
#define OSPF_MIB_OSPFIFTYPE (1 << 3)
#define OSPF_MIB_OSPFIFADMINSTAT (1 << 4)
#define OSPF_MIB_OSPFIFRTRPRIORITY (1 << 5)
#define OSPF_MIB_OSPFIFTRANSITDELAY (1 << 6)
#define OSPF_MIB_OSPFIFRETRANSINTERVAL (1 << 7)
#define OSPF_MIB_OSPFIFHELLOINTERVAL (1 << 8)
#define OSPF_MIB_OSPFIFRTRDEADINTERVAL (1 << 9)
#define OSPF_MIB_OSPFIFPOLLINTERVAL (1 << 10)
#define OSPF_MIB_OSPFIFSTATE (1 << 11)
#define OSPF_MIB_OSPFIFDESIGNATEDROUTER (1 << 12)
#define OSPF_MIB_OSPFIFBACKUPDESIGNATEDROUTER (1 << 13)
#define OSPF_MIB_OSPFIFEVENTS (1 << 14)
#define OSPF_MIB_OSPFIFAUTHKEY (1 << 15)
#define OSPF_MIB_OSPFIFSTATUS (1 << 16)
#define OSPF_MIB_OSPFIFMULTICASTFORWARDING (1 << 17)
#define OSPF_MIB_OSPFIFDEMAND (1 << 18)
#define OSPF_MIB_OSPFIFAUTHTYPE (1 << 19)
typedef struct {
guchar ospfIfIpAddress[4]; /* ro SNMPv2-SMI::IpAddress */
#define OSPF_MIB_OSPFIFIPADDRESSLENGTH 4
gint32 ospfAddressLessIf; /* ro Integer32 */
guchar *ospfIfAreaId; /* rw OSPF-MIB::AreaID */
#define OSPF_MIB_OSPFIFAREAIDLENGTH 4
gint32 *ospfIfType; /* rw */
gint32 *ospfIfAdminStat; /* rw OSPF-MIB::Status */
gint32 *ospfIfRtrPriority; /* rw OSPF-MIB::DesignatedRouterPriority */
gint32 *ospfIfTransitDelay; /* rw OSPF-MIB::UpToMaxAge */
gint32 *ospfIfRetransInterval; /* rw OSPF-MIB::UpToMaxAge */
gint32 *ospfIfHelloInterval; /* rw OSPF-MIB::HelloRange */
gint32 *ospfIfRtrDeadInterval; /* rw OSPF-MIB::PositiveInteger */
gint32 *ospfIfPollInterval; /* rw OSPF-MIB::PositiveInteger */
gint32 *ospfIfState; /* ro */
guchar *ospfIfDesignatedRouter; /* ro SNMPv2-SMI::IpAddress */
#define OSPF_MIB_OSPFIFDESIGNATEDROUTERLENGTH 4
guchar *ospfIfBackupDesignatedRouter; /* ro SNMPv2-SMI::IpAddress */
#define OSPF_MIB_OSPFIFBACKUPDESIGNATEDROUTERLENGTH 4
guint32 *ospfIfEvents; /* ro SNMPv2-SMI::Counter32 */
guchar *ospfIfAuthKey; /* rw */
#define OSPF_MIB_OSPFIFAUTHKEYMINLENGTH 0
#define OSPF_MIB_OSPFIFAUTHKEYMAXLENGTH 256
guint16 _ospfIfAuthKeyLength;
gint32 *ospfIfStatus; /* rw SNMPv2-TC::RowStatus */
gint32 *ospfIfMulticastForwarding; /* rw */
gint32 *ospfIfDemand; /* rw SNMPv2-TC::TruthValue */
gint32 *ospfIfAuthType; /* rw */
} ospf_mib_ospfIfEntry_t;
extern void
ospf_mib_get_ospfIfTable(GNetSnmp *s, ospf_mib_ospfIfEntry_t ***ospfIfEntry, gint64 mask);
extern void
ospf_mib_free_ospfIfTable(ospf_mib_ospfIfEntry_t **ospfIfEntry);
extern ospf_mib_ospfIfEntry_t *
ospf_mib_new_ospfIfEntry(void);
extern void
ospf_mib_get_ospfIfEntry(GNetSnmp *s, ospf_mib_ospfIfEntry_t **ospfIfEntry, guchar *ospfIfIpAddress, gint32 ospfAddressLessIf, gint64 mask);
extern void
ospf_mib_set_ospfIfEntry(GNetSnmp *s, ospf_mib_ospfIfEntry_t *ospfIfEntry, gint64 mask);
extern void
ospf_mib_free_ospfIfEntry(ospf_mib_ospfIfEntry_t *ospfIfEntry);
G_END_DECLS
#endif /* _OSPF_MIB_H_ */
|