📄 nit.h
字号:
/* Beholder RMON ethernet network monitor,Copyright (C) 1993 DNPAP group *//* See file COPYING 'GNU General Public Licence' for copyright details */#ifndef _NIT_H_#define _NIT_H_ #include <nw.h>#include <mac.h>#include <sys/types.h>#include <sys/socket.h>#include <net/if.h> #define NIT_MTU 1500typedef struct ifnet IFNET;typedef struct _NIT_DESCR NIT_DESCR;struct _NIT_DESCR{ NIT_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 kernel memory */ ULONG OutQLen; ULONG InErrors; ULONG OutErrors; ULONG Collisions;}; BOOLEAN NitInit(void);void NitExit(void);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -