mirror of
https://github.com/tnodir/fort
synced 2024-11-17 13:56:44 +00:00
32 lines
773 B
C
32 lines
773 B
C
|
#ifndef FORTCOMMON_H
|
||
|
#define FORTCOMMON_H
|
||
|
|
||
|
#include <QObject>
|
||
|
|
||
|
class FortCommon : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
explicit FortCommon(QObject *parent = nullptr);
|
||
|
|
||
|
static QString deviceName();
|
||
|
|
||
|
static quint32 ioctlSetConf();
|
||
|
static quint32 ioctlSetFlags();
|
||
|
static quint32 ioctlGetLog();
|
||
|
|
||
|
static quint32 bufferSize();
|
||
|
static quint32 logSize(quint32 pathLen);
|
||
|
static quint32 logHeaderSize();
|
||
|
|
||
|
static void logHeaderWrite(char *output,
|
||
|
quint32 remoteIp, quint32 pid,
|
||
|
quint32 pathLen);
|
||
|
static void logHeaderRead(const char *input,
|
||
|
quint32 *remoteIp, quint32 *pid,
|
||
|
quint32 *pathLen);
|
||
|
};
|
||
|
|
||
|
#endif // FORTCOMMON_H
|