⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hist_c.h

📁 嵌入式RMON,RMON为Remote monitor的缩写,基于SNMP为网络提供主动监控及错误告警,智能交换路由必备协议
💻 H
字号:
/* Beholder RMON ethernet network monitor,Copyright (C) 1993 DNPAP group *//* See file COPYING 'GNU General Public Licence' for copyright details   */#ifndef _HISTORY_C_H#define _HISTORY_C_H#include <dnpap.h>#include <boolset.h>#include <mac.h>#include <snmp.h>#include <timer.h>#define HISTORY_BOOLEAN_DATASOURCE		1#define HISTORY_BOOLEAN_OWNER			2#define MINALLOCENTRIES     4typedef struct _ETHER_STATS{    ULONG           DropEvents;    ULONG           Octets;    ULONG           Pkts;    ULONG           BroadcastPkts;    ULONG           MulticastPkts;    ULONG           CRCAlignErrors;    ULONG           UndersizePkts;    ULONG           OversizePkts;    ULONG           Fragments;    ULONG           Jabbers;    ULONG           Collisions;} ETHER_STATS;typedef struct _ETHER_HISTORY{    ULONG           IntervalStart;    ULONG           DropEvents;    ULONG           Octets;    ULONG           Pkts;    ULONG           BroadcastPkts;    ULONG           MulticastPkts;    ULONG           CRCAlignErrors;    ULONG           UndersizePkts;    ULONG           OversizePkts;    ULONG           Fragments;    ULONG           Jabbers;    ULONG           Collisions;    ULONG           Utilization;} ETHER_HISTORY;typedef struct _HISTORY_CONTROL{    LONG            Index;    LONG            Source[SNMP_SIZE_BUFINT];    WORD            SourceLen;    LONG            BucketsRequested;    LONG            BucketsGranted;    ULONG           Interval;    BYTE            Owner[SNMP_SIZE_BUFCHR];    WORD            OwnerLen;    LONG            Status;    LONG            BucketsAllocated;    LONG            BucketsPos;    BOOLEAN         BucketsWrapped;    LONG            BucketsDeleted;    TIMER_DESCR     *Timer;    BOOLEAN         FirstCall;    MAC_IFACE       *Iface;    ULONG           PrvTime;    ETHER_STATS     EtherStats;    ETHER_HISTORY   *EtherBuckets;    BooleanSet      ObjectSet;} HISTORY_CONTROL;BOOLEAN HistoryConfigInit(VOID);BOOLEAN HistoryCInit(HISTORY_CONTROL *historycontrol);BOOLEAN HistoryCStart(HISTORY_CONTROL *historycontrol);BOOLEAN HistoryCStop(HISTORY_CONTROL *historycontrol);ETHER_HISTORY *EtherHistorySearch(HISTORY_CONTROL *historycontrol, SNMP_OBJECT *obj, WORD idlen);ETHER_HISTORY *NewEtherHistory(LONG nrentries);ETHER_HISTORY *ReNewEtherHistory(ETHER_HISTORY* ptr, LONG nrentries, LONG oldnrentries, LONG maxnrentries);VOID           DelEtherHistory(ETHER_HISTORY* ptr);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -