add test fo receive and sending packets
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#ifndef TINSNETWORKINTERFACECARD_H
|
||||
#define TINSNETWORKINTERFACECARD_H
|
||||
|
||||
#include <atomic>
|
||||
#include "TinsNetworkInterfaceCard_t.h"
|
||||
#include "INetworkInterfaceCard_t.h"
|
||||
#include "INetworkInterfaceCard.h"
|
||||
@@ -24,17 +25,24 @@ public:
|
||||
virtual void startListen() override;
|
||||
virtual void stopListen() override;
|
||||
|
||||
Tins::SnifferConfiguration & getSnifferConfig() const;
|
||||
SPtrIPacketHandlerList & getHandlerList();
|
||||
bool isSniffRunning() const;
|
||||
|
||||
private:
|
||||
|
||||
Tins::PDU * getPhyLessPduPtr(IN Tins::PDU & pdu) const;
|
||||
bool tinsSnifferCallback(IN Tins::PDU & some_pdu);
|
||||
Tins::PDU * getPhyLessPduPtr(IN Tins::PDU & pdu) const;
|
||||
void addPduToHashList(IN Tins::PDU &pdu);
|
||||
bool searchAndRemoveHashListItem(IN const std::size_t removedHash);
|
||||
|
||||
UPtrSniffer sniffer;
|
||||
UPtrSnifferConfiguration snifferConfig;
|
||||
UPtrPacketSender packetSender;
|
||||
static ByteVectorHash byteVectorHash;
|
||||
UPtrHashList sendPduHashList;
|
||||
UPtrMutex hashListMutex;
|
||||
std::atomic<bool> isSnifferRunning;
|
||||
SPtrIPacketHandlerList handlerList;
|
||||
std::string sniffNetworkInterfaceName;
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user