summaryrefslogtreecommitdiff
path: root/testnet
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-10-27 09:03:38 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-10-27 09:03:38 -0700
commit6a94a4a51b44eede88971b6be699abf60eca716c (patch)
treefe1e6783494a5767d0a1d46352621a9472f711f8 /testnet
parent8672ca9cf8b7f065c8e9faa134e5af0683e9f416 (diff)
downloadinfinitytier-6a94a4a51b44eede88971b6be699abf60eca716c.tar.gz
infinitytier-6a94a4a51b44eede88971b6be699abf60eca716c.zip
Testnet WIP
Diffstat (limited to 'testnet')
-rw-r--r--testnet/TestEthernetTap.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/testnet/TestEthernetTap.hpp b/testnet/TestEthernetTap.hpp
index e7eae702..b7f79aca 100644
--- a/testnet/TestEthernetTap.hpp
+++ b/testnet/TestEthernetTap.hpp
@@ -63,17 +63,20 @@ class TestEthernetTap : public EthernetTap
public:
struct TestFrame
{
- TestFrame() : from(),to(),etherType(0),len(0) {}
+ TestFrame() : from(),to(),timestamp(0),etherType(0),len(0) {}
TestFrame(const MAC &f,const MAC &t,const void *d,unsigned int et,unsigned int l) :
from(f),
to(t),
+ timestamp(Utils::now()),
etherType(et),
len(l)
{
memcpy(data,d,l);
}
+
MAC from;
MAC to;
+ uint64_t timestamp;
unsigned int etherType;
unsigned int len;
char data[4096];