From 0c45815234abbb79b147b8093eb19e274ee65f52 Mon Sep 17 00:00:00 2001 From: imarom Date: Mon, 12 Dec 2016 19:26:24 +0200 Subject: grat ARP Signed-off-by: imarom --- src/trex_port_attr.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/trex_port_attr.cpp') diff --git a/src/trex_port_attr.cpp b/src/trex_port_attr.cpp index 0ecbc2c4..2a68fcb9 100644 --- a/src/trex_port_attr.cpp +++ b/src/trex_port_attr.cpp @@ -99,7 +99,14 @@ TRexPortAttr::get_src_mac() const { return CGlobalInfo::m_options.get_src_mac_addr(m_port_id); } - +void +TRexPortAttr::set_src_ipv4(uint32_t addr) { + m_src_ipv4 = addr; + + /* when IP source changes - consider this as link down */ + m_dest.on_link_down(); +} + std::string TRexPortAttr::get_rx_filter_mode() const { switch (m_rx_filter_mode) { -- cgit 1.2.3-korg