-
大小: 14.59MB文件类型: .bz2金币: 1下载: 0 次发布日期: 2023-07-02
- 语言: 其他
- 标签:
资源简介
可以截获数据,监视端口,可以监视,tcp/ip,udp,以太帧
代码片段和文件信息
/* airpcap_loader.c
*
* $Id: airpcap_loader.c 30954 2009-11-13 20:20:40Z gerald $
*
* Giorgio Tino
* Copyright (c) CACE Technologies LLC 2006
*
* Wireshark - Network traffic analyzer
* By Gerald Combs
* Copyright 2000 Gerald Combs
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not write to the Free Software
* Foundation Inc. 59 Temple Place - Suite 330 Boston MA 02111-1307 USA.
*/
#ifdef HAVE_CONFIG_H
# include “config.h“
#endif
#ifdef HAVE_AIRPCAP
#ifdef HAVE_LIBPCAP
#include
#include
#include
#include
#endif
#include
#include
#include
#include
#include
#include
#include
#include “capture_ui_utils.h“
#include “simple_dialog.h“
#include
#include “airpcap_loader.h“
/*
* Set to TRUE if the DLL was successfully loaded AND all functions
* are present.
*/
static gboolean AirpcapLoaded = FALSE;
#ifdef _WIN32
/*
* We load dynamically the dag library in order link it only when
* it‘s present on the system
*/
static void * AirpcapLib = NULL;
static AirpcapGetLastErrorHandler g_PAirpcapGetLastError;
static AirpcapSetKernelBufferHandler g_PAirpcapSetKernelBuffer;
static AirpcapSetFilterHandler g_PAirpcapSetFilter;
static AirpcapGetMacAddressHandler g_PAirpcapGetMacAddress;
static AirpcapSetMinToCopyHandler g_PAirpcapSetMinToCopy;
static AirpcapGetReadEventHandler g_PAirpcapGetReadEvent;
static AirpcapReadHandler g_PAirpcapRead;
static AirpcapGetStatsHandler g_PAirpcapGetStats;
#endif
static int AirpcapVersion = 3;
static AirpcapGetDeviceListHandler g_PAirpcapGetDeviceList;
static AirpcapFreeDeviceListHandler g_PAirpcapFreeDeviceList;
static AirpcapOpenHandler g_PAirpcapOpen;
static AirpcapCloseHandler g_PAirpcapClose;
static AirpcapGetlinkTypeHandler g_PAirpcapGetlinkType;
static AirpcapSetlinkTypeHandler g_PAirpcapSetlinkType;
static AirpcapTurnLedOnHandler g_PAirpcapTurnLedOn;
static AirpcapTurnLedOffHandler g_PAirpcapTurnLedOff;
static AirpcapGetDeviceChannelHandler g_PAirpcapGetDeviceChannel;
static AirpcapSetDeviceChannelHandler g_PAirpcapSetDeviceChannel;
static AirpcapGetFcsPresenceHandler g_PAirpcapGetFcsPresence;
static AirpcapSetFcsPresenceHandler g_PAirpcapSetFcsPresence;
static AirpcapGetFcsValidationHandler g_PAir
评论
共有 条评论