ipstats.h
上传用户:wxp200602
上传日期:2007-10-30
资源大小:4028k
文件大小:1k
源码类别:

SNMP编程

开发平台:

Unix_Linux

  1. /*
  2.  * ipstats data access header
  3.  *
  4.  * $Id: ipstats.h,v 1.2 2004/09/14 02:29:16 rstory Exp $
  5.  */
  6. #ifndef NETSNMP_ACCESS_IPSTATS_H
  7. #define NETSNMP_ACCESS_IPSTATS_H
  8. # ifdef __cplusplus
  9. extern          "C" {
  10. #endif
  11. /**---------------------------------------------------------------------*/
  12. /*
  13.  * structure definitions
  14.  */
  15. /*
  16.  * netsnmp_ipstats_entry
  17.  */
  18. typedef struct netsnmp_ipstats_s {
  19.    U64             HCInReceives;
  20.    U64             HCInOctets;
  21.    u_long          InHdrErrors;
  22.    u_long          InNoRoutes;
  23.    u_long          InAddrErrors;
  24.    u_long          InUnknownProtos;
  25.    u_long          InTruncatedPkts;
  26.    U64             HCInForwDatagrams;
  27.    u_long          ReasmReqds;
  28.    u_long          ReasmOKs;
  29.    u_long          ReasmFails;
  30.    u_long          InDiscards;
  31.    U64             HCInDelivers;
  32.    U64             HCOutRequests;
  33.    u_long          OutNoRoutes;
  34.    U64             HCOutForwDatagrams;
  35.    u_long          OutDiscards;
  36.    u_long          OutFragReqds;
  37.    u_long          OutFragOKs;
  38.    u_long          OutFragFails;
  39.    u_long          OutFragCreates;
  40.    U64             HCOutTransmits;
  41.    U64             HCOutOctets;
  42.    U64             HCInMcastPkts;
  43.    U64             HCInMcastOctets;
  44.    U64             HCOutMcastPkts;
  45.    U64             HCOutMcastOctets;
  46.    U64             HCInBcastPkts;
  47.    U64             HCOutBcastPkts;
  48. } netsnmp_ipstats;
  49. # ifdef __cplusplus
  50. }
  51. #endif
  52. #endif /* NETSNMP_ACCESS_IPSTATS_H */