亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? bpf.h

?? 這是有關網絡入侵檢測技術系統的源代碼。使用visual c++編程
?? H
字號:
/*-
 * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
 *	The Regents of the University of California.  All rights reserved.
 *
 * This code is derived from the Stanford/CMU enet packet filter,
 * (net/enet.c) distributed as part of 4.3BSD, and code contributed
 * to Berkeley by Steven McCanne and Van Jacobson both of Lawrence 
 * Berkeley Laboratory.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. All advertising materials mentioning features or use of this software
 *    must display the following acknowledgement:
 *      This product includes software developed by the University of
 *      California, Berkeley and its contributors.
 * 4. Neither the name of the University nor the names of its contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 *
 *      @(#)bpf.h       7.1 (Berkeley) 5/7/91
 *
 * @(#) $Header: bpf.h,v 1.36 97/06/12 14:29:53 leres Exp $ (LBL)
 */

#ifndef BPF_MAJOR_VERSION

/* BSD style release date */
#define BPF_RELEASE 199606

#ifdef WIN32 
#include <gnuc.h>
#include <winsock.h>
#endif

typedef	int bpf_int32;
typedef	u_int bpf_u_int32;

/*
 * Alignment macros.  BPF_WORDALIGN rounds up to the next 
 * even multiple of BPF_ALIGNMENT. 
 */
#define BPF_ALIGNMENT sizeof(bpf_int32)
#define BPF_WORDALIGN(x) (((x)+(BPF_ALIGNMENT-1))&~(BPF_ALIGNMENT-1))

#define BPF_MAXINSNS 512
#define BPF_MAXBUFSIZE 0x8000
#define BPF_MINBUFSIZE 32

/*
 *  Structure for BIOCSETF.
 */
struct bpf_program {
	u_int bf_len;
	struct bpf_insn *bf_insns;
};
 
/*
 * Struct returned by BIOCGSTATS.
 */
struct bpf_stat {
	u_int bs_recv;		/* number of packets received */
	u_int bs_drop;		/* number of packets dropped */
};

/*
 * Struct return by BIOCVERSION.  This represents the version number of 
 * the filter language described by the instruction encodings below.
 * bpf understands a program iff kernel_major == filter_major &&
 * kernel_minor >= filter_minor, that is, if the value returned by the
 * running kernel has the same major number and a minor number equal
 * equal to or less than the filter being downloaded.  Otherwise, the
 * results are undefined, meaning an error may be returned or packets
 * may be accepted haphazardly.
 * It has nothing to do with the source code version.
 */
struct bpf_version {
	u_short bv_major;
	u_short bv_minor;
};
/* Current version number of filter architecture. */
#define BPF_MAJOR_VERSION 1
#define BPF_MINOR_VERSION 1

/*
 * BPF ioctls
 *
 * The first set is for compatibility with Sun's pcc style
 * header files.  If your using gcc, we assume that you
 * have run fixincludes so the latter set should work.
 */
#if (defined(sun) || defined(ibm032)) && !defined(__GNUC__)
#define	BIOCGBLEN	_IOR(B,102, u_int)
#define	BIOCSBLEN	_IOWR(B,102, u_int)
#define	BIOCSETF	_IOW(B,103, struct bpf_program)
#define	BIOCFLUSH	_IO(B,104)
#define BIOCPROMISC	_IO(B,105)
#define	BIOCGDLT	_IOR(B,106, u_int)
#define BIOCGETIF	_IOR(B,107, struct ifreq)
#define BIOCSETIF	_IOW(B,108, struct ifreq)
#define BIOCSRTIMEOUT	_IOW(B,109, struct timeval)
#define BIOCGRTIMEOUT	_IOR(B,110, struct timeval)
#define BIOCGSTATS	_IOR(B,111, struct bpf_stat)
#define BIOCIMMEDIATE	_IOW(B,112, u_int)
#define BIOCVERSION	_IOR(B,113, struct bpf_version)
#define BIOCSTCPF	_IOW(B,114, struct bpf_program)
#define BIOCSUDPF	_IOW(B,115, struct bpf_program)
#else
#define	BIOCGBLEN	_IOR('B',102, u_int)
#define	BIOCSBLEN	_IOWR('B',102, u_int)
#define	BIOCSETF	_IOW('B',103, struct bpf_program)
#define	BIOCFLUSH	_IO('B',104)
#define BIOCPROMISC	_IO('B',105)
#define	BIOCGDLT	_IOR('B',106, u_int)
#define BIOCGETIF	_IOR('B',107, struct ifreq)
#define BIOCSETIF	_IOW('B',108, struct ifreq)
#define BIOCSRTIMEOUT	_IOW('B',109, struct timeval)
#define BIOCGRTIMEOUT	_IOR('B',110, struct timeval)
#define BIOCGSTATS	_IOR('B',111, struct bpf_stat)
#define BIOCIMMEDIATE	_IOW('B',112, u_int)
#define BIOCVERSION	_IOR('B',113, struct bpf_version)
#define BIOCSTCPF	_IOW('B',114, struct bpf_program)
#define BIOCSUDPF	_IOW('B',115, struct bpf_program)
#endif

