diff options
author | Hanoh Haim <hhaim@cisco.com> | 2016-11-13 14:07:02 +0200 |
---|---|---|
committer | Hanoh Haim <hhaim@cisco.com> | 2016-11-13 15:03:21 +0200 |
commit | ec26c23ed16ba6804a53760569c846dc472d8e5c (patch) | |
tree | 8dbfdfa74de12e1413475f71db5e20d105f6036f | |
parent | 235aac5097b60d0b1b3e2358613e82e4de2e5875 (diff) |
add a way to dump debug packets
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
-rw-r--r-- | src/debug.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/debug.cpp b/src/debug.cpp index 86ed0df0..8ec4f136 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -141,6 +141,11 @@ rte_mbuf_t *CTrexDebug::create_test_pkt(int ip_ver, uint16_t l4_proto, uint8_t t } pkt = CTestPktGen::create_test_pkt(l3_type, l4_proto, ttl, ip_id, flags, 1000, pkt_size); + + /* DEBUG print the packet + utl_k12_pkt_format(stdout,pkt, pkt_size) ; + */ + m = CGlobalInfo::pktmbuf_alloc(0, pkt_size); if ( unlikely(m == 0) ) { printf("ERROR no packets \n"); |