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

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

?? pcap.h

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

/*! \brief Translates a data link type name, which is a DLT_ name 
  with the DLT_ removed, to the corresponding data link type value. The translation is 
  case-insensitive. -1 is returned on failure.
*/
int pcap_datalink_name_to_val(const char *name);

/*! \brief Translates a data link type value to the corresponding data 
link type name. NULL is returned on failure. 
*/
const char *pcap_datalink_val_to_name(int dlt);

/*! \brief Translates a data link type value to a short 
description of that data link type. NULL is returned on failure. 
*/
const char *pcap_datalink_val_to_description(int dlt);


/*! \brief Return the dimension of the packet portion (in bytes) that is delivered to the application.

       pcap_snapshot() returns the snapshot length specified when
       pcap_open_live was called.

\sa pcap_open_live(), pcap_compile(), pcap_compile_nopcap()
*/
int pcap_snapshot(pcap_t *p);


/*! \brief returns true if the current savefile
uses a different byte order than the current system.
*/
int pcap_is_swapped(pcap_t *p);


/*! \brief return the major version number of the pcap library used to write the savefile.

\sa pcap_minor_version()
*/
int pcap_major_version(pcap_t *p);


/*! \brief return the minor version number of the pcap library used to write the savefile.

\sa pcap_major_version()
*/
int pcap_minor_version(pcap_t *p);

/*! \brief Return the standard stream of an offline capture.
 
       pcap_file() returns the standard I/O stream of the "savefile",
       if    a    "savefile"    was    opened   with
       pcap_open_offline(), or NULL,  if  a  network  device  was
       opened with pcap_open_live().
       \deprecated Due to incompatibilities between the C Runtime (CRT) used to
       compile WinPcap and the one used by WinPcap-based applications, this function 
       may return an invalid FILE pointer, i.e. a descriptor that causes all the standard I/O stream 
       functions (ftell, fseek, fclose...) to fail. The function is still available for 
       backwards binary compatibility, only.

\sa pcap_open_offline(), pcap_open_live()
*/
FILE *pcap_file(pcap_t *p);

/*! \brief Return statistics on current capture.

 pcap_stats()  returns  0  and fills in a pcap_stat struct.
 The values represent packet statistics from the  start  of
 the  run  to the time of the call. If there is an error or
 the  underlying  packet  capture  doesn't  support  packet
 statistics,  -1  is  returned  and  the  error text can be
 obtained    with    pcap_perror()    or     pcap_geterr().
 pcap_stats()  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_ex(), pcap_open_live()
*/
int pcap_stats(pcap_t *p, struct pcap_stat *ps);

/*! \brief print the text of the last pcap library error on stderr, prefixed by prefix.

\sa pcap_geterr()
*/
void pcap_perror(pcap_t *p, char *prefix);


/*! \brief return the error  text  pertaining  to  the
       last  pcap  library  error.   

       \note the pointer Return will no longer point to a valid 
       error message string after the pcap_t passed to it is closed; 
       you must use or copy the string before closing the pcap_t. 

\sa pcap_perror()
*/
char *pcap_geterr(pcap_t *p);


/*! \brief Provided  in  case  strerror()  isn't
       available.

\sa pcap_perror(), pcap_geterr()
*/
char *pcap_strerror(int error);

/*! \brief Returns a pointer to a string giving information about the 
  version of the libpcap library being used; note that it contains more information than 
  just a version number. 
*/
const char *pcap_lib_version(void);

/*! \brief
       close the files associated with p and deallocates resources.

\sa pcap_open_live(), pcap_open_offline(), pcap_open_dead()
*/
void pcap_close(pcap_t *p);

/*! \brief return the standard I/O stream of the 'savefile' opened by pcap_dump_open(). */
FILE *pcap_dump_file(pcap_dumper_t *p);

/*! \brief Flushes the output buffer to the ``savefile,'' so that any 
     packets written with pcap_dump() but not yet written to the ``savefile'' will be 
     written. -1 is returned on error, 0 on success. 
*/
int pcap_dump_flush(pcap_dumper_t *p);

