summaryrefslogtreecommitdiffstats
path: root/src/debug.cpp
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2016-09-25 16:58:02 +0300
committerIdo Barnea <ibarnea@cisco.com>2016-10-05 10:45:28 +0300
commita42bf7bc43e78e63c266c22cccf15ce3f4cab297 (patch)
treebf8c61d079f7aa8e94ae6f82262923da92019ced /src/debug.cpp
parentaf781231f369dfcf735b499ed65b800e7d6b5537 (diff)
pre test: Periodically send gratuitous ARP in stateful
Diffstat (limited to 'src/debug.cpp')
-rw-r--r--src/debug.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/debug.cpp b/src/debug.cpp
index 2e7eb5db..5abdbdc6 100644
--- a/src/debug.cpp
+++ b/src/debug.cpp
@@ -123,7 +123,6 @@ rte_mbuf_t *CTrexDebug::create_test_pkt(int ip_ver, uint16_t l4_proto, uint8_t t
char *pkt;
rte_mbuf_t *m;
char *p;
- CTestPktGen gen;
uint16_t l3_type;
switch (ip_ver) {
@@ -141,7 +140,7 @@ rte_mbuf_t *CTrexDebug::create_test_pkt(int ip_ver, uint16_t l4_proto, uint8_t t
break;
}
- pkt = gen.create_test_pkt(l3_type, l4_proto, ttl, ip_id, flags, 1000, pkt_size);
+ pkt = CTestPktGen::create_test_pkt(l3_type, l4_proto, ttl, ip_id, flags, 1000, pkt_size);
m = CGlobalInfo::pktmbuf_alloc(0, pkt_size);
if ( unlikely(m == 0) ) {
printf("ERROR no packets \n");