pf.h
来自「嵌入式RMON,RMON为Remote monitor的缩写,基于SNMP为网络」· C头文件 代码 · 共 68 行
H
68 行
/* Beholder RMON ethernet network monitor,Copyright (C) 1993 DNPAP group *//* See file COPYING 'GNU General Public Licence' for copyright details */#ifndef _PF_H_#define _PF_H_ #include <sys/types.h>#include <sys/socket.h>#include <net/if.h>#include <nw.h>#include <mac.h> #define PF_MTU 1500typedef struct ifnet IFNET;typedef struct _PF_DESCR PF_DESCR;struct _PF_DESCR{ PF_DESCR *next; NW_DG *nw; MAC_IFACE *mac; ULONG offset; /* offset of interface data into kernel memory */ ULONG LostPkts; ULONG Octets; ULONG Pkts; ULONG BroadcastPkts; ULONG MulticastPkts; ULONG CRCAlignErrors; ULONG UndersizePkts; ULONG OversizePkts; ULONG Fragments; ULONG Jabbers; ULONG BufferedPkts; ULONG StackedPkts; ULONG DiscardedPkts; ULONG TruncatedPkts; ULONG OutPkts; ULONG OutOctets; ULONG OutDiscards; ULONG OutBroadcastPkts; ULONG OutMulticastPkts; /* extra interface parameters from pf */ ULONG IfOverflows; /* extra interface parameters from kernel memory */ ULONG OutQLen; ULONG InErrors; ULONG OutErrors; ULONG Collisions;}; BOOLEAN PfInit(void);void PfExit(void);#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?