summaryrefslogtreecommitdiff
path: root/dos/mainutil.h
blob: 1174a72a21200b3c7400310b148dfb5e3f2b4207 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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__ */