summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2017-02-05 11:42:58 +0200
committerimarom <imarom@cisco.com>2017-02-07 14:25:49 +0200
commit836996ff1ec7d9e60461221e1e811895e39caa6e (patch)
treead382e85c93dff76845cf26b95afc9ebf2b76e65 /src
parentd3c7c3980c60598ddd3e1da4144a6df32893f3c9 (diff)
fix for:
https://trex-tgn.cisco.com/youtrack/issue/trex-342 Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/trex_port_attr.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}
}