From: imarom Date: Sun, 5 Feb 2017 09:42:58 +0000 (+0200) Subject: fix for: X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=836996ff1ec7d9e60461221e1e811895e39caa6e;p=trex.git fix for: https://trex-tgn.cisco.com/youtrack/issue/trex-342 Signed-off-by: imarom --- diff --git a/src/trex_port_attr.cpp b/src/trex_port_attr.cpp index f2c75859..7b68b0dd 100644 --- a/src/trex_port_attr.cpp +++ b/src/trex_port_attr.cpp @@ -112,9 +112,9 @@ void LayerConfig::set_l3_mode(uint32_t src_ipv4, uint32_t dst_ipv4, const uint8_ void LayerConfig::on_link_down() { - m_l2_config.set_state(LayerConfigMAC::STATE_UNCONFIGRED); - + /* on IPv4 only - when the state is resolved, move to unresolved and invalidate the MAC */ if (m_l3_ipv4_config.get_state() == LayerConfigIPv4::STATE_RESOLVED) { + m_l2_config.set_state(LayerConfigMAC::STATE_UNCONFIGRED); m_l3_ipv4_config.set_state(LayerConfigIPv4::STATE_UNRESOLVED); } }