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

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

?? pcap.h

?? Windows XP下的抓包程序實現
?? H
?? 第 1 頁 / 共 5 頁
字號:

\warning pcap_stats_ex()  is  supported  only on live captures, not on  "savefiles"; no statistics are stored in
"savefiles", so no statistics are available when reading from a "savefile".

\sa pcap_stats()
*/
struct pcap_stat *pcap_stats_ex(pcap_t *p, int *pcap_stat_size);

/*! \brief Set the size of the kernel buffer associated with an adapter.

\e dim specifies the size of the buffer in bytes.
The return value is 0 when the call succeeds, -1 otherwise. If an old buffer was already created 
with a previous call to pcap_setbuff(), it is deleted and its content is discarded. 
pcap_open_live() creates a 1 MByte buffer by default.

\sa pcap_open_live(), pcap_loop(), pcap_dispatch()
*/
int pcap_setbuff(pcap_t *p, int dim);


/*! \brief Set the working mode of the interface p to mode. 

Valid values for mode are 
MODE_CAPT (default capture mode) and MODE_STAT (statistical mode). See the tutorial "\ref wpcap_tut9"
for details about statistical mode.
*/
int pcap_setmode(pcap_t *p, int mode);


/*! \brief Set the minumum amount of data received by the kernel in a single call.

pcap_setmintocopy() changes the minimum amount of data in the kernel buffer that causes a read from 
the application to return (unless the timeout expires). If the value of \e size is large, the kernel 
is forced to wait the arrival of several packets before copying the data to the user. This guarantees 
a low number of system calls, i.e. low processor usage, and is a good setting for applications like 
packet-sniffers and protocol analyzers. Vice versa, in presence of a small value for this variable, 
the kernel will copy the packets as soon as the application is ready to receive them. This is useful 
for real time applications that need the best responsiveness from the kernel.

\sa pcap_open_live(), pcap_loop(), pcap_dispatch()
*/
int pcap_setmintocopy(pcap_t *p, int size);



/*! \brief Return the handle of the event associated with the interface p. 

	This event can be passed to functions like WaitForSingleObject() or WaitForMultipleObjects() to wait 
	until the driver's buffer contains some data without performing a read.

	We disourage the use of this function because it is not portable.

\sa pcap_open_live()
*/
HANDLE pcap_getevent(pcap_t *p);

/*! \brief Allocate a send queue. 

This function allocates a send queue, i.e. a buffer containing a set of raw packets that will be transimtted
on the network with pcap_sendqueue_transmit().

memsize is the size, in bytes, of the queue, therefore it determines the maximum amount of data that the 
queue will contain.

Use pcap_sendqueue_queue() to insert packets in the queue.

\sa pcap_sendqueue_queue(), pcap_sendqueue_transmit(), pcap_sendqueue_destroy()
*/
pcap_send_queue* pcap_sendqueue_alloc(u_int memsize);

/*! \brief Destroy a send queue. 

Deletes a send queue and frees all the memory associated with it.

\sa pcap_sendqueue_alloc(), pcap_sendqueue_queue(), pcap_sendqueue_transmit()
*/
void pcap_sendqueue_destroy(pcap_send_queue* queue);

/*! \brief Add a packet to a send queue. 

pcap_sendqueue_queue() adds a packet at the end of the send queue pointed by the queue parameter. 
pkt_header points to a pcap_pkthdr structure with the timestamp and the length of the packet, pkt_data
points to a buffer with the data of the packet.

The pcap_pkthdr structure is the same used by WinPcap and libpcap to store the packets in a file, 
therefore sending a capture file is straightforward.
'Raw packet' means that the sending application will have to include the protocol headers, since every packet 
is sent to the network 'as is'. The CRC of the packets needs not to be calculated, because it will be 
transparently added by the network interface.

\sa pcap_sendqueue_alloc(), pcap_sendqueue_transmit(), pcap_sendqueue_destroy()
*/
int pcap_sendqueue_queue(pcap_send_queue* queue, const struct pcap_pkthdr *pkt_header, const u_char *pkt_data);