/*! \brief Closes a savefile.

\sa pcap_dump_open(), pcap_dump()
*/
void pcap_dump_close(pcap_dumper_t *p);

//\}
// End of Unix-compatible functions







/** \name Windows-specific Extensions

	The functions in this section extend libpcap to offer advanced functionalities (like remote packet 
	capture, packet buffer size variation or high-precision packet injection). Howerver, at the moment 
	they can be used only in Windows.
 */
//\{ 

/*!	\brief Returns the AirPcap handler associated with an adapter. This handler can be used to change
           the wireless-related settings of the CACE Technologies AirPcap wireless capture adapters.

\note THIS FUNCTION SHOULD BE CONSIDERED PROVISIONAL, AND MAY BE REPLACED IN THE FUTURE BY A MORE COMPLETE SET
OF FUNCTIONS FOR WIRELESS SUPPORT.

pcap_get_airpcap_handle() allows to obtain the airpcap handle of an open adapter. This handle can be used with
the AirPcap API functions to perform wireless-releated operations, e.g. changing the channel or enabling 
WEP decryption. For more details about the AirPcap wireless capture adapters, see 
http://www.cacetech.com/products/airpcap.htm
	
\param p: handle to an open libpcap adapter

\return a pointer to an open AirPcap handle, used internally by the libpcap open adapter. NULL if the libpcap 
 adapter doesn't have wireless support through AirPcap.
*/
PAirpcapHandle pcap_get_airpcap_handle(pcap_t *p);

/*!	\brief Returns if a given filter applies to an offline packet.
	
This function is used to apply a filter to a packet that is currently in memory.
This process does not need to open an adapter; we need just to create the proper filter (by settings
parameters like the snapshot length, or the link-layer type) by means of the pcap_compile_nopcap().

The current API of libpcap does not allow to receive a packet and to filter the packet after it has been
received. However, this can be useful in case you want to filter packets in the application, instead of into 
the receiving process. This function allows you to do the job.
	
\param prog: bpf program (created with the pcap_compile_nopcap() )
\param header: header of the packet that has to be filtered
\param pkt_data: buffer containing the packet, in network-byte order.

\return the length of the bytes that are currently available into the packet if the packet satisfies the filter,
0 otherwise.
*/
bool pcap_offline_filter(struct bpf_program *prog, const struct pcap_pkthdr *header, const u_char *pkt_data);

/*! \brief Save a capture to file.

  \note: this function does not work in current version of WinPcap.

pcap_live_dump() dumps the network traffic from an interface to
a file. Using this function the dump is performed at kernel level, therefore it is more efficient than using
pcap_dump().

The parameters of this function are an interface descriptor (obtained with pcap_open_live()), a string with 
the name of the dump file, the maximum size of the file (in bytes) and the maximum number of packets that the file
will contain. Setting maxsize or maxpacks to 0 means no limit. When maxsize or maxpacks are reached, 
the dump ends.

pcap_live_dump() is non-blocking, threfore Return immediately. pcap_live_dump_ended() can be used to 
check the status of the dump process or to wait until it is finished. pcap_close() can instead be used to 
end the dump process.

Note that when one of the two limits is reached, the dump is stopped, but the file remains opened. In order 
to correctly flush the data and put the file in a consistent state, the adapter must be closed with 
pcap_close().


\sa pcap_live_dump_ended(), pcap_open_live(), pcap_close(), pcap_dump_open(), pcap_dump()
*/
int pcap_live_dump(pcap_t *p, char *filename, int maxsize, int maxpacks);


