WinPcap4.01版驱动程序+开发包+帮助文档中英版


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:

“rpcap://              ==> lists interfaces in the local machine

“rpcap://hostname:port ==> lists interfaces in a remote machine

“                          (rpcapd daemon must be up and running

“                           and it must accept ‘null‘ authentication)

“file://foldername     ==> lists all pcap files in the give folder


“Enter your choice: “);

  fgets(source PCAP_ERRBUF_SIZE stdin);
  source[PCAP_ERRBUF_SIZE] = ‘‘;

  /* Retrieve the interfaces list */
  if (pcap_findalldevs_ex(source NULL &alldevs errbuf) == -1)
  {
    fprintf(stderr“Error in pcap_findalldevs: %s
“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.014.0.1-WinPcap.exe

     文件        156  2003-05-21 05:57  WinPcap4.01winpcap_srcuild_wpdpack.bat

     文件        849  2003-05-21 05:57  WinPcap4.01winpcap_srcuild_wpdpack.txt

     文件       7944  2004-01-26 01:15  WinPcap4.01winpcap_srcCommondagc.h

     文件       3963  2002-04-10 04:45  WinPcap4.01winpcap_srcCommonDevioctl.h

     文件      48556  2002-04-10 04:45  WinPcap4.01winpcap_srcCommonNtddndis.h

     文件       1292  2002-04-10 04:45  WinPcap4.01winpcap_srcCommonNtddpack.h

     文件      20857  2006-11-16 18:31  WinPcap4.01winpcap_srcCommonPacket32.h

     文件       4728  2005-11-29 11:35  WinPcap4.01winpcap_srcCommonWpcapNames.h

     文件        284  2006-11-27 16:04  WinPcap4.01winpcap_srccreatedoc.bat

     文件        790  2006-11-27 16:04  WinPcap4.01winpcap_srccreate_docs.bat

     文件       1350  2006-11-27 16:04  WinPcap4.01winpcap_srccreate_examples.bat

     文件       2252  2006-11-27 16:04  WinPcap4.01winpcap_srccreate_include.bat

     文件        732  2006-11-27 16:04  WinPcap4.01winpcap_srccreate_lib.bat

     文件      13674  2007-01-25 09:43  WinPcap4.01winpcap_srcdoxcompile.htm

     文件       1839  2005-04-23 16:27  WinPcap4.01winpcap_srcdoxdoxygen_groups.txt

     文件       1956  2005-04-23 16:27  WinPcap4.01winpcap_srcdoxdoxygen_groups_packetdll.txt

     文件        241  2007-01-23 11:04  WinPcap4.01winpcap_srcdoxfooter.htm

     文件       4650  2003-06-05 07:24  WinPcap4.01winpcap_srcdoxinternals-arch.gif

     文件       3494  2005-05-20 12:19  WinPcap4.01winpcap_srcdoxinternals.htm

     文件       7964  2006-11-29 16:35  WinPcap4.01winpcap_srcdoxintro.htm

     文件      18533  2003-06-05 07:24  WinPcap4.01winpcap_srcdoxlanguage.htm

     文件      64511  2006-12-01 17:50  WinPcap4.01winpcap_srcdoxlibpcapfuncspcap.h

     文件       8186  2005-11-30 14:48  WinPcap4.01winpcap_srcdoxlibpcapincspcap.h

     文件        992  2005-07-15 14:31  WinPcap4.01winpcap_srcdoxmain.txt

     文件        937  2005-07-15 14:31  WinPcap4.01winpcap_srcdoxmain_packetdll.txt

     文件        870  2003-06-10 04:04  WinPcap4.01winpcap_srcdox
ote.txt

     文件       4656  2003-06-05 07:24  WinPcap4.01winpcap_srcdox
pf-dump.gif

     文件       3572  2003-06-05 07:24  WinPcap4.01winpcap_srcdox
pf-ndis.gif

     文件       8463  2003-06-05 07:24  WinPcap4.01winpcap_srcdox
pf-npf.gif

............此处省略1118个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)