moved stuff to where it belongs
diff --git a/aos/common/util/inet_addr.cc b/aos/common/util/inet_addr.cc
new file mode 100644
index 0000000..a83ecf9
--- /dev/null
+++ b/aos/common/util/inet_addr.cc
@@ -0,0 +1,31 @@
+#include "aos/common/util/inet_addr.h"
+
+#include <stdlib.h>
+#ifndef __VXWORKS__
+#include <string.h>
+#endif
+
+namespace aos {
+namespace util {
+
+const char *MakeIPAddress(const in_addr &base_address,
+                          ::aos::NetworkAddress last_segment) {
+  in_addr address = base_address;
+  SetLastSegment(&address, last_segment);
+
+#ifdef __VXWORKS__
+  char *r = static_cast<char *>(malloc(INET_ADDR_LEN));
+  inet_ntoa_b(address, r);
+  return r;
+#else
+  return strdup(inet_ntoa(address));
+#endif
+}
+
+void SetLastSegment(in_addr *address, ::aos::NetworkAddress last_segment) {
+  address->s_addr &= ~(htonl(0xFF));
+  address->s_addr |= htonl(static_cast<uint8_t>(last_segment));
+}
+
+}  // namespace util
+}  // namespace aos