/*
 * Structure prepended to each packet.
 */
struct bpf_hdr {
	struct timeval	bh_tstamp;	/* time stamp */
	bpf_u_int32	bh_caplen;	/* length of captured portion */
	bpf_u_int32	bh_datalen;	/* original length of packet */
	u_short		bh_hdrlen;	/* length of bpf header (this struct
					   plus alignment padding) */
};
/*
 * Because the structure above is not a multiple of 4 bytes, some compilers
 * will insist on inserting padding; hence, sizeof(struct bpf_hdr) won't work.
 * Only the kernel needs to know about it; applications use bh_hdrlen.
 */
#ifdef KERNEL
#define SIZEOF_BPF_HDR 18
#endif

/*
 * Data-link level type codes.
 */
#define DLT_NULL	0	/* no link-layer encapsulation */
#define DLT_EN10MB	1	/* Ethernet (10Mb) */
#define DLT_EN3MB	2	/* Experimental Ethernet (3Mb) */
#define DLT_AX25	3	/* Amateur Radio AX.25 */
#define DLT_PRONET	4	/* Proteon ProNET Token Ring */
#define DLT_CHAOS	5	/* Chaos */
#define DLT_IEEE802	6	/* IEEE 802 Networks */
#define DLT_ARCNET	7	/* ARCNET */
#define DLT_SLIP	8	/* Serial Line IP */
#define DLT_PPP		9	/* Point-to-point Protocol */
#define DLT_FDDI	10	/* FDDI */
#define DLT_ATM_RFC1483	11	/* LLC/SNAP encapsulated atm */
#define DLT_RAW		12	/* raw IP */
#define DLT_SLIP_BSDOS	13	/* BSD/OS Serial Line IP */
#define DLT_PPP_BSDOS	14	/* BSD/OS Point-to-point Protocol */

/*
 * The instruction encondings.
 */
/* instruction classes */
#define BPF_CLASS(code) ((code) & 0x07)
#define		BPF_LD		0x00
#define		BPF_LDX		0x01
#define		BPF_ST		0x02
#define		BPF_STX		0x03
#define		BPF_ALU		0x04
#define		BPF_JMP		0x05
#define		BPF_RET		0x06
#define		BPF_MISC	0x07

/* ld/ldx fields */
#define BPF_SIZE(code)	((code) & 0x18)
#define		BPF_W		0x00
#define		BPF_H		0x08
#define		BPF_B		0x10
#define BPF_MODE(code)	((code) & 0xe0)
#define		BPF_IMM 	0x00
#define		BPF_ABS		0x20
#define		BPF_IND		0x40
#define		BPF_MEM		0x60
#define		BPF_LEN		0x80
#define		BPF_MSH		0xa0

