diff options
author | imarom <imarom@cisco.com> | 2016-11-28 16:47:41 +0200 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-11-28 16:47:41 +0200 |
commit | 25be508c9922f558552b950fb25599826b1b8308 (patch) | |
tree | 70b4f12457bbf9c07617767f2602713c7401f385 /src/rpc-server | |
parent | 537f5831c4400dea7fa15032c4cd6bd2fae86bb1 (diff) |
self code review
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'src/rpc-server')
-rw-r--r-- | src/rpc-server/commands/trex_rpc_cmd_general.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rpc-server/commands/trex_rpc_cmd_general.cpp b/src/rpc-server/commands/trex_rpc_cmd_general.cpp index 11dd99bd..ccdcbd8c 100644 --- a/src/rpc-server/commands/trex_rpc_cmd_general.cpp +++ b/src/rpc-server/commands/trex_rpc_cmd_general.cpp @@ -385,10 +385,10 @@ TrexRpcCmdSetPortAttr::parse_dest(const Json::Value &msg, uint8_t port_id, Json: uint8_t mac[6]; if (utl_ipv4_to_uint32(addr.c_str(), ipv4_addr)) { - port_attr->get_dest().set_dest_ipv4(ipv4_addr); + port_attr->get_dest().set_dest(ipv4_addr); } else if (utl_str_to_macaddr(addr, mac)) { - port_attr->get_dest().set_dest_mac(mac); + port_attr->get_dest().set_dest(mac); } else { std::stringstream ss; @@ -850,7 +850,7 @@ TrexRpcCmdSetARPRes::_run(const Json::Value ¶ms, Json::Value &result) { generate_parse_err(result, ss.str()); } - port->getPortAttrObj()->get_dest().set_dest_ipv4(ipv4_addr, mac); + port->getPortAttrObj()->get_dest().set_dest(ipv4_addr, mac); return (TREX_RPC_CMD_OK); |