refactored the IP address handling code
It is now split up much more cleanly, has less stuff running on the
cRIO, and doesn't do as much of the stuff with string manipulation.
Before, it was kind of ridicilous how many times the code converted IP
addresses back and forth between 32-bit ints and strings to do various
manipulations and pass them around. Also, there was various junk that
the cRIO code did that it did not need to be doing.
diff --git a/aos/crio/ip.h b/aos/crio/ip.h
new file mode 100644
index 0000000..c1bc457
--- /dev/null
+++ b/aos/crio/ip.h
@@ -0,0 +1,18 @@
+#ifndef AOS_CRIO_IP_H_
+#define AOS_CRIO_IP_H_
+
+#include <inetLib.h>
+
+#include "aos/aos_stdint.h"
+
+namespace aos {
+namespace util {
+
+// Retrieves the IP address of this cRIO and stores it in *address.
+// Loops infinitely until it succeeds.
+in_addr GetOwnIPAddress();
+
+} // namespace util
+} // namespace aos
+
+#endif // AOS_CRIO_IP_H_