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

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

?? remote-ext.h

?? 著名的入侵檢測系統snort的最新版本的源碼
?? H
字號:
/*
 * Copyright (c) 2002 - 2003
 * NetGroup, Politecnico di Torino (Italy)
 * 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. Neither the name of the Politecnico di Torino 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 COPYRIGHT HOLDERS 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 COPYRIGHT 
 * OWNER 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.
 * 
 */


#ifndef __REMOTE_EXT_H__
#define __REMOTE_EXT_H__



// Definition for Microsoft Visual Studio
#if _MSC_VER > 1000
#pragma once
#endif

#ifdef __cplusplus
extern "C" {
#endif

/*!
	\file remote-ext.h

	The goal of this file it to include most of the new definitions that should be
	placed into the pcap.h file.

	It includes all new definitions (structures and functions like pcap_open().
    Some of the functions are not really a remote feature, but, right now, 
	they are placed here.
*/



// All this stuff is public
/*! \addtogroup remote_struct
	\{
*/




/*!
	\brief Defines the maximum buffer size in which address, port, interface names are kept.

	In case the adapter name or such is larger than this value, it is truncated.
	This is not used by the user; however it must be aware that an hostname / interface
	name longer than this value will be truncated.
*/
#define PCAP_BUF_SIZE 1024


/*! \addtogroup remote_source_ID
	\{
*/


/*!
	\brief Internal representation of the type of source in use (file, 
	remote/local interface).

	This indicates a file, i.e. the user want to open a capture from a local file.
*/
#define PCAP_SRC_FILE 2
/*!
	\brief Internal representation of the type of source in use (file, 
	remote/local interface).

	This indicates a local interface, i.e. the user want to open a capture from 
	a local interface. This does not involve the RPCAP protocol.
*/
#define PCAP_SRC_IFLOCAL 3
/*!
	\brief Internal representation of the type of source in use (file, 
	remote/local interface).

	This indicates a remote interface, i.e. the user want to open a capture from 
	an interface on a remote host. This does involve the RPCAP protocol.
*/
#define PCAP_SRC_IFREMOTE 4

/*!
	\}
*/



/*! \addtogroup remote_source_string

	The formats allowed by the pcap_open() are the following:
	- file://path_and_filename [opens a local file]
	- rpcap://devicename [opens the selected device devices available on the local host, without using the RPCAP protocol]
	- rpcap://host/devicename [opens the selected device available on a remote host]
	- rpcap://host:port/devicename [opens the selected device available on a remote host, using a non-standard port for RPCAP]
	- adaptername [to open a local adapter; kept for compability, but it is strongly discouraged]
	- (NULL) [to open the first local adapter; kept for compability, but it is strongly discouraged]

	The formats allowed by the pcap_findalldevs_ex() are the following:
	- file://folder/ [lists all the files in the given folder]
	- rpcap:// [lists all local adapters]
	- rpcap://host:port/ [lists the devices available on a remote host]

	Referring to the 'host' and 'port' paramters, they can be either numeric or literal. Since
	IPv6 is fully supported, these are the allowed formats:

	- host (literal): e.g. host.foo.bar
	- host (numeric IPv4): e.g. 10.11.12.13
	- host (numeric IPv4, IPv6 style): e.g. [10.11.12.13]
	- host (numeric IPv6): e.g. [1:2:3::4]
	- port: can be either numeric (e.g. '80') or literal (e.g. 'http')

	Here you find some allowed examples:
	- rpcap://host.foo.bar/devicename [everything literal, no port number]
	- rpcap://host.foo.bar:1234/devicename [everything literal, with port number]
	- rpcap://10.11.12.13/devicename [IPv4 numeric, no port number]
	- rpcap://10.11.12.13:1234/devicename [IPv4 numeric, with port number]
	- rpcap://[10.11.12.13]:1234/devicename [IPv4 numeric with IPv6 format, with port number]
	- rpcap://[1:2:3::4]/devicename [IPv6 numeric, no port number]
	- rpcap://[1:2:3::4]:1234/devicename [IPv6 numeric, with port number]
	- rpcap://[1:2:3::4]:http/devicename [IPv6 numeric, with literal port number]
	
	\{
*/


/*!
	\brief String that will be used to determine the type of source in use (file,
	remote/local interface).

	This string will be prepended to the interface name in order to create a string
	that contains all the information required to open the source.

	This string indicates that the user wants to open a capture from a local file.
*/
#define PCAP_SRC_FILE_STRING "file://"
/*!
	\brief String that will be used to determine the type of source in use (file,
	remote/local interface).

	This string will be prepended to the interface name in order to create a string
	that contains all the information required to open the source.

	This string indicates that the user wants to open a capture from a network interface.
	This string does not necessarily involve the use of the RPCAP protocol. If the
	interface required resides on the local host, the RPCAP protocol is not involved
	and the local functions are used.
*/
#define PCAP_SRC_IF_STRING "rpcap://"

/*!
	\}
*/





/*!
	\addtogroup remote_open_flags
	\{
*/

/*!
	\brief It defines if the adapter has to go in promiscuous mode.

	It is '1' if you have to open the adapter in promiscuous mode, '0' otherwise.
	Note that even if this parameter is false, the interface could well be in promiscuous
	mode for some other reason (for example because another capture process with 
	promiscuous mode enabled is currently using that interface).
	On on Linux systems with 2.2 or later kernels (that have the "any" device), this
	flag does not work on the "any" device; if an argument of "any" is supplied,
	the 'promisc' flag is ignored.
*/
#define PCAP_OPENFLAG_PROMISCUOUS		1

/*!
	\brief It defines if the data trasfer (in case of a remote
	capture) has to be done with UDP protocol.

	If it is '1' if you want a UDP data connection, '0' if you want
	a TCP data connection; control connection is always TCP-based.
	A UDP connection is much lighter, but it does not guarantee that all
	the captured packets arrive to the client workstation. Moreover, 
	it could be harmful in case of network congestion.
	This flag is meaningless if the source is not a remote interface.
	In that case, it is simply ignored.
*/
#define PCAP_OPENFLAG_DATATX_UDP			2


/*!
	\brief It defines if the remote probe has to capture its own generated traffic.

	In case the remote probe uses the same interface to capture traffic and to send
	data back to the caller, the captured traffic includes the RPCAP traffic as well.
	If this flag is turned on, the RPCAP traffic is excluded from the capture, so that
	the trace returned back to the collector is does not include this traffic.
*/
#define PCAP_OPENFLAG_NOCAPTURE_RPCAP	4
/*!
	\}
*/


/*!
	\addtogroup remote_samp_methods
	\{
*/

/*!
	\brief No sampling has to be done on the current capture.

	In this case, no sampling algorithms are applied to the current capture.
*/
#define PCAP_SAMP_NOSAMP	0

/*!
	\brief It defines that only 1 out of N packets must be returned to the user.

	In this case, the 'value' field of the 'pcap_samp' structure indicates the
	number of packets (minus 1) that must be discarded before one packet got accepted.
	In other words, if 'value = 10', the first packet is returned to the caller, while
	the following 9 are discarded.
*/
#define PCAP_SAMP_1_EVERY_N	1

/*!
	\brief It defines that we have to return 1 packet every N milliseconds.

	In this case, the 'value' field of the 'pcap_samp' structure indicates the 'waiting
	time' in milliseconds before one packet got accepted.
	In other words, if 'value = 10', the first packet is returned to the caller; the next 
	returned one will be the first packet that arrives when 10ms have elapsed. 
*/
#define PCAP_SAMP_FIRST_AFTER_N_MS 2

/*!
	\}
*/


/*!
	\addtogroup remote_auth_methods
	\{
*/

/*!
	\brief It defines the NULL authentication.

	This value has to be used within the 'type' member of the pcap_rmtauth structure.
	The 'NULL' authentication has to be equal to 'zero', so that old applications
	can just put every field of struct pcap_rmtauth to zero, and it does work.
*/
#define RPCAP_RMTAUTH_NULL 0
/*!
	\brief It defines the username/password authentication.

	With this type of authentication, the RPCAP protocol will use the username/
	password provided to authenticate the user on the remote machine. If the
	authentication is successful (and the user has the right to open network devices)
	the RPCAP connection will continue; otherwise it will be dropped.

	This value has to be used within the 'type' member of the pcap_rmtauth structure.
*/
#define RPCAP_RMTAUTH_PWD 1

/*!
	\}
*/




/*!

	\brief This structure keeps the information needed to autheticate
	the user on a remote machine.
	
	The remote machine can either grant or refuse the access according 
	to the information provided.
	In case the NULL authentication is required, both 'username' and
	'password' can be NULL pointers.
	
	This structure is meaningless if the source is not a remote interface;
	in that case, the functions which requires such a structure can accept
	a NULL pointer as well.
*/
struct pcap_rmtauth
{
	/*!
		\brief Type of the authentication required.

		In order to provide maximum flexibility, we can support different types
		of authentication based on the value of this 'type' variable. The currently 
		supported authentication methods are defined into the
		\link remote_auth_methods Remote Authentication Methods Section\endlink.

	*/
	int type;
	/*!
		\brief Zero-terminated string containing the username that has to be 
		used on the remote machine for authentication.
		
		This field is meaningless in case of the RPCAP_RMTAUTH_NULL authentication
		and it can be NULL.
	*/
	char *username;
	/*!
		\brief Zero-terminated string containing the password that has to be 
		used on the remote machine for authentication.
		
		This field is meaningless in case of the RPCAP_RMTAUTH_NULL authentication
		and it can be NULL.
	*/
	char *password;
};


/*!
	\brief This structure defines the information related to sampling.

	In case the sampling is requested, the capturing device should read
	only a subset of the packets coming from the source. The returned packets depend
	on the sampling parameters.

	\warning The sampling process is applied <strong>after</strong> the filtering process.
	In other words, packets are filtered first, then the sampling process selects a
	subset of the 'filtered' packets and it returns them to the caller.
*/
struct pcap_samp
{
	/*!
		Method used for sampling. Currently, the supported methods are listed in the
		\link remote_samp_methods Sampling Methods Section\endlink.
	*/
	int method;

	/*!
		This value depends on the sampling method defined. For its meaning, please check
		at the \link remote_samp_methods Sampling Methods Section\endlink.
	*/
	int value;
};




//! Maximum lenght of an host name (needed for the RPCAP active mode)
#define RPCAP_HOSTLIST_SIZE 1024


/*!
	\}
*/ // end of public documentation


// Exported functions



/** \name New WinPcap functions

	This section lists the new functions that are able to help considerably in writing
	WinPcap programs because of their easiness of use.
 */
//\{
pcap_t *pcap_open(const char *source, int snaplen, int flags, int read_timeout, struct pcap_rmtauth *auth, char *errbuf);
int pcap_createsrcstr(char *source, int type, const char *host, const char *port, const char *name, char *errbuf);
int pcap_parsesrcstr(const char *source, int *type, char *host, char *port, char *name, char *errbuf);
int pcap_findalldevs_ex(char *source, struct pcap_rmtauth *auth, pcap_if_t **alldevs, char *errbuf);
struct pcap_samp *pcap_setsampling(pcap_t *p);

//\}
// End of new winpcap functions



/** \name Remote Capture functions
 */
//\{ 
SOCKET pcap_remoteact_accept(const char *address, const char *port, const char *hostlist, char *connectinghost, struct pcap_rmtauth *auth, char *errbuf);
int pcap_remoteact_list(char *hostlist, char sep, int size, char *errbuf);
int pcap_remoteact_close(const char *host, char *errbuf);
void pcap_remoteact_cleanup();
//\}
// End of remote capture functions

#ifdef __cplusplus
}
#endif


