aboutsummaryrefslogtreecommitdiff
path: root/firmwares/wifishield/wifiHD/src/lwip_setup.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmwares/wifishield/wifiHD/src/lwip_setup.h')
-rw-r--r--firmwares/wifishield/wifiHD/src/lwip_setup.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/firmwares/wifishield/wifiHD/src/lwip_setup.h b/firmwares/wifishield/wifiHD/src/lwip_setup.h
new file mode 100644
index 0000000..7a3ec6f
--- /dev/null
+++ b/firmwares/wifishield/wifiHD/src/lwip_setup.h
@@ -0,0 +1,21 @@
+#ifndef _LWIP_SETUP_H
+#define _LWIP_SETUP_H
+
+struct net_cfg {
+ struct netif *netif; /* lwip network interface */
+ uint8_t dhcp_enabled;
+ uint8_t dhcp_running;
+};
+
+/*! Start the IP stack.
+ * If cfg->netif must have been allocated and lwip_init()
+ * must have been called before this function is called
+ * (since the IP stack may have to be polled before this
+ * function can be called).
+ */
+int start_ip_stack(struct net_cfg *cfg,
+ struct ip_addr ipaddr,
+ struct ip_addr netmask,
+ struct ip_addr gw);
+
+#endif /* _LWIP_SETUP_H */