blob: f782459e0aab25ce563c8de37770117b20c0b898 [file] [log] [blame]
/*
* ipstats data access header
*
* $Id$
*/
#ifndef NETSNMP_ACCESS_IPSTATS_H
#define NETSNMP_ACCESS_IPSTATS_H
# ifdef __cplusplus
extern "C" {
#endif
#define IPSYSTEMSTATSTABLE_HCINRECEIVES 1
#define IPSYSTEMSTATSTABLE_HCINOCTETS 2
#define IPSYSTEMSTATSTABLE_INHDRERRORS 3
#define IPSYSTEMSTATSTABLE_HCINNOROUTES 4
#define IPSYSTEMSTATSTABLE_INADDRERRORS 5
#define IPSYSTEMSTATSTABLE_INUNKNOWNPROTOS 6
#define IPSYSTEMSTATSTABLE_INTRUNCATEDPKTS 7
#define IPSYSTEMSTATSTABLE_HCINFORWDATAGRAMS 8
#define IPSYSTEMSTATSTABLE_REASMREQDS 9
#define IPSYSTEMSTATSTABLE_REASMOKS 10
#define IPSYSTEMSTATSTABLE_REASMFAILS 11
#define IPSYSTEMSTATSTABLE_INDISCARDS 12
#define IPSYSTEMSTATSTABLE_HCINDELIVERS 13
#define IPSYSTEMSTATSTABLE_HCOUTREQUESTS 14
#define IPSYSTEMSTATSTABLE_HCOUTNOROUTES 15
#define IPSYSTEMSTATSTABLE_HCOUTFORWDATAGRAMS 16
#define IPSYSTEMSTATSTABLE_HCOUTDISCARDS 17
#define IPSYSTEMSTATSTABLE_HCOUTFRAGREQDS 18
#define IPSYSTEMSTATSTABLE_HCOUTFRAGOKS 19
#define IPSYSTEMSTATSTABLE_HCOUTFRAGFAILS 20
#define IPSYSTEMSTATSTABLE_HCOUTFRAGCREATES 21
#define IPSYSTEMSTATSTABLE_HCOUTTRANSMITS 22
#define IPSYSTEMSTATSTABLE_HCOUTOCTETS 23
#define IPSYSTEMSTATSTABLE_HCINMCASTPKTS 24
#define IPSYSTEMSTATSTABLE_HCINMCASTOCTETS 25
#define IPSYSTEMSTATSTABLE_HCOUTMCASTPKTS 26
#define IPSYSTEMSTATSTABLE_HCOUTMCASTOCTETS 27
#define IPSYSTEMSTATSTABLE_HCINBCASTPKTS 28
#define IPSYSTEMSTATSTABLE_HCOUTBCASTPKTS 29
#define IPSYSTEMSTATSTABLE_DISCONTINUITYTIME 30
#define IPSYSTEMSTATSTABLE_REFRESHRATE 31
#define IPSYSTEMSTATSTABLE_LAST IPSYSTEMSTATSTABLE_REFRESHRATE
/**---------------------------------------------------------------------*/
/*
* structure definitions
*/
/*
* netsnmp_ipstats_entry
*/
typedef struct netsnmp_ipstats_s {
/* Columns of ipStatsTable. Some of them are HC for computation of the
* other columns, when underlying OS does not provide them.
* Always fill at least 32 bits, the table is periodically polled -> 32 bit
* overflow shall be detected and 64 bit value should be computed automatically. */
U64 HCInReceives;
U64 HCInOctets;
u_long InHdrErrors;
U64 HCInNoRoutes;
u_long InAddrErrors;
u_long InUnknownProtos;
u_long InTruncatedPkts;
/* optional, can be computed from HCInNoRoutes and HCOutForwDatagrams */
U64 HCInForwDatagrams;
u_long ReasmReqds;
u_long ReasmOKs;
u_long ReasmFails;
u_long InDiscards;
U64 HCInDelivers;
U64 HCOutRequests;
U64 HCOutNoRoutes;
U64 HCOutForwDatagrams;
U64 HCOutDiscards;
/* optional, can be computed from HCOutFragOKs + HCOutFragFails*/
U64 HCOutFragReqds;
U64 HCOutFragOKs;
U64 HCOutFragFails;
U64 HCOutFragCreates;
/* optional, can be computed from
* HCOutRequests +HCOutForwDatagrams + HCOutFragCreates
* - HCOutFragReqds - HCOutNoRoutes - HCOutDiscards */
U64 HCOutTransmits;
U64 HCOutOctets;
U64 HCInMcastPkts;
U64 HCInMcastOctets;
U64 HCOutMcastPkts;
U64 HCOutMcastOctets;
U64 HCInBcastPkts;
U64 HCOutBcastPkts;
/* Array of available columns.*/
int columnAvail[IPSYSTEMSTATSTABLE_LAST+1];
} netsnmp_ipstats;
# ifdef __cplusplus
}
#endif
#endif /* NETSNMP_ACCESS_IPSTATS_H */