1 /**	$MirOS: src/sys/lib/libsa/globals.c,v 1.2 2005/03/06 21:28:07 tg Exp $ */
2 /*	$OpenBSD: globals.c,v 1.3 1996/09/23 14:18:54 mickey Exp $	*/
3 /*	$NetBSD: globals.c,v 1.3 1995/09/18 21:19:27 pk Exp $	*/
4 
5 /*
6  *	globals.c:
7  *
8  *	global variables should be separate, so nothing else
9  *	must be included extraneously.
10  */
11 
12 #include <sys/param.h>
13 #include <sys/socket.h>
14 #include <net/if.h>
15 #include <netinet/in.h>
16 #include <netinet/in_systm.h>
17 
18 #include "stand.h"
19 #include "net.h"
20 
21 u_char	bcea[6] = BA;			/* broadcast ethernet address */
22 
23 char	rootpath[FNAME_SIZE] = "/";	/* root mount path */
24 char	bootfile[FNAME_SIZE];		/* bootp says to boot this */
25 char	hostname[FNAME_SIZE];		/* our hostname */
26 int	hostnamelen;
27 char	domainname[1];			/* our YP domain */
28 int	domainnamelen;
29 char	ifname[IFNAME_SIZE];		/* name of interface (e.g. "le0") */
30 struct	in_addr myip;			/* my ip address */
31 struct	in_addr nameip;			/* DNS server ip address */
32 struct	in_addr rootip;			/* root ip address */
33 struct	in_addr swapip;			/* swap ip address */
34 struct	in_addr gateip;			/* swap ip address */
35 n_long	netmask = 0xffffff00;		/* subnet or net mask */
36