diff options
author | imarom <imarom@cisco.com> | 2016-12-12 19:26:24 +0200 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-12-12 19:26:24 +0200 |
commit | 0c45815234abbb79b147b8093eb19e274ee65f52 (patch) | |
tree | a604b3865f201e1fe841bca3a10e8f86e3248186 /src/trex_port_attr.cpp | |
parent | af9f439b2bf768f9168cecac2488b4c718ab783f (diff) |
grat ARP
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'src/trex_port_attr.cpp')
-rw-r--r-- | src/trex_port_attr.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
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) { |