/* alu/jmp fields */
#define BPF_OP(code)	((code) & 0xf0)
#define		BPF_ADD		0x00
#define		BPF_SUB		0x10
#define		BPF_MUL		0x20
#define		BPF_DIV		0x30
#define		BPF_OR		0x40
#define		BPF_AND		0x50
#define		BPF_LSH		0x60
#define		BPF_RSH		0x70
#define		BPF_NEG		0x80
#define		BPF_JA		0x00
#define		BPF_JEQ		0x10
#define		BPF_JGT		0x20
#define		BPF_JGE		0x30
#define		BPF_JSET	0x40
#define BPF_SRC(code)	((code) & 0x08)
#define		BPF_K		0x00
#define		BPF_X		0x08

/* ret - BPF_K and BPF_X also apply */
#define BPF_RVAL(code)	((code) & 0x18)
#define		BPF_A		0x10

/* misc */
#define BPF_MISCOP(code) ((code) & 0xf8)
#define		BPF_TAX		0x00
#define		BPF_TXA		0x80

/*
 * The instruction data structure.
 */
struct bpf_insn {
	u_short	code;
	u_char 	jt;
	u_char 	jf;
	bpf_int32 k;
};

/*
 * Macros for insn array initializers.
 */
#define BPF_STMT(code, k) { (u_short)(code), 0, 0, k }
#define BPF_JUMP(code, k, jt, jf) { (u_short)(code), jt, jf, k }

#ifdef KERNEL
extern u_int bpf_filter();
extern void bpfattach();
extern void bpf_tap();
extern void bpf_mtap();
#else
#if __STDC__
extern u_int bpf_filter(struct bpf_insn *, u_char *, u_int, u_int);
#endif
#endif

/*
 * Number of scratch memory words (for BPF_LD|BPF_MEM and BPF_ST).
 */
#define BPF_MEMWORDS 16

