summaryrefslogtreecommitdiffstats
path: root/src/trex_port_attr.h
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-12-06 15:29:55 +0200
committerimarom <imarom@cisco.com>2016-12-06 15:31:28 +0200
commit0074ceeed2aa9ecafbbd8a71dc42d4bee1b34ffb (patch)
tree005a24d1465b0fc18825770367e39ea94ede15b9 /src/trex_port_attr.h
parentcf72305f2f5632f977d2596db4c912100b438e1f (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-xsrc/trex_port_attr.h5
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: