diff options
author | 2016-05-03 16:02:04 +0300 | |
---|---|---|
committer | 2016-05-03 16:02:04 +0300 | |
commit | 719054b1520da67ced27f1a346e27fbee88e4b34 (patch) | |
tree | 1f7defd7a57b2490772ea9e31ca3489444ca6541 | |
parent | 9433af9c0a6dea68a14076c48446c59f2a2e9746 (diff) |
Fix bug on mac replacement by Wenxian
-rw-r--r-- | src/main_dpdk.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main_dpdk.cpp b/src/main_dpdk.cpp index 1496513d..771c59b3 100644 --- a/src/main_dpdk.cpp +++ b/src/main_dpdk.cpp @@ -1985,7 +1985,7 @@ void CCoreEthIF::update_mac_addr(CGenNode * node,uint8_t *p){ if ( unlikely( CGlobalInfo::m_options.preview.get_mac_ip_mapping_enable() ) ) { /* mac mapping file is configured */ - if (node->m_src_mac.inused==INUSED) { + if (if (node->is_initiator_pkt() && (node->m_src_mac.inused==INUSED)) { memcpy(p+6, &node->m_src_mac.mac, sizeof(uint8_t)*6); } } else if ( unlikely( CGlobalInfo::m_options.preview.get_mac_ip_overide_enable() ) ){ |