-
大小: 3MB文件類型: .rar金幣: 2下載: 1 次發布日期: 2023-11-06
- 語言: 其他
- 標簽:
資源簡介
WinPcap4.01版(驅動程序+開發包+幫助文檔),它是一款用于Windows的開源庫,用于網絡抓包應用程序的開發,另外附加的的幫助文檔包括中文版和英文版,你找不到的資源。

代碼片段和文件信息
/*
?*?Copyright?(c)?1999?-?2005?NetGroup?Politecnico?di?Torino?(Italy)
?*?Copyright?(c)?2005?-?2006?CACE?Technologies?Davis?(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.?Neither?the?name?of?the?Politecnico?di?Torino?CACE?Technologies?
?*?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.
?*
?*/
#include?“pcap.h“
#ifndef?WIN32
#include?
#include?
#else
#include?
#endif
//?Function?prototypes
void?ifprint(pcap_if_t?*d);
char?*iptos(u_long?in);
char*?ip6tos(struct?sockaddr?*sockaddr?char?*address?int?addrlen);
int?main()
{
??pcap_if_t?*alldevs;
??pcap_if_t?*d;
??char?errbuf[PCAP_ERRBUF_SIZE+1];
??char?source[PCAP_ERRBUF_SIZE+1];
??printf(“Enter?the?device?you?want?to?list:\n“
“rpcap://??????????????==>?lists?interfaces?in?the?local?machine\n“
“rpcap://hostname:port?==>?lists?interfaces?in?a?remote?machine\n“
“??????????????????????????(rpcapd?daemon?must?be?up?and?running\n“
“???????????????????????????and?it?must?accept?‘null‘?authentication)\n“
“file://foldername?????==>?lists?all?pcap?files?in?the?give?folder\n\n“
“Enter?your?choice:?“);
??fgets(source?PCAP_ERRBUF_SIZE?stdin);
??source[PCAP_ERRBUF_SIZE]?=?‘\0‘;
??/*?Retrieve?the?interfaces?list?*/
??if?(pcap_findalldevs_ex(source?NULL?&alldevs?errbuf)?==?-1)
??{
????fprintf(stderr“Error?in?pcap_findalldevs:?%s\n“errbuf);
????exit(1);
??}
??/*?Scan?the?list?printing?every?entry?*/
??for(d=alldevs;d;d=d->next)
??{
????ifprint(d);
??}
??pcap_freealldevs(alldevs);
?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????561648??2012-05-11?00:07??WinPcap4.01\4.0.1-WinPcap.exe
?????文件????????156??2003-05-21?05:57??WinPcap4.01\winpcap_src\build_wpdpack.bat
?????文件????????849??2003-05-21?05:57??WinPcap4.01\winpcap_src\build_wpdpack.txt
?????文件???????7944??2004-01-26?01:15??WinPcap4.01\winpcap_src\Common\dagc.h
?????文件???????3963??2002-04-10?04:45??WinPcap4.01\winpcap_src\Common\Devioctl.h
?????文件??????48556??2002-04-10?04:45??WinPcap4.01\winpcap_src\Common\Ntddndis.h
?????文件???????1292??2002-04-10?04:45??WinPcap4.01\winpcap_src\Common\Ntddpack.h
?????文件??????20857??2006-11-16?18:31??WinPcap4.01\winpcap_src\Common\Packet32.h
?????文件???????4728??2005-11-29?11:35??WinPcap4.01\winpcap_src\Common\WpcapNames.h
?????文件????????284??2006-11-27?16:04??WinPcap4.01\winpcap_src\createdoc.bat
?????文件????????790??2006-11-27?16:04??WinPcap4.01\winpcap_src\create_docs.bat
?????文件???????1350??2006-11-27?16:04??WinPcap4.01\winpcap_src\create_examples.bat
?????文件???????2252??2006-11-27?16:04??WinPcap4.01\winpcap_src\create_include.bat
?????文件????????732??2006-11-27?16:04??WinPcap4.01\winpcap_src\create_lib.bat
?????文件??????13674??2007-01-25?09:43??WinPcap4.01\winpcap_src\dox\compile.htm
?????文件???????1839??2005-04-23?16:27??WinPcap4.01\winpcap_src\dox\doxygen_groups.txt
?????文件???????1956??2005-04-23?16:27??WinPcap4.01\winpcap_src\dox\doxygen_groups_packetdll.txt
?????文件????????241??2007-01-23?11:04??WinPcap4.01\winpcap_src\dox\footer.htm
?????文件???????4650??2003-06-05?07:24??WinPcap4.01\winpcap_src\dox\internals-arch.gif
?????文件???????3494??2005-05-20?12:19??WinPcap4.01\winpcap_src\dox\internals.htm
?????文件???????7964??2006-11-29?16:35??WinPcap4.01\winpcap_src\dox\intro.htm
?????文件??????18533??2003-06-05?07:24??WinPcap4.01\winpcap_src\dox\language.htm
?????文件??????64511??2006-12-01?17:50??WinPcap4.01\winpcap_src\dox\libpcap\funcs\pcap.h
?????文件???????8186??2005-11-30?14:48??WinPcap4.01\winpcap_src\dox\libpcap\incs\pcap.h
?????文件????????992??2005-07-15?14:31??WinPcap4.01\winpcap_src\dox\main.txt
?????文件????????937??2005-07-15?14:31??WinPcap4.01\winpcap_src\dox\main_packetdll.txt
?????文件????????870??2003-06-10?04:04??WinPcap4.01\winpcap_src\dox\note.txt
?????文件???????4656??2003-06-05?07:24??WinPcap4.01\winpcap_src\dox\npf-dump.gif
?????文件???????3572??2003-06-05?07:24??WinPcap4.01\winpcap_src\dox\npf-ndis.gif
?????文件???????8463??2003-06-05?07:24??WinPcap4.01\winpcap_src\dox\npf-npf.gif
............此處省略1118個文件信息
評論
共有 條評論