/*! \brief Send a queue of raw packets to the network.

This function transmits the content of a queue to the wire. p is a 
pointer to the adapter on which the packets will be sent, queue points to a pcap_send_queue structure 
containing the packets to send (see pcap_sendqueue_alloc() and pcap_sendqueue_queue()), sync determines if the 
send operation must be synchronized: if it is non-zero, the packets are sent respecting the timestamps,
otherwise they are sent as fast as possible.

The return value is the amount of bytes actually sent. If it is smaller than the size parameter, an
error occurred during the send. The error can be caused by a driver/adapter problem or by an inconsistent/bogus 
send queue.

\note Using this function is more efficient than issuing a series of pcap_sendpacket(), because the packets are
buffered in the kernel driver, so the number of context switches is reduced. Therefore, expect a better 
throughput when using pcap_sendqueue_transmit.

\note When Sync is set to TRUE, the packets are synchronized in the kernel with a high precision timestamp.
This requires a non-negligible amount of CPU, but allows normally to send the packets with a precision of some 
microseconds (depending on the accuracy of the performance counter of the machine). Such a precision cannot 
be reached sending the packets with pcap_sendpacket().

\sa pcap_sendqueue_alloc(), pcap_sendqueue_queue(), pcap_sendqueue_destroy()
*/
u_int pcap_sendqueue_transmit(pcap_t *p, pcap_send_queue* queue, int sync);


/*!	\brief Create a list of network devices that can be opened with pcap_open().
	
	This function is a superset of the old 'pcap_findalldevs()', which is obsolete, and which
	allows listing only the devices present on the local machine.
	Vice versa, pcap_findalldevs_ex() allows listing the devices present on a remote 
	machine as well. Additionally, it can list all the pcap files available into a given folder.
	Moreover, pcap_findalldevs_ex() is platform independent, since it
	relies on the standard pcap_findalldevs() to get addresses on the local machine.

	In case the function has to list the interfaces on a remote machine, it opens a new control
	connection toward that machine, it retrieves the interfaces, and it drops the connection.
	However, if this function detects that the remote machine is in 'active' mode,
	the connection is not dropped and the existing socket is used.

	The 'source' is a parameter that tells the function where the lookup has to be done and
	it uses the same syntax of the pcap_open().

	Differently from the pcap_findalldevs(), the interface names (pointed by the alldevs->name
	and the other ones in the linked list) are already ready to be used in the pcap_open() call.
	Vice versa, the output that comes from pcap_findalldevs() must be formatted with the new
	pcap_createsrcstr() before passing the source identifier to the pcap_open().

	\param source: a char* buffer that keeps the 'source localtion', according to the new WinPcap
	syntax. This source will be examined looking for adapters (local or remote) (e.g. source
	can be 'rpcap://' for local adapters or 'rpcap://host:port' for adapters on a remote host)
	or pcap files (e.g. source can be 'file://c:/myfolder/').<br>
	The strings that must be prepended to the 'source' in order to define if we want
	local/remote adapters or files is defined in the new \link remote_source_string Source 
	Specification Syntax \endlink.

	\param auth: a pointer to a pcap_rmtauth structure. This pointer keeps the information
	required to authenticate the RPCAP connection to the remote host.
	This parameter is not meaningful in case of a query to the local host: in that case
	it can be NULL.

	\param alldevs: a 'struct pcap_if_t' pointer, which will be properly allocated inside
	this function. When the function returns, it is set to point to the first element 
	of the interface list; each element of the list is of type 'struct pcap_if_t'.

	\param errbuf: a pointer to a user-allocated buffer (of size PCAP_ERRBUF_SIZE)
	that will contain the error message (in case there is one).

	\return '0' if everything is fine, '-1' if some errors occurred. The list of the devices 
	is returned in the 'alldevs' variable.
	When the function returns correctly, 'alldevs' cannot be NULL. In other words, this 
	function returns '-1' also in case the system does not have any interface to list.

	The error message is returned in the 'errbuf' variable. An error could be due to 
	several reasons:
	- libpcap/WinPcap was not installed on the local/remote host
	- the user does not have enough privileges to list the devices / files
	- a network problem
	- the RPCAP version negotiation failed
	- other errors (not enough memory and others).
	
	\warning There may be network devices that cannot be opened with pcap_open() by the process
	calling pcap_findalldevs(), because, for example, that process might not have
	sufficient privileges to open them for capturing; if so, those devices will not 
	appear on the list.

	\warning The interface list must be deallocated manually by using the pcap_freealldevs().
*/
int pcap_findalldevs_ex(char *source, struct pcap_rmtauth *auth, pcap_if_t **alldevs, char *errbuf);


