资源简介
wireshark-2.0.2.tar.bz2
代码片段和文件信息
/* capture_stop_conditions.c
* Implementation for ‘stop condition handler‘.
*
* Wireshark - Network traffic analyzer
* By Gerald Combs
* Copyright 1998 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. 51 Franklin Street Fifth Floor Boston MA 02110-1301 USA.
*/
#include
#include
#include
#include
#include
#include
#include “conditions.h“
#include “capture_stop_conditions.h“
/* predefined classes function prototypes */
static condition* _cnd_constr_timeout(condition* va_list);
static void _cnd_destr_timeout(condition*);
static gboolean _cnd_eval_timeout(condition* va_list);
static void _cnd_reset_timeout(condition*);
static condition* _cnd_constr_capturesize(condition* va_list);
static void _cnd_destr_capturesize(condition*);
static gboolean _cnd_eval_capturesize(condition* va_list);
static void _cnd_reset_capturesize(condition*);
void init_capture_stop_conditions(void){
cnd_register_class(CND_CLASS_TIMEOUT
_cnd_constr_timeout
_cnd_destr_timeout
_cnd_eval_timeout
_cnd_reset_timeout);
cnd_register_class(CND_CLASS_CAPTURESIZE
_cnd_constr_capturesize
_cnd_destr_capturesize
_cnd_eval_capturesize
_cnd_reset_capturesize);
} /* END init_capture_stop_conditions() */
void cleanup_capture_stop_conditions(void){
cnd_unregister_class(CND_CLASS_TIMEOUT);
cnd_unregister_class(CND_CLASS_CAPTURESIZE);
} /* END cleanup_capture_stop_conditions() */
/*****************************************************************************/
/* Predefined condition ‘timeout‘. */
/* class id */
const char* CND_CLASS_TIMEOUT = “cnd_class_timeout“;
/* structure that contains user supplied data for this condition */
typedef struct _cnd_timeout_dat{
time_t start_time;
gint32 timeout_s;
}cnd_timeout_dat;
/*
* Constructs new condition for timeout check. This function is invoked by
* ‘cnd_new()‘ in order to perform class specific initialization.
*
* parameter: cnd - Pointer to condition passed by ‘cnd_new()‘.
* ap - Pointer to user supplied arguments list for this
* constructor.
* returns: Pointer to con
- 上一篇:猎豹 WiFi 免安装去广告绿色版
- 下一篇:教学课件ppt.rar
相关资源
- Wireshark 数据包分析实战(第2版)[带
- wireshark老版本1.12
- Wireshark-win32-1.10.0 适用xp
- 计算机网络自顶向下方法原书第6版正
- Wireshark 数据包分析实战(第2版)
- Wireshark-win64-2.2.6
- Wireshark网络数据截包软件
- [Wireshark]Practical Packet.Analysis.3rd.Editi
- wireshark-1.12.12
- Wireshark_win64_1.12.8.exe
- wireshark中文版
- Wireshark数据包分析实战第二版带随书
- Wireshark数据包分析实战第二版
- Wireshark数据包分析实战( 第二版_高清
- Wireshark网络分析实战.pdf Wireshark 数据
- wireshark使用教程
- Wireshark
- Wireshark-win64-3.2.4.rar
- Wireshark-win64-3.2.5.exe
- wireshark网络分析实战高清pdf中文带目
- Wireshark-2.6.1.rar
- Wireshark数据包分析实战 高清扫描版
- 抓包的三软件博文
- 抓包源文件573个 主流协议你想要的都
- wireshark 路由协议分析
- Wireshark抓包分析POP3和SMTP协议
- 实验:利用Wireshark分析DHCP协议
- LTE S1接口wireshark抓包 attach流程
- Wireshark抓包分析 DNS和HTTP协议.
- Wireshark抓包qq分析.doc
评论
共有 条评论