diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/trex_port_attr.cpp | 2 | ||||
-rwxr-xr-x | src/trex_port_attr.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/trex_port_attr.cpp b/src/trex_port_attr.cpp index 26199e33..20b441e2 100644 --- a/src/trex_port_attr.cpp +++ b/src/trex_port_attr.cpp @@ -57,7 +57,7 @@ TRexPortAttr::to_json(Json::Value &output) { if (get_src_ipv4() != 0) { output["src_ipv4"] = utl_uint32_to_ipv4(get_src_ipv4()); } else { - output["src_ipv4"] = "none"; + output["src_ipv4"] = Json::nullValue; } diff --git a/src/trex_port_attr.h b/src/trex_port_attr.h index eb7c85de..95050d1b 100755 --- a/src/trex_port_attr.h +++ b/src/trex_port_attr.h @@ -126,7 +126,7 @@ public: if (is_resolved()) { output["arp"] = utl_macaddr_to_str(m_mac); } else { - output["arp"] = "none"; + output["arp"] = Json::nullValue; } break; |