/*!	\brief Accept a set of strings (host name, port, ...), and it returns the complete 
	source string according to the new format (e.g. 'rpcap://1.2.3.4/eth0').

	This function is provided in order to help the user creating the source string
	according to the new format.
	An unique source string is used in order to make easy for old applications to use the
	remote facilities. Think about tcpdump, for example, which has only one way to specify
	the interface on which the capture has to be started.
	However, GUI-based programs can find more useful to specify hostname, port and
	interface name separately. In that case, they can use this function to create the 
	source string before passing it to the pcap_open() function.

	\param source: a user-allocated buffer that will contain the complete source string
	wen the function returns.<br>
	The source will start with an identifier according to the new \link remote_source_string 
	Source Specification Syntax	\endlink.<br>
	This function assumes that the allocated buffer is at least PCAP_BUF_SIZE bytes.

	\param type: its value tells the type of the source we want to create. It can assume 
	the values defined in the \link remote_source_ID Source identification
	Codes \endlink.<br>

	\param host: an user-allocated buffer that keeps the host (e.g. "foo.bar.com") we 
	want to connect to.
	It can be NULL in case we want to open an interface on a local host.

	\param port: an user-allocated buffer that keeps the network port (e.g. "2002") we 
	want to use for the RPCAP protocol.
	It can be NULL in case we want to open an interface on a local host.

	\param name: an user-allocated buffer that keeps the interface name we want to use
	(e.g. "eth0").
	It can be NULL in case the return string (i.e. 'source') has to be used with the
	pcap_findalldevs_ex(), which does not require the interface name.

	\param errbuf: a pointer to a user-allocated buffer (of size PCAP_ERRBUF_SIZE)
	that will contain the error message (in case there is one).

	\return '0' if everything is fine, '-1' if some errors occurred. The string containing
	the complete source is returned in the 'source' variable.

	\warning If the source is longer than PCAP_BUF_SIZE, the excess characters are truncated.
*/
int pcap_createsrcstr(char *source, int type, const char *host, const char *port, const char *name, char *errbuf);


