summaryrefslogtreecommitdiff
path: root/net.h
diff options
context:
space:
mode:
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_