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

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

?? pcap.h

?? 一個非常漂亮的802.1x客戶端源代碼
?? H
字號:
/* -*- Mode: c; tab-width: 8; indent-tabs-mode: 1; c-basic-offset: 8; -*- */
/*
 * Copyright (c) 1993, 1994, 1995, 1996, 1997
 *	The Regents of the University of California.  All rights reserved.
 *
 * 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 Computer Systems
 *	Engineering Group at Lawrence Berkeley Laboratory.
 * 4. Neither the name of the University nor of the Laboratory 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.
 *
 * @(#) $Header: /usr/cvsroot/wpdpack/Include/PCAP.H,v 1.9 2003/02/04 14:17:40 varenni Exp $ (LBL)
 */

#ifndef lib_pcap_h
#define lib_pcap_h

#ifdef WIN32
#include "pcap-stdinc.h"
#else /* WIN32 */
#include <sys/types.h>
#include <sys/time.h>
#endif /* WIN32 */

#include "bpf.h"

#include <stdio.h>

#ifdef REMOTE
	// We have to define the SOCKET here, although it has been defined in sockutils.h
	// This is to avoid the distribution of the 'sockutils.h' file around
	// (for example in the WinPcap developer's pack)
	#ifndef SOCKET
		#ifdef WIN32
			#define SOCKET unsigned int
		#else
			#define SOCKET int
		#endif
	#endif
#endif

#ifdef __cplusplus
extern "C" {
#endif

#define PCAP_VERSION_MAJOR 2
#define PCAP_VERSION_MINOR 4

#define PCAP_ERRBUF_SIZE 256

/*
 * Compatibility for systems that have a bpf.h that
 * predates the bpf typedefs for 64-bit support.
 */
#if BPF_RELEASE - 0 < 199406
typedef	int bpf_int32;
typedef	u_int bpf_u_int32;
#endif

typedef struct pcap pcap_t;
typedef struct pcap_dumper pcap_dumper_t;
typedef struct pcap_if pcap_if_t;
typedef struct pcap_addr pcap_addr_t;

/*
 * The first record in the file contains saved values for some
 * of the flags used in the printout phases of tcpdump.
 * Many fields here are 32 bit ints so compilers won't insert unwanted
 * padding; these files need to be interchangeable across architectures.
 *
 * Do not change the layout of this structure, in any way (this includes
 * changes that only affect the length of fields in this structure).
 *
 * Also, do not change the interpretation of any of the members of this
 * structure, in any way (this includes using values other than
 * LINKTYPE_ values, as defined in "savefile.c", in the "linktype"
 * field).
 *
 * Instead:
 *
 *	introduce a new structure for the new format, if the layout
 *	of the structure changed;
 *
 *	send mail to "tcpdump-workers@tcpdump.org", requesting a new
 *	magic number for your new capture file format, and, when
 *	you get the new magic number, put it in "savefile.c";
 *
 *	use that magic number for save files with the changed file
 *	header;
 *
 *	make the code in "savefile.c" capable of reading files with
 *	the old file header as well as files with the new file header
 *	(using the magic number to determine the header format).
 *
 * Then supply the changes to "patches@tcpdump.org", so that future
 * versions of libpcap and programs that use it (such as tcpdump) will
 * be able to read your new capture file format.
 */
struct pcap_file_header {
	bpf_u_int32 magic;
	u_short version_major;
	u_short version_minor;
	bpf_int32 thiszone;	/* gmt to local correction */
	bpf_u_int32 sigfigs;	/* accuracy of timestamps */
	bpf_u_int32 snaplen;	/* max length saved portion of each pkt */
	bpf_u_int32 linktype;	/* data link type (LINKTYPE_*) */
};

/*
 * Each packet in the dump file is prepended with this generic header.
 * This gets around the problem of different headers for different
 * packet interfaces.
 */
struct pcap_pkthdr {
	struct timeval ts;	/* time stamp */
	bpf_u_int32 caplen;	/* length of portion present */
	bpf_u_int32 len;	/* length this packet (off wire) */
};

/*
 * As returned by the pcap_stats()
 */
struct pcap_stat {
	u_int ps_recv;		/* number of packets received */
	u_int ps_drop;		/* number of packets dropped */
	u_int ps_ifdrop;	/* drops by interface XXX not yet supported */
#ifdef REMOTE
#ifdef WIN32
//	u_int bs_capt;		/* number of packets that reach the application */
#endif /* WIN32 */
	u_int ps_capt;		/* number of packets that reach the application; please get rid off the Win32 ifdef */
	u_int ps_sent;		/* number of packets sent by the server on the network */
	u_int ps_netdrop;	/* number of packets lost on the network */
#endif
};

/*
 * Item in a list of interfaces.
 */
struct pcap_if {
	struct pcap_if *next;
	char *name;		/* name to hand to "pcap_open_live()" */
	char *description;	/* textual description of interface, or NULL */
	struct pcap_addr *addresses;
	bpf_u_int32 flags;	/* PCAP_IF_ interface flags */
};

#define PCAP_IF_LOOPBACK	0x00000001	/* interface is loopback */

/*
 * Representation of an interface address.
 */
struct pcap_addr {
	struct pcap_addr *next;
	struct sockaddr *addr;		/* address */
	struct sockaddr *netmask;	/* netmask for that address */
	struct sockaddr *broadaddr;	/* broadcast address for that address */
	struct sockaddr *dstaddr;	/* P2P destination address for that address */
};

typedef void (*pcap_handler)(u_char *, const struct pcap_pkthdr *,
			     const u_char *);

char	*pcap_lookupdev(char *);
int	pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *);
pcap_t	*pcap_open_live(const char *, int, int, int, char *);
pcap_t	*pcap_open_dead(int, int);
pcap_t	*pcap_open_offline(const char *, char *);
void	pcap_close(pcap_t *);
int	pcap_loop(pcap_t *, int, pcap_handler, u_char *);
int	pcap_dispatch(pcap_t *, int, pcap_handler, u_char *);
const u_char*
	pcap_next(pcap_t *, struct pcap_pkthdr *);
