xref: /titanic_52/usr/src/boot/lib/libstand/globals.c (revision d441b4fef90ace4e2cde952b839d6c4935edd493)
14a5d661aSToomas Soome /*	$NetBSD: globals.c,v 1.3 1995/09/18 21:19:27 pk Exp $	*/
24a5d661aSToomas Soome 
34a5d661aSToomas Soome /*
44a5d661aSToomas Soome  *	globals.c:
54a5d661aSToomas Soome  *
64a5d661aSToomas Soome  *	global variables should be separate, so nothing else
74a5d661aSToomas Soome  *	must be included extraneously.
84a5d661aSToomas Soome  */
94a5d661aSToomas Soome 
104a5d661aSToomas Soome #include <sys/cdefs.h>
114a5d661aSToomas Soome __FBSDID("$FreeBSD$");
124a5d661aSToomas Soome 
134a5d661aSToomas Soome #include <sys/param.h>
144a5d661aSToomas Soome #include <netinet/in.h>
154a5d661aSToomas Soome #include <netinet/in_systm.h>
164a5d661aSToomas Soome 
174a5d661aSToomas Soome #include "stand.h"
184a5d661aSToomas Soome #include "net.h"
194a5d661aSToomas Soome 
204a5d661aSToomas Soome u_char	bcea[6] = BA;			/* broadcast ethernet address */
214a5d661aSToomas Soome 
224a5d661aSToomas Soome char	rootpath[FNAME_SIZE] = "/";	/* root mount path */
234a5d661aSToomas Soome char	bootfile[FNAME_SIZE];		/* bootp says to boot this */
244a5d661aSToomas Soome char	hostname[FNAME_SIZE];		/* our hostname */
254a5d661aSToomas Soome int	hostnamelen;
264a5d661aSToomas Soome char	domainname[FNAME_SIZE];		/* our DNS domain */
274a5d661aSToomas Soome int	domainnamelen;
284a5d661aSToomas Soome char	ifname[IFNAME_SIZE];		/* name of interface (e.g. "le0") */
294a5d661aSToomas Soome struct	in_addr myip;			/* my ip address */
304a5d661aSToomas Soome struct	in_addr nameip;			/* DNS server ip address */
314a5d661aSToomas Soome struct	in_addr rootip;			/* root ip address */
324a5d661aSToomas Soome struct	in_addr swapip;			/* swap ip address */
33*d441b4feSToomas Soome struct	in_addr gateip;			/* gateway ip address */
344a5d661aSToomas Soome n_long	netmask = 0xffffff00;		/* subnet or net mask */
354a5d661aSToomas Soome int	errno;				/* our old friend */
364a5d661aSToomas Soome 
37