This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
NG_2024_PacketAnalyzer/packetmanager.h

29 lines
714 B
C
Raw Permalink Normal View History

#ifndef PACKETMANAGER_H
#define PACKETMANAGER_H
#include <QObject>
#include <GeneralUtils.h>
2024-09-06 09:21:24 +00:00
#include <EthLayer.h>
#include <IPv4Layer.h>
#include <IPv6Layer.h>
2024-09-06 09:21:24 +00:00
#include <TcpLayer.h>
#include <HttpLayer.h>
#include <Packet.h>
2024-09-06 09:21:24 +00:00
#include <SystemUtils.h>
class PacketManager : public QObject
{
Q_OBJECT
public:
explicit PacketManager(QObject *parent = nullptr);
static QString getProtocolTypeAsString(pcpp::ProtocolType);
2024-09-06 09:21:24 +00:00
static QString printHttpMethod(pcpp::HttpRequestLayer::HttpMethod);
static QStringList getPacketSourceAndDestination(pcpp::Packet*);
static QString getPacketData(pcpp::RawPacket*);
2024-09-06 09:21:24 +00:00
static QString getTcpFlags(pcpp::TcpLayer*);
signals:
};
#endif // PACKETMANAGER_H