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