From ea2646501e91437345afd1cfc85704dd1f983d66 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Tue, 16 Jan 2018 09:31:00 -0800 Subject: Added support for MegaWiFi command IP_CURRENT --- net.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 net.h (limited to 'net.h') 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 + +typedef struct { + uint8_t ip[4]; + uint8_t net_mask[4]; +} iface_info; + +uint8_t get_host_address(iface_info *out); + +#endif //NET_H_ -- cgit v1.2.3