Get ignored interfaces from environment

Add several functions to get a comma separated string from environment,
and parse the string into a set.

Tested: Verify the unit tests passes.

Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: I0dd7270d9882cf6fa3ce73d8eac516ae42c61fc0
diff --git a/util.hpp b/util.hpp
index f9eb0e2..9c180ee 100644
--- a/util.hpp
+++ b/util.hpp
@@ -168,6 +168,15 @@
  */
 void executeCommandinChildProcess(const char* path, char** args);
 
+/** @brief Get ignored interfaces from environment */
+std::string getIgnoredInterfacesEnv();
+
+/** @brief Parse the comma separated interface names */
+std::set<std::string> parseInterfaces(const std::string& interfaces);
+
+/** @brief Get the ignored interfaces */
+const std::set<std::string>& getIgnoredInterfaces();
+
 } // namespace internal
 
 /* @brief runs the given command in child process.