summaryrefslogtreecommitdiff
path: root/net.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2018-01-16 09:31:00 -0800
committerMichael Pavone <pavone@retrodev.com>2018-01-16 09:31:00 -0800
commitea2646501e91437345afd1cfc85704dd1f983d66 (patch)
tree7234aff97fec4fa9c1214afdfe67aed6b0ff0313 /net.h
parentd85bd0c9435bbcab8b63b07652a01e4e5a4a6eaf (diff)
Added support for MegaWiFi command IP_CURRENT
Diffstat (limited to 'net.h')
-rw-r--r--net.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/net.h b/net.h
new file mode 100644
index 0000000..bcd5ca6
--- /dev/null
+++ b/net.h
@@ -0,0 +1,12 @@
+#ifndef NET_H_
+#define NET_H_
+#include <stdint.h>
+
+typedef struct {
+ uint8_t ip[4];
+ uint8_t net_mask[4];
+} iface_info;
+
+uint8_t get_host_address(iface_info *out);
+
+#endif //NET_H_