diff options
author | imarom <imarom@cisco.com> | 2016-11-16 17:26:59 +0200 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-11-16 17:26:59 +0200 |
commit | e46e3f598e52112b9db21d6faabde7a5c87341cb (patch) | |
tree | 1d2879e82277bfe17788c788ddcf4584f1be42e1 /src/trex_port_attr.cpp | |
parent | 558ce764c2a5feaf376b562e455a2e9c1115701a (diff) |
RX features - ARP resolve
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'src/trex_port_attr.cpp')
-rw-r--r-- | src/trex_port_attr.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/trex_port_attr.cpp b/src/trex_port_attr.cpp index 08e151b6..26199e33 100644 --- a/src/trex_port_attr.cpp +++ b/src/trex_port_attr.cpp @@ -20,6 +20,12 @@ limitations under the License. const uint8_t DestAttr::g_dummy_mac[6] = {0x0,0x0,0x0,0x1,0x0,0x0}; +DestAttr::DestAttr(uint8_t port_id) { + m_port_id = port_id; + + m_mac = CGlobalInfo::m_options.m_mac_addr[port_id].u.m_mac.dest; +} + const uint8_t * TRexPortAttr::get_src_mac() const { return CGlobalInfo::m_options.get_src_mac_addr(m_port_id); |