#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产手机| 男男成人高潮片免费网站| 亚洲成va人在线观看| 极品少妇xxxx精品少妇| 欧美制服丝袜第一页| 精品国产一区二区三区不卡| 亚洲一区二区三区四区在线| 国产精品1区2区3区在线观看| 欧美亚洲日本一区| 国产精品久久久久久久久果冻传媒| 天天综合天天综合色| 91一区一区三区| 26uuu国产日韩综合| 三级久久三级久久| 在线观看欧美黄色| 中文字幕一区二区三区色视频| 美女视频一区在线观看| 欧美色精品天天在线观看视频| 国产精品国产三级国产普通话三级| 男人的天堂久久精品| 欧美日韩免费电影| 一级精品视频在线观看宜春院| 国内精品免费在线观看| 日韩一级高清毛片| 五月婷婷激情综合| 欧美日韩国产一级二级| 一区二区久久久久久| 99久久99精品久久久久久| 国产精品色眯眯| 成人综合婷婷国产精品久久蜜臀| 久久久久久久久久久久电影 | 国产一区二区三区视频在线播放| 欧美伊人精品成人久久综合97 | 成人av网址在线观看| 久久综合色鬼综合色| 国产一区二区视频在线播放| 精品av久久707| 国产精品一区二区三区99| 欧美精品一区二区三区在线播放| 激情五月播播久久久精品| 2024国产精品视频| 国产精品伊人色| 欧美高清在线一区二区| 成人国产视频在线观看| 亚洲欧美一区二区久久| 欧美日韩三级一区| 日韩av一区二区三区四区| 欧美电视剧免费全集观看| 国产一区二区在线影院| 国产精品视频免费看| 91免费在线播放| 午夜精品视频一区| 欧美tickling挠脚心丨vk| 国产精品一区二区久激情瑜伽 | 91精品国产综合久久精品| 久久99精品国产麻豆婷婷| 久久久亚洲精品一区二区三区| 国产福利一区二区| 一区二区三区国产| 日韩欧美中文字幕公布| 岛国精品在线观看| 一区二区三区不卡视频在线观看| 欧美日韩精品一区二区三区四区| 麻豆精品蜜桃视频网站| 欧美国产日韩一二三区| 欧美亚洲高清一区二区三区不卡| 日韩成人精品在线| 国产精品嫩草影院av蜜臀| 欧美日韩综合色| 国产精品一二三| 亚洲高清中文字幕| 国产亲近乱来精品视频| 欧美日韩一区在线观看| 久久99精品久久久久久动态图| 国产精品卡一卡二卡三| 日韩欧美电影在线| 日本韩国精品在线| 国产成人免费高清| 视频一区在线播放| 中文字幕五月欧美| 日韩欧美一级在线播放| 色美美综合视频| 国产一区二区免费看| 亚洲一二三级电影| 国产精品每日更新在线播放网址| 欧美在线观看一区二区| 国产精品18久久久久久久网站| 日韩国产在线观看| 一区二区三区蜜桃| 中文字幕一区二区三区av| 久久综合狠狠综合久久激情| 欧美群妇大交群的观看方式| 成人a区在线观看| 久久99精品国产| 亚洲综合丁香婷婷六月香| 国产精品久久久久久久久搜平片| 精品av久久707| 日韩欧美的一区二区| 欧美片在线播放| 日本韩国一区二区三区视频| 99视频热这里只有精品免费| 国产一区二区免费视频| 另类的小说在线视频另类成人小视频在线| 亚洲美女偷拍久久| 亚洲欧洲日产国码二区| 日本一区二区三区免费乱视频| 日韩精品一区二区三区swag| 91麻豆精品国产91久久久久久久久 | 亚洲成人精品在线观看| 亚洲精品中文在线观看| 中文字幕一区在线| 国产精品久久久久久久久免费桃花| 国产天堂亚洲国产碰碰| 久久综合精品国产一区二区三区| 精品日韩成人av| 欧美电影免费观看高清完整版在线观看 | 在线不卡中文字幕| 欧美日韩一二区| 欧美色图激情小说| 欧美日韩不卡视频| 91精品国产综合久久精品图片| 欧美美女网站色| 欧美一区二区福利在线| 欧美一级高清片在线观看| 欧美成人免费网站| 国产欧美中文在线| 国产精品久久777777| 国产精品久久久久桃色tv| 日韩一区有码在线| 亚洲国产va精品久久久不卡综合| 五月婷婷综合在线| 韩国v欧美v亚洲v日本v| 国产成人精品在线看| 成人免费毛片aaaaa**| 91美女片黄在线观看91美女| 欧美在线一二三| 在线不卡一区二区| 欧美成人女星排行榜| 欧美国产日产图区| 亚洲最新在线观看| 美女脱光内衣内裤视频久久网站| 国产精品性做久久久久久| 成人免费精品视频| 欧美美女一区二区在线观看| wwww国产精品欧美| 亚洲欧美激情一区二区| 日本欧美久久久久免费播放网| 激情深爱一区二区| 色综合激情五月| 日韩精品一区二区在线| 亚洲柠檬福利资源导航| 天堂成人免费av电影一区| 国产精品资源站在线| 91久久精品一区二区| 欧美成人伊人久久综合网| 成人欧美一区二区三区白人| 五月激情六月综合| 成人免费精品视频| 欧美成人a视频| 亚洲精品免费在线| 国产精品自在欧美一区| 欧美理论电影在线| 国产精品久久久久三级| 男女性色大片免费观看一区二区 | 美女高潮久久久| 色综合激情久久| 久久精品视频网| 午夜视频一区二区三区| k8久久久一区二区三区| 欧美一区二区大片| 亚洲免费观看高清完整版在线观看| 久久99国产精品免费| 欧美在线色视频| 国产精品丝袜91| 国产一区亚洲一区| 欧美一区二区三区四区视频| 一区二区三区欧美亚洲| av亚洲精华国产精华精| 精品国产制服丝袜高跟| 日韩激情视频网站| 91黄色在线观看| 亚洲视频在线一区| 成人永久看片免费视频天堂| 91精品黄色片免费大全| 天堂久久一区二区三区| 在线观看一区日韩| 亚洲手机成人高清视频| 不卡高清视频专区| 国产精品网曝门| 国产精品乡下勾搭老头1| 日韩欧美中文一区| 五月天激情综合网| 欧美日韩激情一区二区三区| 亚洲乱码中文字幕| 成年人午夜久久久| 中文字幕在线一区二区三区| 国产不卡免费视频| 国产欧美日韩精品a在线观看| 国产一区二区三区免费| 久久综合久久鬼色|