1/*	$NetBSD: globals.c,v 1.3 1995/09/18 21:19:27 pk Exp $	*/
2
3/*
4 *	globals.c:
5 *
6 *	global variables should be separate, so nothing else
7 *	must be included extraneously.
8 */
9
10#include <sys/cdefs.h>
11__FBSDID("$FreeBSD: stable/11/stand/libsa/globals.c 329132 2018-02-11 19:51:29Z kevans $");
12
13#include <sys/param.h>
14#include <netinet/in.h>
15#include <netinet/in_systm.h>
16
17#include "stand.h"
18#include "net.h"
19
20u_char	bcea[6] = BA;			/* broadcast ethernet address */
21
22char	rootpath[FNAME_SIZE] = "/";	/* root mount path */
23char	bootfile[FNAME_SIZE];		/* bootp says to boot this */
24char	hostname[FNAME_SIZE];		/* our hostname */
25int	hostnamelen;
26char	domainname[FNAME_SIZE];		/* our DNS domain */
27int	domainnamelen;
28int	netproto = NET_NONE;		/* Network prototol */
29char	ifname[IFNAME_SIZE];		/* name of interface (e.g. "le0") */
30struct	in_addr myip;			/* my ip address */
31struct	in_addr nameip;			/* DNS server ip address */
32struct	in_addr rootip;			/* root ip address */
33struct	in_addr swapip;			/* swap ip address */
34struct	in_addr gateip;			/* gateway ip address */
35n_long	netmask = 0xffffff00;		/* subnet or net mask */
36u_int	intf_mtu;			/* interface mtu from bootp/dhcp */
37int	errno;				/* our old friend */
38
39