xref: /titanic_51/usr/src/boot/lib/libstand/globals.c (revision 18609d046724d400daf6919e6616533da142e95f)
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;
28*18609d04SToomas Soome int	netproto = NET_NONE;		/* Network prototol */
294a5d661aSToomas Soome char	ifname[IFNAME_SIZE];		/* name of interface (e.g. "le0") */
304a5d661aSToomas Soome struct	in_addr myip;			/* my ip address */
314a5d661aSToomas Soome struct	in_addr nameip;			/* DNS server ip address */
324a5d661aSToomas Soome struct	in_addr rootip;			/* root ip address */
334a5d661aSToomas Soome struct	in_addr swapip;			/* swap ip address */
34d441b4feSToomas Soome struct	in_addr gateip;			/* gateway ip address */
35*18609d04SToomas Soome struct	in_addr tftpip;			/* TFTP ip address */
364a5d661aSToomas Soome n_long	netmask = 0xffffff00;		/* subnet or net mask */
37e1bd2803SToomas Soome u_int	intf_mtu;			/* interface mtu from bootp/dhcp */
384a5d661aSToomas Soome int	errno;				/* our old friend */
394a5d661aSToomas Soome 
40