📄 pf.h
字号:
/* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -