Add AX.25 packet tracking.

This commit is contained in:
Jonathan Naylor
2020-06-18 12:51:13 +01:00
parent b3398710bc
commit d9e2940f08
9 changed files with 175 additions and 28 deletions

View File

@@ -25,7 +25,7 @@
class CAX25Control {
public:
CAX25Control(CAX25Network* network);
CAX25Control(CAX25Network* network, bool trace);
~CAX25Control();
bool writeModem(unsigned char* data, unsigned int len);
@@ -34,9 +34,13 @@ public:
private:
CAX25Network* m_network;
bool m_trace;
bool m_enabled;
FILE* m_fp;
bool isUI(const unsigned char* data, unsigned int length) const;
void decode(const unsigned char* data, unsigned int length);
bool decodeAddress(const unsigned char* data, std::string& text, bool isDigi = false) const;
bool openFile();
bool writeFile(const unsigned char* data, unsigned int length);
void closeFile();