/*! \brief Return the status of the kernel dump process, i.e. tells if one of the limits defined with pcap_live_dump() has been reached.

    \note: this function does not work in current version of WinPcap.

pcap_live_dump_ended() informs the user about the limits that were set with a previous call to 
pcap_live_dump() on the interface pointed by p: if the return value is nonzero, one of the limits has been 
reched and the dump process is currently stopped.

If sync is nonzero, the function blocks until the dump is finished, otherwise Return immediately.

\warning if the dump process has no limits (i.e. if the maxsize and maxpacks arguments of pcap_live_dump() 
were both 0), the dump process will never stop, therefore setting sync to TRUE will block the application 
on this call forever.

\sa pcap_live_dump()
*/
int pcap_live_dump_ended(pcap_t *p, int sync);


/*! \brief Return statistics on current capture.

pcap_stats_ex() extends the pcap_stats() allowing to return more statistical parameters than the old call.
One of the advantages of this new call is that the pcap_stat structure is not allocated by the user; instead,
it is returned back by the system. This allow to extend the pcap_stat structure without affecting backward compatibility
on older applications. These will simply check at the values of the members at the beginning of the structure, 
while only newest applications are able to read new statistical values, which are appended in tail.

To be sure not to read a piece of mamory which has not been allocated by the system, the variable pcap_stat_size
will return back the size of the structure pcap_stat allocated by the system.

\param p: pointer to the pcap_t currently in use.
\param pcap_stat_size: pointer to an integer that will contain (when the function returns back) the size of the
structure pcap_stat as it has been allocated by the system.

\return: a pointer to a pcap_stat structure, that will contain the statistics related to the current device.
The return value is NULL in case of errors, and the  error text can be obtained with pcap_perror() or pcap_geterr().

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线精品视频免费播放| 国产在线一区观看| 日韩一区二区免费电影| 成人黄色777网| 欧美三级三级三级爽爽爽| 91在线免费看| 一区二区三区四区国产精品| 91黄色激情网站| 亚洲免费观看高清完整版在线| 色综合色综合色综合| 夜夜嗨av一区二区三区中文字幕 | 免费国产亚洲视频| 4438x亚洲最大成人网| 日本视频中文字幕一区二区三区| 欧美一区二区女人| 韩国一区二区三区| 国产精品黄色在线观看| 91久久精品一区二区| 秋霞电影一区二区| 久久精品亚洲国产奇米99| 成人久久18免费网站麻豆| 亚洲激情网站免费观看| 91精品久久久久久蜜臀| 国产精品资源在线看| 亚洲色图一区二区三区| 欧美久久久久免费| 国产一区二区三区精品视频| 综合亚洲深深色噜噜狠狠网站| 欧美无乱码久久久免费午夜一区| 秋霞成人午夜伦在线观看| 欧美极品另类videosde| 欧美综合一区二区三区| 精品在线你懂的| 亚洲久草在线视频| 精品精品国产高清一毛片一天堂| 97精品久久久久中文字幕| 日韩影院精彩在线| 亚洲国产精品二十页| 欧美日韩精品欧美日韩精品一| 狠狠色狠狠色综合日日91app| 中文字幕永久在线不卡| 91精品免费在线观看| 成人教育av在线| 日韩中文字幕av电影| 国产精品久久久久影院老司| 日韩欧美一级精品久久| 欧美一区二区三区四区高清| av一区二区三区在线| 美女看a上一区| 亚洲视频你懂的| www激情久久| 51精品视频一区二区三区| 91在线播放网址| 国产麻豆视频精品| 首页国产欧美久久| 亚洲精品福利视频网站| 国产亚洲综合av| 日韩一区二区三区在线视频| 在线精品视频小说1| 成人动漫中文字幕| 国产精一区二区三区| 免费av成人在线| 午夜视频一区二区| 亚洲午夜精品久久久久久久久| 最新久久zyz资源站| 久久久精品一品道一区| 日韩欧美色电影| 欧美一区二区在线视频| 在线免费观看日本一区| 91网站在线观看视频| 成人免费高清在线观看| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 精品一区免费av| 无码av免费一区二区三区试看| 亚洲精品成人悠悠色影视| 亚洲国产高清aⅴ视频| 亚洲国产经典视频| 国产精品国产三级国产普通话蜜臀 | 久久久五月婷婷| 久久久亚洲国产美女国产盗摄 | 懂色av一区二区三区免费看| 久久成人免费网站| 久久精品国产一区二区三区免费看| 亚洲成a人v欧美综合天堂下载| 亚洲欧美日韩成人高清在线一区| 久草精品在线观看| 奇米一区二区三区av| 日韩成人av影视| 美女被吸乳得到大胸91| 精品在线你懂的| 国产成人免费视频网站高清观看视频 | 色哟哟一区二区在线观看| 99精品国产99久久久久久白柏 | 国产精品福利一区二区| 中文字幕亚洲区| 国产精品理论在线观看| 中文字幕视频一区| 亚洲精品成人在线| 偷拍日韩校园综合在线| 蜜臀av国产精品久久久久| 久久精品国产精品亚洲综合| 经典三级视频一区| 成人免费视频播放| 99久久精品国产麻豆演员表| 欧美在线视频日韩| 5月丁香婷婷综合| 精品国产91洋老外米糕| 国产精品免费久久久久| 一区二区三区在线播放| 天堂在线亚洲视频| 国产综合色产在线精品| 成人免费高清在线| 欧美日韩五月天| 日韩一卡二卡三卡| 国产亚洲精品超碰| 国产精品家庭影院| 日韩精品福利网| 粉嫩13p一区二区三区| 91视频观看免费| 在线不卡免费欧美| 欧美国产精品v| 亚洲电影在线播放| 精品一区二区三区av| 99久久国产综合精品女不卡| 91麻豆精品国产91久久久久久久久| 久久嫩草精品久久久精品| 亚洲理论在线观看| 国产一区欧美日韩| 欧美在线观看一二区| 欧美成人女星排行榜| 日韩理论片中文av| 久久99蜜桃精品| 一本一道综合狠狠老| 精品国产一区二区三区忘忧草| 亚洲欧美日韩国产手机在线| 激情都市一区二区| 欧美揉bbbbb揉bbbbb| 国产日韩亚洲欧美综合| 亚洲va欧美va人人爽| 国产成人av一区二区三区在线观看| 欧美色倩网站大全免费| 国产精品丝袜一区| 理论片日本一区| 在线区一区二视频| 欧美国产成人在线| 国产一区二区中文字幕| 4438x成人网最大色成网站| 亚洲免费在线观看视频| 国产乱码精品1区2区3区| 91精品一区二区三区久久久久久 | 日韩一区二区三区av| 一区二区国产视频| 高清不卡在线观看av| 精品免费国产一区二区三区四区| 亚洲视频免费在线观看| 国产成人高清视频| 久久亚洲一级片| 老司机精品视频一区二区三区| 欧美影院精品一区| 中文字幕亚洲综合久久菠萝蜜| 国产在线视频不卡二| 日韩一级片网站| 视频一区二区三区入口| 欧美日韩在线电影| 一区二区视频免费在线观看| av在线这里只有精品| 日本一区二区三区国色天香| 国内精品写真在线观看| 日韩欧美国产小视频| 美女视频一区在线观看| 91精品视频网| 免费久久99精品国产| 正在播放亚洲一区| 日韩avvvv在线播放| 欧美精品 日韩| 日韩不卡手机在线v区| 4438亚洲最大| 老司机午夜精品| 欧美本精品男人aⅴ天堂| 久久69国产一区二区蜜臀| 欧美变态口味重另类| 激情成人午夜视频| 国产日本欧美一区二区| 9l国产精品久久久久麻豆| 亚洲色图在线看| 欧美在线免费观看视频| 午夜日韩在线电影| 日韩欧美视频一区| 国产乱子伦一区二区三区国色天香| 欧美精品一区二区三区久久久| 国产高清不卡二三区| 国产精品福利一区二区| 欧美自拍丝袜亚洲| 天天综合色天天| 欧美成人精品1314www| 国产精品中文字幕一区二区三区| 国产日韩精品一区二区三区| 成人a区在线观看| 亚洲一区二区美女| 91麻豆精品国产无毒不卡在线观看|