int	pcap_stats(pcap_t *, struct pcap_stat *);
int	pcap_setfilter(pcap_t *, struct bpf_program *);
int	pcap_getnonblock(pcap_t *, char *);
int	pcap_setnonblock(pcap_t *, int, char *);
void	pcap_perror(pcap_t *, char *);
char	*pcap_strerror(int);
char	*pcap_geterr(pcap_t *);
int	pcap_compile(pcap_t *, struct bpf_program *, char *, int,
	    bpf_u_int32);
int	pcap_compile_nopcap(int, int, struct bpf_program *,
	    char *, int, bpf_u_int32);
void	pcap_freecode(struct bpf_program *);
int	pcap_datalink(pcap_t *);
int	pcap_list_datalinks(pcap_t *, int **);
int	pcap_set_datalink(pcap_t *, int);
int	pcap_datalink_name_to_val(const char *);
const char *pcap_datalink_val_to_name(int);
int	pcap_snapshot(pcap_t *);
int	pcap_is_swapped(pcap_t *);
int	pcap_major_version(pcap_t *);
int	pcap_minor_version(pcap_t *);

/* XXX */
FILE	*pcap_file(pcap_t *);
int	pcap_fileno(pcap_t *);

pcap_dumper_t *pcap_dump_open(pcap_t *, const char *);
int	pcap_dump_flush(pcap_dumper_t *);
void	pcap_dump_close(pcap_dumper_t *);
void	pcap_dump(u_char *, const struct pcap_pkthdr *, const u_char *);

int	pcap_findalldevs(pcap_if_t **, char *);
void	pcap_freealldevs(pcap_if_t *);

/* To avoid callback, this returns one packet at a time */
int pcap_next_ex(pcap_t *p, struct pcap_pkthdr **pkt_header, u_char **pkt_data);

