#include <sys/confnet.h>
#include <pro/snmp.h>
#include <pro/snmp_api.h>
#include <stdlib.h>
#include <string.h>
#include "mib2if.h"
Go to the source code of this file.
Defines | |
#define | MIB_IF_ENTRIES 4 |
#define | PHY_NAME "Ethernet" |
#define | MAG_IF_NUMBER 0 |
#define | MAG_IF_INDEX 1 |
#define | MAG_IF_DESCR 2 |
#define | MAG_IF_TYPE 3 |
#define | MAG_IF_MTU 4 |
#define | MAG_IF_SPEED 5 |
#define | MAG_IF_PHYSADDRESS 6 |
#define | MAG_IF_ADMINSTATUS 7 |
#define | MAG_IF_OPERSTATUS 8 |
#define | MAG_IF_LASTCHANGE 9 |
#define | MAG_IF_INOCTETS 10 |
#define | MAG_IF_INUCASTPKTS 11 |
#define | MAG_IF_INNUCASTPKTS 12 |
#define | MAG_IF_INDISCARDS 13 |
#define | MAG_IF_INERRORS 14 |
#define | MAG_IF_INUNKNOWNPROTOS 15 |
#define | MAG_IF_OUTOCTETS 16 |
#define | MAG_IF_OUTUCASTPKTS 17 |
#define | MAG_IF_OUTNUCASTPKTS 18 |
#define | MAG_IF_OUTDISCARDS 19 |
#define | MAG_IF_OUTERRORS 20 |
#define | MAG_IF_OUTQLEN 21 |
#define | MAG_IF_SPECIFIC 22 |
Functions | |
int | MibRegisterIfVars (void) |
Register MIB II variables of the interfaces. |
#define PHY_NAME "Ethernet" |
Definition at line 56 of file mib2if.c.
Referenced by MibRegisterIfVars().
int MibRegisterIfVars | ( | void | ) |
Register MIB II variables of the interfaces.
Definition at line 130 of file mib2if.c.
References malloc(), PHY_NAME, SnmpMibRegister(), strcpy(), and strlen().
Referenced by main().