diff options
author | Ido Barnea <ibarnea@cisco.com> | 2017-03-16 16:35:42 +0200 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2017-03-16 16:38:28 +0200 |
commit | 0d3f6dff2af1325c4e5cf8143e4f4567c30c159e (patch) | |
tree | c7066e7ebb60df75674fc281f0a060ea2dc28001 /src/pre_test.cpp | |
parent | 284c6cd80086c00a7312f2ccffa686a679620cd3 (diff) |
Fixes for v2.21 --software mode issues
Signed-off-by: Ido Barnea <ibarnea@cisco.com>
Diffstat (limited to 'src/pre_test.cpp')
-rw-r--r-- | src/pre_test.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pre_test.cpp b/src/pre_test.cpp index a72b7e8e..9316d371 100644 --- a/src/pre_test.cpp +++ b/src/pre_test.cpp @@ -211,6 +211,9 @@ void CPretestOnePortInfo::send_arp_req_all() { if (verbose >= 3) { fprintf(stdout, "TX ARP request on port %d - " , m_port_id); (*it)->dump(stdout, ""); + if (verbose >= 7) { + utl_DumpBuffer(stdout, p, rte_pktmbuf_pkt_len(m[0]), 0); + } } num_sent = rte_eth_tx_burst(m_port_id, 0, m, 1); @@ -387,7 +390,7 @@ bool CPretest::is_arp(const uint8_t *p, uint16_t pkt_size, ArpHdr *&arp, uint16_ if (m_ether->getVlanProtocol() != EthernetHeader::Protocol::ARP) { return false; } else { - vlan_tag = m_ether->getVlanTag(); + vlan_tag = m_ether->getVlanTag() & 0xfff; arp = (ArpHdr *)(p + 18); } } @@ -428,6 +431,8 @@ int CPretest::handle_rx(int port_id, int queue_id) { , ip_to_str(ntohl(arp->m_arp_sip)).c_str() , ip_to_str(ntohl(arp->m_arp_tip)).c_str() , vlan_tag); + if (verbose >= 7) + utl_DumpBuffer(stdout, p, rte_pktmbuf_pkt_len(m), 0); } // is this request for our IP? COneIPv4Info *src_addr; |