From ec26c23ed16ba6804a53760569c846dc472d8e5c Mon Sep 17 00:00:00 2001 From: Hanoh Haim Date: Sun, 13 Nov 2016 14:07:02 +0200 Subject: add a way to dump debug packets Signed-off-by: Hanoh Haim --- src/debug.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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"); -- cgit 1.2.3-korg