diff options
| author | Jeffrey Armstrong <jeffrey.armstrong@approximatrix.com> | 2017-02-25 09:18:47 -0500 |
|---|---|---|
| committer | Jeffrey Armstrong <jeffrey.armstrong@approximatrix.com> | 2017-02-25 09:18:47 -0500 |
| commit | 40ca2e594fa15e70aba00f0b5b6764ce175ade6c (patch) | |
| tree | fb6d091116d66fa86d113e2ad01fb468c75cb92e /dos/mainutil.h | |
| parent | eeefdbba6d8c3e34bf215c484ac2b5879759cafd (diff) | |
| download | uIP-FOSSIL-add-telnet.tar.gz uIP-FOSSIL-add-telnet.zip | |
Initial, non-working telnet commitadd-telnet
Diffstat (limited to 'dos/mainutil.h')
| -rw-r--r-- | dos/mainutil.h | 16 |
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 |
