capture 1.2.0
这是一个基于 PcapPlusPlus、PF_RING 和 ClickHouse 构建的高性能网络流量分析系统,专注于实时流量捕获、解析与存储。
Loading...
Searching...
No Matches
flowUniAttr.h File Reference

网络流量分析的流统一属性 More...

#include <vector>
#include <unordered_map>
#include <functional>
#include <sstream>
#include "TcpLayer.h"
#include <UdpLayer.h>
#include "IPv4Layer.h"
#include "PayloadLayer.h"
#include "PacketUtils.h"
#include "SystemUtils.h"
#include <ctime>
#include <fstream>
#include <headers/unifiedPacketAttr.h>
Include dependency graph for flowUniAttr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  flowUniAttr
 存储网络流统一属性的结构体 More...
class  operator_UniAttr
 处理网络包并提取流级属性的类 More...

Macros

#define MAX_SIZE_PAC_LEN   100
 每个流会话的最大包数

Functions

template<typename T>
void sequence_to_csv (const std::vector< T > &seq, std::ofstream &outputF)
 将向量序列转换为CSV格式的模板函数

Detailed Description

网络流量分析的流统一属性

从分支all_flow_level operatorUniAttr.h修改而来。此文件定义了以统一方式处理网络流属性的结构和类。 它提供了从网络包中提取、存储和导出流级统计信息的功能。

Author
网络流量分析团队
Date
2024
Version
1.0

Macro Definition Documentation

◆ MAX_SIZE_PAC_LEN

#define MAX_SIZE_PAC_LEN   100

每个流会话的最大包数

定义单个网络流可以存储的包数量上限,以防止过度内存使用

Function Documentation

◆ sequence_to_csv()

template<typename T>
void sequence_to_csv ( const std::vector< T > & seq,
std::ofstream & outputF )

将向量序列转换为CSV格式的模板函数

Template Parameters
T向量中元素的类型
Parameters
seq要转换的向量序列
outputF写入CSV数据的输出文件流

将向量的每个元素后跟逗号写入输出流