diff options
author | imarom <imarom@cisco.com> | 2016-12-06 15:29:55 +0200 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-12-06 15:31:28 +0200 |
commit | 0074ceeed2aa9ecafbbd8a71dc42d4bee1b34ffb (patch) | |
tree | 005a24d1465b0fc18825770367e39ea94ede15b9 /src/trex_port_attr.h | |
parent | cf72305f2f5632f977d2596db4c912100b438e1f (diff) |
RX features phase 2 - ARP and ICMP self response
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'src/trex_port_attr.h')
-rwxr-xr-x | src/trex_port_attr.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/trex_port_attr.h b/src/trex_port_attr.h index 3cb9beff..ae397430 100755 --- a/src/trex_port_attr.h +++ b/src/trex_port_attr.h @@ -134,7 +134,7 @@ public: virtual void get_description(std::string &description) { description = intf_info_st.description; } virtual void get_supported_speeds(supp_speeds_t &supp_speeds) = 0; - uint32_t get_src_ipv4() {return m_src_ipv4;} + uint32_t get_src_ipv4() const {return m_src_ipv4;} DestAttr & get_dest() {return m_dest;} const uint8_t *get_src_mac() const; @@ -161,6 +161,9 @@ public: /* dump object status to JSON */ void to_json(Json::Value &output); + uint8_t get_port_id() const { + return m_port_id; + } protected: |