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

📄 ether.h

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 H
字号:
#ifndef lint/*	@(#)ether.h	1.1	ULTRIX	6/28/86	*//**************************************************************** *								* *  Licensed to Digital Equipment Corporation, Maynard, MA	* *		Copyright 1985 Sun Microsystems, Inc.		* *			All rights reserved.			* *								* ****************************************************************/#endif lint#define NPROTOS 6#define NDPROTO 0#define ICMPPROTO 1#define UDPPROTO 2#define TCPPROTO 3#define ARPPROTO 4#define OTHERPROTO 5#define NBUCKETS 16#define MINPACKETLEN 60#define MAXPACKETLEN 1514#define BUCKETLNTH ((MAXPACKETLEN - MINPACKETLEN + NBUCKETS - 1)/NBUCKETS)#define HASHSIZE 256#define ETHERSTATPROC_GETDATA 1#define ETHERSTATPROC_ON 2#define ETHERSTATPROC_OFF 3#define ETHERSTATPROC_GETSRCDATA 4#define ETHERSTATPROC_GETDSTDATA 5#define ETHERSTATPROC_SELECTSRC 6#define ETHERSTATPROC_SELECTDST 7#define ETHERSTATPROC_SELECTPROTO 8#define ETHERSTATPROC_SELECTLNTH 9#define ETHERSTATPROG 100010#define ETHERSTATVERS 1int xdr_etherstat();int xdr_etherhbody();int xdr_etherhmem();int xdr_etherhtable();int xdr_etheraddrs();int xdr_addrmask();/* * all ether stat's except src, dst addresses */struct etherstat {	struct timeval	e_time;	unsigned long	e_bytes;	unsigned long	e_packets;	unsigned long	e_bcast;	unsigned long	e_size[NBUCKETS];	unsigned long	e_proto[NPROTOS];};/* * member of address hash table */struct etherhmem {	int h_addr;	unsigned h_cnt;	struct etherhmem *h_nxt;};/* * src, dst address info */struct etheraddrs {	struct timeval	e_time;	unsigned long	e_bytes;	unsigned long	e_packets;	unsigned long	e_bcast;	struct etherhmem **e_addrs;};/* * for size, a_addr is lowvalue, a_mask is high value */struct addrmask {	int a_addr;	int a_mask;		/* 0 means wild card */};extern char *protoname[];extern int if_fd;

⌨️ 快捷键说明

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