summaryrefslogtreecommitdiff
path: root/dos/mainutil.h
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2017-02-25 09:18:47 -0500
committerJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2017-02-25 09:18:47 -0500
commit40ca2e594fa15e70aba00f0b5b6764ce175ade6c (patch)
treefb6d091116d66fa86d113e2ad01fb468c75cb92e /dos/mainutil.h
parenteeefdbba6d8c3e34bf215c484ac2b5879759cafd (diff)
downloaduIP-FOSSIL-40ca2e594fa15e70aba00f0b5b6764ce175ade6c.tar.gz
uIP-FOSSIL-40ca2e594fa15e70aba00f0b5b6764ce175ade6c.zip
Initial, non-working telnet commitadd-telnet
Diffstat (limited to 'dos/mainutil.h')
-rw-r--r--dos/mainutil.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/dos/mainutil.h b/dos/mainutil.h
new file mode 100644
index 0000000..1174a72
--- /dev/null
+++ b/dos/mainutil.h
@@ -0,0 +1,16 @@
+#ifndef __MAINUTIL_H__
+#define __MAINUTIL_H__
+
+/* Initializes uIP, SLIP and the FOSSIL driver. Designed to
+ * basically accept program arguments as-is.
+ */
+int common_init(char *host_ip, char *local_ip, char *netmask,
+ char *fos_port, char *fos_speed);
+
+/* Converts IPv4 string to 4 integers */
+int ip_from_string(const char *string, int ip[4]);
+
+/* A uIP log-to-screen routine that is silent unless DEBUG is defined */
+void uip_log(char *m);
+
+#endif /* __MAINUTIL_H__ */ \ No newline at end of file