aboutsummaryrefslogtreecommitdiff
path: root/firmwares/wifishield/wifiHD/src/lwip_setup.h
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2012-09-13 10:41:16 -0400
committerDavid A. Mellis <d.mellis@arduino.cc>2012-09-13 10:41:16 -0400
commit0d9a111face4f3629bcae8e52af843792af3b453 (patch)
tree7cc1b8c1b0c1acb7c90a75f258ce036dac494b17 /firmwares/wifishield/wifiHD/src/lwip_setup.h
Moving into firmwares directory.
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 */