Testnet WIP

This commit is contained in:
Adam Ierymenko
2014-10-27 09:03:38 -07:00
parent 8672ca9cf8
commit 6a94a4a51b
2 changed files with 100 additions and 13 deletions

View File

@@ -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];