1 Star 0 Fork 0

202108010516-曾蕴焘/oflops

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
oflops_pcap.h 629 Bytes
一键复制 编辑 原始数据 按行查看 历史
haris 提交于 2011-02-08 21:09 . integrating work at t-labs with main code
#ifndef OFLOPS_PCAP_H
#define OFLOPS_PCAP_H
#include <pcap.h>
struct pcap_event;
#include "test_module.h"
typedef struct pcap_event {
struct pcap_pkthdr pcaphdr;
// NOTE: full packet capture NOT guaranteed; need to check pcaphdr to see
// how much was captured
unsigned char * data;
} pcap_event;
// Silly hack to get around how pcap_dispatch() works
// must be a nicer way, but... <shrug>
struct pcap_event_wrapper
{
pcap_event *pe;
};
void pcap_event_free(pcap_event * pe);
// a pcap_handler
void oflops_pcap_handler(u_char * pcap_event_wrapper_arg, const struct pcap_pkthdr *h, const u_char *bytes);
#endif
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zeng-yuntao/oflops.git
git@gitee.com:zeng-yuntao/oflops.git
zeng-yuntao
oflops
oflops
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385