#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久综合99re88久久爱| 久久亚洲免费视频| 国产一区在线看| 亚洲欧美一区二区三区极速播放| 欧美绝品在线观看成人午夜影视| 国产成人午夜视频| 日本成人在线看| 亚洲精品自拍动漫在线| 久久久av毛片精品| 91精品国产综合久久精品性色| 成人黄色在线网站| 激情都市一区二区| 青青草一区二区三区| 一卡二卡欧美日韩| 国产精品国产三级国产三级人妇| 日韩午夜中文字幕| 欧美日本在线播放| 91成人免费在线| www.成人在线| 国产成a人亚洲精品| 精品一区二区三区日韩| 日本va欧美va欧美va精品| 亚洲综合一区二区| 亚洲欧美日韩中文播放| 中文字幕一区二区三区在线不卡| 精品国产凹凸成av人导航| 欧美一区二区三区视频免费播放| 欧美性生交片4| 色综合激情久久| 91亚洲国产成人精品一区二区三| 懂色av一区二区夜夜嗨| 国产电影一区在线| 国产精品456| 国产成人在线视频免费播放| 精品一二三四在线| 精品一区二区三区久久| 精品一区二区三区久久| 国产乱淫av一区二区三区 | 欧美精品一区二区三区四区| 欧美精品在线观看一区二区| 欧美日韩精品免费观看视频 | 欧美日韩国产小视频在线观看| 色综合久久88色综合天天6| 99精品视频一区| eeuss鲁片一区二区三区| 从欧美一区二区三区| 成人激情免费电影网址| 欧美成人高清电影在线| 欧美一区二区三区男人的天堂| 欧美一区三区二区| 精品国产一区二区三区四区四| 精品国产免费人成电影在线观看四季 | 亚洲二区在线视频| 亚洲国产精品欧美一二99| 亚洲h在线观看| 日韩黄色在线观看| 激情综合亚洲精品| 成人av在线资源网站| 色视频成人在线观看免| 欧美日本精品一区二区三区| 欧美一区二区播放| 国产日韩av一区| 最近日韩中文字幕| 性欧美大战久久久久久久久| 麻豆中文一区二区| 成人高清在线视频| 日本韩国精品在线| 日韩一区二区三区在线视频| 国产欧美精品一区二区色综合| 亚洲欧美日韩中文字幕一区二区三区| 亚洲国产精品久久不卡毛片| 精品影视av免费| av电影在线观看完整版一区二区| 91福利视频在线| 日韩免费视频一区二区| 国产精品久久久久aaaa樱花| 亚洲高清免费在线| 国产美女在线精品| 欧美亚洲综合色| 日韩免费观看高清完整版| 国产精品国产自产拍在线| 日韩va亚洲va欧美va久久| 国产成人8x视频一区二区| 欧美日韩精品欧美日韩精品| 国产区在线观看成人精品 | 久久97超碰色| www.久久久久久久久| 日韩一级片在线观看| 亚洲视频每日更新| 国产真实乱对白精彩久久| 欧美色图片你懂的| 欧美国产欧美综合| 蜜乳av一区二区| 91色婷婷久久久久合中文| 精品欧美一区二区久久| 亚洲自拍偷拍av| 高清成人免费视频| 91精品免费在线| 亚洲欧美一区二区不卡| 国产成人自拍在线| 91精品国产免费| 亚洲激情网站免费观看| 国产成人欧美日韩在线电影| 7777精品伊人久久久大香线蕉超级流畅 | 免费精品视频在线| 一本在线高清不卡dvd| 26uuu亚洲综合色欧美| 亚欧色一区w666天堂| 成人午夜视频网站| 日韩欧美久久久| 亚洲国产精品久久不卡毛片| 99精品欧美一区二区三区小说 | 国产精品丝袜一区| 伦理电影国产精品| 欧美日韩国产小视频| 亚洲精品高清视频在线观看| 成人一区在线看| 久久免费视频色| 免费精品视频在线| 91精品国产综合久久香蕉麻豆| 亚洲一区影音先锋| 一本一道久久a久久精品综合蜜臀| 国产欧美一区二区精品久导航| 麻豆成人免费电影| 日韩午夜中文字幕| 青青草原综合久久大伊人精品| 欧美日本一区二区三区| 亚洲线精品一区二区三区八戒| 91麻豆视频网站| 一区在线观看免费| 99视频国产精品| 久久久精品国产免费观看同学| 精品一区二区日韩| 精品国产乱码久久久久久久久| 日韩成人伦理电影在线观看| 欧美日韩国产一级| 日日欢夜夜爽一区| 91精品国产欧美日韩| 青椒成人免费视频| 欧美大片免费久久精品三p | 91九色02白丝porn| 亚洲一区二区三区激情| 欧美日韩精品二区第二页| 午夜精品一区二区三区三上悠亚| 欧美色窝79yyyycom| 五月天欧美精品| 91精品国产综合久久蜜臀| 麻豆中文一区二区| 国产午夜亚洲精品羞羞网站| 风流少妇一区二区| 亚洲精品中文字幕乱码三区| 欧美亚洲综合在线| 蜜桃视频一区二区三区 | 久久婷婷色综合| 国产成人免费网站| 国产精品剧情在线亚洲| 91久久精品一区二区二区| 丝袜亚洲另类欧美综合| 精品三级在线观看| 国产成人精品免费| 亚洲激情中文1区| 51久久夜色精品国产麻豆| 韩国精品在线观看| 国产一区二区不卡老阿姨| 久久亚洲精品小早川怜子| av午夜精品一区二区三区| 一区二区三区欧美| 日韩午夜在线观看视频| 成人免费精品视频| 亚洲第一av色| 欧美精品一区二区三区久久久| 成人网在线播放| 亚洲国产一区二区在线播放| 精品国产sm最大网站免费看| 91在线小视频| 日韩激情中文字幕| 国产精品久久久久影院老司| 在线视频中文字幕一区二区| 经典三级一区二区| 亚洲欧美另类久久久精品| 91精品国产色综合久久久蜜香臀| 高清不卡一二三区| 日韩电影在线免费看| 国产精品视频九色porn| 欧美日韩二区三区| 国产不卡在线一区| 五月天激情小说综合| 国产精品美女久久久久久久久| 欧美日韩精品免费观看视频| 成人一级片在线观看| 午夜伦欧美伦电影理论片| 国产欧美一区二区精品久导航| 欧美人牲a欧美精品| av在线不卡免费看| 久久av中文字幕片| 亚洲成a天堂v人片| 亚洲视频一区在线观看| 久久你懂得1024| 7878成人国产在线观看| 91久久线看在观草草青青|