From 836996ff1ec7d9e60461221e1e811895e39caa6e Mon Sep 17 00:00:00 2001 From: imarom Date: Sun, 5 Feb 2017 11:42:58 +0200 Subject: fix for: https://trex-tgn.cisco.com/youtrack/issue/trex-342 Signed-off-by: imarom --- src/trex_port_attr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); } } -- cgit 1.2.3-korg