/*!	\brief Parse the source string and returns the pieces in which the source can be split.

	This call is the other way round of pcap_createsrcstr().
	It accepts a null-terminated string and it returns the parameters related 
	to the source. This includes:
	- the type of the source (file, winpcap on a remote adapter, winpcap on local adapter),
	which is determined by the source prefix (PCAP_SRC_IF_STRING and so on)
	- the host on which the capture has to be started (only for remote captures)
	- the 'raw' name of the source (file name, name of the remote adapter, name 
	of the local adapter), without the source prefix. The string returned does not 
	include the type of the source itself (i.e. the string returned does not include "file://" 
	or rpcap:// or such).

	The user can omit some parameters in case it is not interested in them.

	\param source: a null-terminated string containing the WinPcap source. This source starts
	with an identifier according to the new \link remote_source_string Source Specification Syntax
	\endlink.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久久久电影| 国产成人av福利| 欧美日韩激情一区二区| 一区二区三区色| 欧美日韩视频在线第一区| 亚洲成人免费看| 91精品国产麻豆国产自产在线 | 成人一级黄色片| 国产精品看片你懂得| 欧美在线免费观看亚洲| 手机精品视频在线观看| 欧美精品一区二区三区蜜桃| 精品无人区卡一卡二卡三乱码免费卡 | 国产欧美一区二区精品婷婷| 成人污污视频在线观看| 亚洲小少妇裸体bbw| 欧美高清www午色夜在线视频| 蜜桃免费网站一区二区三区| 国产精品三级电影| 欧美日韩一区二区三区高清| 精品中文字幕一区二区| 国产精品丝袜黑色高跟| 欧美日韩免费高清一区色橹橹| 日本va欧美va瓶| 中文字幕亚洲一区二区va在线| 欧美视频一区二区三区| 国产精品一卡二| 亚洲午夜精品网| 国产亚洲人成网站| 欧美日韩在线观看一区二区 | 亚洲成人动漫av| 久久亚洲精精品中文字幕早川悠里| 99精品国产91久久久久久| 视频在线观看一区| 亚洲日本在线a| 精品久久一区二区| 欧美体内she精视频| 国产精品一品二品| 日本美女一区二区三区| 亚洲天堂久久久久久久| 精品99一区二区三区| 欧美午夜电影网| 成人小视频在线观看| 青青草国产成人av片免费| 亚洲欧美日韩国产综合| 国产午夜精品理论片a级大结局| 精品视频在线免费| 成人综合婷婷国产精品久久| 蜜桃av一区二区三区| 一区二区国产视频| 国产精品毛片久久久久久久| 日韩美女视频在线| 欧美日韩精品一区二区在线播放 | 亚洲天堂免费在线观看视频| 久久久亚洲精华液精华液精华液| 欧美日韩一区三区四区| 91视频观看免费| 白白色亚洲国产精品| 国产成人综合在线播放| 九九精品一区二区| 蜜桃av一区二区在线观看| 午夜久久久久久久久久一区二区| 亚洲美女屁股眼交| 亚洲乱码国产乱码精品精98午夜| 久久久99精品免费观看| 精品91自产拍在线观看一区| 91精品国产色综合久久ai换脸 | 精品一区二区三区免费毛片爱 | 精品国产亚洲在线| 欧美大片拔萝卜| 欧美不卡视频一区| 欧美一区国产二区| 欧美色图激情小说| 欧美高清视频不卡网| 欧美精品久久久久久久久老牛影院 | 久久午夜羞羞影院免费观看| 91精品国产综合久久久蜜臀粉嫩| 欧美日韩夫妻久久| 欧美亚洲图片小说| 欧美日韩精品二区第二页| 欧美精品在线观看播放| 91麻豆精品久久久久蜜臀| 欧美日韩国产一级二级| 日韩一区二区在线观看视频 | 波多野结衣中文一区| 99国产精品久| 日本韩国精品一区二区在线观看| 色综合中文字幕| 欧美性生活久久| 88在线观看91蜜桃国自产| 91精品视频网| 久久综合久久久久88| 国产日韩欧美精品综合| 亚洲精品视频一区| 五月婷婷色综合| 精品制服美女丁香| 不卡的av电影在线观看| 欧美三级电影网| 中文字幕一区二区三区色视频| 国产精品国产精品国产专区不片| 一区二区三区在线免费| 午夜不卡av在线| 国产精品一级在线| 91色综合久久久久婷婷| 69堂成人精品免费视频| 久久女同性恋中文字幕| 自拍视频在线观看一区二区| 亚洲国产欧美在线| 久久激情五月激情| 成人高清视频在线观看| 欧美日韩一区三区| 久久久精品tv| 亚洲成人免费av| 国产suv一区二区三区88区| 在线视频一区二区三| 日韩视频免费观看高清完整版在线观看| 久久这里只有精品视频网| 国产精品国产三级国产有无不卡| 亚洲综合免费观看高清在线观看| 久久精品久久精品| 99国产精品久| 精品国产三级电影在线观看| 综合婷婷亚洲小说| 国产自产高清不卡| 欧美日韩一区三区四区| 国产精品久久毛片a| 日本人妖一区二区| 91浏览器入口在线观看| 亚洲精品一区在线观看| 亚洲午夜久久久久久久久久久| 国产综合色精品一区二区三区| 日本道免费精品一区二区三区| 精品国产91九色蝌蚪| 亚洲va国产天堂va久久en| 豆国产96在线|亚洲| 日韩欧美国产系列| 亚洲第一主播视频| 一本到不卡精品视频在线观看| 欧美电影免费观看高清完整版在| 亚洲精品视频在线看| 国产精品亚洲视频| 日韩欧美色综合网站| 亚洲国产综合在线| 99久久久精品| 国产欧美在线观看一区| 久久电影网站中文字幕| 欧美午夜精品一区二区三区| 亚洲视频一区在线观看| 成熟亚洲日本毛茸茸凸凹| 精品国产伦理网| 青青草97国产精品免费观看无弹窗版 | 一区二区不卡在线视频 午夜欧美不卡在| 激情综合色丁香一区二区| 538prom精品视频线放| 一区二区三区91| 在线欧美小视频| 亚洲视频1区2区| 91在线国产福利| 中文字幕视频一区| 成人app软件下载大全免费| 国产视频一区在线观看| 另类小说图片综合网| 91精品国产综合久久久久久久 | 亚洲精品在线一区二区| 久久福利资源站| 欧美不卡一区二区三区| 久久超碰97人人做人人爱| 日韩精品在线一区| 老色鬼精品视频在线观看播放| 日韩一级片网站| 蜜桃91丨九色丨蝌蚪91桃色| 精品国产污网站| 国产一区在线观看麻豆| 久久精品人人爽人人爽| 国产成人自拍网| 国产精品女人毛片| 91香蕉国产在线观看软件| 一区二区三区精品在线| 在线观看成人小视频| 视频一区在线视频| 日韩一区二区精品葵司在线| 久国产精品韩国三级视频| 久久久精品日韩欧美| 93久久精品日日躁夜夜躁欧美| 亚洲女同ⅹxx女同tv| 欧美日韩在线播放一区| 蜜桃av噜噜一区| 国产目拍亚洲精品99久久精品| k8久久久一区二区三区| 亚洲制服丝袜一区| 欧美一区二区三区在| 国产精品一级黄| 亚洲综合色噜噜狠狠| 日韩区在线观看| 成人综合在线观看| 调教+趴+乳夹+国产+精品| 亚洲精品一区二区三区香蕉| 成人久久18免费网站麻豆| 亚洲国产欧美在线人成| 2021国产精品久久精品|