/* XXX this guy lives in the bpf tree */
u_int	bpf_filter(struct bpf_insn *, u_char *, u_int, u_int);
int	bpf_validate(struct bpf_insn *f, int len);
char	*bpf_image(struct bpf_insn *, int);
void	bpf_dump(struct bpf_program *, int);

#ifdef WIN32
/*
 * Win32 definitions
 */

int pcap_setbuff(pcap_t *p, int dim);
int pcap_setmode(pcap_t *p, int mode);
int pcap_sendpacket(pcap_t *p, u_char *buf, int size);
int pcap_setmintocopy(pcap_t *p, int size);

#ifdef WPCAP
/* Include file with the wpcap-specific extensions */
#include <Win32-Extensions.h>
#endif

#define MODE_CAPT 0
#define MODE_STAT 1
#define MODE_MON 2

#endif /* WIN32 */

#ifdef REMOTE
/* Includes most of the public stuff that is needed for the remote capture */
#include "remote-ext.h"
#endif



#ifdef __cplusplus
}
#endif

#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美中文字幕一二三区视频| 国产成人精品免费在线| 欧美激情在线一区二区| 欧美一级片免费看| 日韩视频免费直播| 欧美精品黑人性xxxx| 欧美日韩成人在线| 91精品啪在线观看国产60岁| 欧美一区二区视频在线观看2022| 欧美日韩在线观看一区二区| 欧美日韩亚洲高清一区二区| 5566中文字幕一区二区电影| 欧美一区二区性放荡片| 欧美大肚乱孕交hd孕妇| 久久久久久久性| 国产精品欧美一区喷水| 亚洲欧洲日韩一区二区三区| 亚洲日韩欧美一区二区在线| 亚洲精品中文字幕乱码三区| 香蕉久久一区二区不卡无毒影院 | 亚洲一级电影视频| 一区二区三区蜜桃| 日韩电影免费一区| 韩国视频一区二区| av亚洲精华国产精华精华| 欧美午夜精品一区二区三区| 欧美精选一区二区| 久久综合色之久久综合| 国产精品日日摸夜夜摸av| 一区二区日韩电影| 久久国产乱子精品免费女| 成人一区二区三区视频在线观看| 91香蕉视频黄| 日韩一区二区在线观看| 国产精品毛片大码女人| 日韩avvvv在线播放| 成人午夜电影小说| 欧美日韩国产系列| 国产精品久久久99| 日韩不卡在线观看日韩不卡视频| 国产成人在线免费观看| 精品视频全国免费看| 中文字幕免费观看一区| 日韩一区精品字幕| 97se狠狠狠综合亚洲狠狠| 精品少妇一区二区三区免费观看 | 久久精品日产第一区二区三区高清版| 一区在线播放视频| 精彩视频一区二区三区 | 亚洲国产综合91精品麻豆| 国内成人免费视频| 欧美精品高清视频| 亚洲欧美激情在线| 国产精品一品视频| 欧美精品一二三| 一卡二卡欧美日韩| av电影在线观看完整版一区二区 | 成人三级伦理片| 911精品国产一区二区在线| 国产精品国产三级国产三级人妇| 蜜桃视频免费观看一区| 欧美性感一类影片在线播放| 国产精品卡一卡二| 国产成人丝袜美腿| 久久老女人爱爱| 老司机一区二区| 日韩欧美电影在线| 日日摸夜夜添夜夜添精品视频| 色噜噜夜夜夜综合网| 日韩一区有码在线| 91一区二区在线观看| 国产精品久久午夜| 99久久夜色精品国产网站| 中文字幕 久热精品 视频在线| 国产在线视视频有精品| 精品蜜桃在线看| 国产美女在线观看一区| 亚洲精品一区二区三区四区高清| 蜜桃av噜噜一区二区三区小说| 欧美一级高清片| 久久99国产精品麻豆| 精品国产乱码久久久久久浪潮| 欧美a一区二区| 欧美一级黄色录像| 久久成人精品无人区| 精品国产一区二区三区久久久蜜月 | 国产精品午夜电影| 成人91在线观看| 一区二区三区**美女毛片| 欧美人成免费网站| 久久国产免费看| 亚洲国产成人午夜在线一区| 97精品国产露脸对白| 午夜激情综合网| 久久美女高清视频| 91精品办公室少妇高潮对白| 婷婷综合另类小说色区| 欧美不卡激情三级在线观看| 成人黄色综合网站| 亚洲午夜电影在线观看| 欧美成人激情免费网| 国产成人av一区二区三区在线观看| 国产精品国产精品国产专区不蜜 | 精品久久国产字幕高潮| 国产91精品一区二区麻豆网站| 中文字幕视频一区| 欧美精品一级二级| 成人视屏免费看| 午夜精品爽啪视频| 国产清纯白嫩初高生在线观看91 | 精品国产1区二区| 色婷婷av一区二区三区大白胸| 日韩成人一级大片| 国产精品久久久久四虎| 欧美精品第1页| 99国产麻豆精品| 激情综合色播五月| 亚洲国产视频网站| 国产肉丝袜一区二区| 欧美日韩大陆一区二区| 成人av电影在线| 精品一区二区三区视频在线观看| 中文字幕五月欧美| 国产亚洲视频系列| 欧美人伦禁忌dvd放荡欲情| 成人动漫一区二区在线| 久久99精品国产麻豆婷婷洗澡| 一区二区三区中文字幕| 国产视频一区在线观看| 日韩一级二级三级| 在线视频你懂得一区| 国产精品18久久久久久久久久久久| 亚洲一区二区中文在线| 国产精品传媒入口麻豆| 国产欧美综合色| 2021久久国产精品不只是精品| 欧美日韩国产综合一区二区三区| av中文字幕亚洲| 成人一区二区三区中文字幕| 国产在线不卡一区| 老司机免费视频一区二区| 日韩1区2区3区| 亚洲成a人v欧美综合天堂| 一区二区在线观看视频在线观看| 国产精品私房写真福利视频| 久久久一区二区| 日韩精品专区在线| 精品三级在线观看| 精品国产乱码久久久久久1区2区 | 午夜久久久久久久久| 一区二区三区中文字幕电影| 亚洲天堂av老司机| 亚洲欧美视频在线观看| 中文字幕亚洲电影| 一区二区三区在线看| 亚洲精品一二三| 一区二区三区欧美亚洲| 亚洲福利电影网| 日韩专区中文字幕一区二区| 日韩精品国产欧美| 久久精品国产亚洲一区二区三区| 久久精品免费观看| 国产精品一区二区在线播放| 国产宾馆实践打屁股91| 99久久婷婷国产精品综合| 91美女片黄在线观看91美女| 在线观看av不卡| 91精品国产一区二区三区| 亚洲精品一区二区在线观看| 国产欧美一区二区精品秋霞影院| 欧美国产激情二区三区| 亚洲天堂精品在线观看| 午夜欧美在线一二页| 韩国三级电影一区二区| 99久久精品国产精品久久| 欧美性一级生活| 欧美精品一区二区三区久久久| 欧美激情中文字幕一区二区| 亚洲精品菠萝久久久久久久| 午夜精品久久久| 国产一区二区三区香蕉| 91色porny| 欧美不卡一二三| 一区二区三区四区蜜桃| 久久精品国产久精国产爱| 成人短视频下载| 欧美浪妇xxxx高跟鞋交| 国产亚洲一区二区三区| 一区二区三区成人在线视频| 韩国女主播一区| 欧美网站一区二区| 国产农村妇女毛片精品久久麻豆 | 日韩和欧美一区二区三区| 国产精品夜夜嗨| 欧美三级三级三级爽爽爽| 欧美变态口味重另类| 亚洲欧美一区二区三区国产精品| 男女男精品视频网| 色综合天天综合狠狠| 久久久亚洲高清|