Merge changes from topic "ebpfclat"

* changes:
  ClatUtils - implement hardwareAddressType()
  system/netd/server - add ClatUtils.{cpp,h} skeleton
diff --git a/client/NetdClient.cpp b/client/NetdClient.cpp
index fa45eb0..195c45d 100644
--- a/client/NetdClient.cpp
+++ b/client/NetdClient.cpp
@@ -42,7 +42,7 @@
 namespace {
 
 // Keep this in sync with CMD_BUF_SIZE in FrameworkListener.cpp.
-constexpr size_t MAX_CMD_SIZE = 1024;
+constexpr size_t MAX_CMD_SIZE = 4096;
 
 std::atomic_uint netIdForProcess(NETID_UNSET);
 std::atomic_uint netIdForResolv(NETID_UNSET);
diff --git a/tests/binder_test.cpp b/tests/binder_test.cpp
index bb569e9..ad0dfef 100644
--- a/tests/binder_test.cpp
+++ b/tests/binder_test.cpp
@@ -1222,8 +1222,8 @@
     std::string uidRule = StringPrintf("owner UID match %u", uid);
     std::string perUidChain = StringPrintf("st_clear_caught_%u", uid);
     for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) {
-        EXPECT_FALSE(iptablesRuleExists(binary, STRICT_OUTPUT, uidRule.c_str()));
-        EXPECT_FALSE(iptablesRuleExists(binary, STRICT_CLEAR_CAUGHT, uidRule.c_str()));
+        EXPECT_FALSE(iptablesRuleExists(binary, STRICT_OUTPUT, uidRule));
+        EXPECT_FALSE(iptablesRuleExists(binary, STRICT_CLEAR_CAUGHT, uidRule));
         EXPECT_EQ(0, iptablesRuleLineLength(binary, perUidChain.c_str()));
     }
 }
@@ -1233,8 +1233,8 @@
     std::string uidRule = StringPrintf("owner UID match %u", uid);
     std::string perUidChain = StringPrintf("st_clear_caught_%u", uid);
     for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) {
-        EXPECT_TRUE(iptablesRuleExists(binary, STRICT_OUTPUT, uidRule.c_str()));
-        EXPECT_TRUE(iptablesRuleExists(binary, STRICT_CLEAR_CAUGHT, uidRule.c_str()));
+        EXPECT_TRUE(iptablesRuleExists(binary, STRICT_OUTPUT, uidRule));
+        EXPECT_TRUE(iptablesRuleExists(binary, STRICT_CLEAR_CAUGHT, uidRule));
         EXPECT_TRUE(iptablesRuleExists(binary, perUidChain.c_str(), logRule));
     }
 }
@@ -1244,8 +1244,8 @@
     std::string uidRule = StringPrintf("owner UID match %u", uid);
     std::string perUidChain = StringPrintf("st_clear_caught_%u", uid);
     for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) {
-        EXPECT_TRUE(iptablesRuleExists(binary, STRICT_OUTPUT, uidRule.c_str()));
-        EXPECT_TRUE(iptablesRuleExists(binary, STRICT_CLEAR_CAUGHT, uidRule.c_str()));
+        EXPECT_TRUE(iptablesRuleExists(binary, STRICT_OUTPUT, uidRule));
+        EXPECT_TRUE(iptablesRuleExists(binary, STRICT_CLEAR_CAUGHT, uidRule));
         EXPECT_TRUE(iptablesRuleExists(binary, perUidChain.c_str(), rejectRule));
     }
 }
@@ -1297,7 +1297,7 @@
     std::string cmd = StringPrintf("ps -Af | grep '[0-9] %s'", processName.c_str());
     std::vector<std::string> result;
     for (uint32_t run = 1;;) {
-        result = runCommand(cmd.c_str());
+        result = runCommand(cmd);
         if (result.size() || ++run > maxTries) {
             break;
         }